Fix type signature for org-refile-get-location substitute function
This commit is contained in:
parent
df98f37f69
commit
3f767faf08
2
init.el
2
init.el
@ -953,7 +953,7 @@ split horizontally again, but this extra work should not matter much."
|
|||||||
|
|
||||||
;; Use consult for querying refile targets
|
;; Use consult for querying refile targets
|
||||||
(define-advice org-refile-get-location (:around
|
(define-advice org-refile-get-location (:around
|
||||||
(orig-func prompt default-buffer new-nodes)
|
(orig-func &optional prompt default-buffer new-nodes)
|
||||||
use-consult-instead)
|
use-consult-instead)
|
||||||
(ignore orig-func)
|
(ignore orig-func)
|
||||||
(db/org-refile-get-location prompt default-buffer new-nodes))))
|
(db/org-refile-get-location prompt default-buffer new-nodes))))
|
||||||
|
|||||||
@ -478,7 +478,7 @@ Via %%(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-
|
|||||||
;; any agenda when a super-item is tagged with :HOLD:.
|
;; any agenda when a super-item is tagged with :HOLD:.
|
||||||
(not (member "HOLD" (org-get-tags (point))))))
|
(not (member "HOLD" (org-get-tags (point))))))
|
||||||
|
|
||||||
(defun db/org-refile-get-location (prompt default-buffer new-nodes)
|
(defun db/org-refile-get-location (&optional prompt default-buffer new-nodes)
|
||||||
"Replacement function for `org-refile-get-location' using `consult'.
|
"Replacement function for `org-refile-get-location' using `consult'.
|
||||||
|
|
||||||
This function can be used instead of `org-refile-get-location',
|
This function can be used instead of `org-refile-get-location',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user