branch: externals/consult-denote
commit 920df770200a3d17ef1f93ade984011911fd7ade
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Tweak how consult-denote-{grep,find} set the denote-directory
---
consult-denote.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/consult-denote.el b/consult-denote.el
index 70a318ab8b..e6150779ad 100644
--- a/consult-denote.el
+++ b/consult-denote.el
@@ -103,16 +103,14 @@ aforementioned function."
"Call `consult-denote-grep-command' in the variable `denote-directory'."
(declare (interactive-only t))
(interactive)
- (let ((default-directory denote-directory))
- (funcall-interactively consult-denote-grep-command)))
+ (funcall-interactively consult-denote-grep-command (denote-directory)))
;;;###autoload
(defun consult-denote-find ()
"Call `consult-denote-find-command' in the variable `denote-directory'."
(declare (interactive-only t))
(interactive)
- (let ((default-directory denote-directory))
- (funcall-interactively consult-denote-find-command)))
+ (funcall-interactively consult-denote-find-command (denote-directory)))
;;;###autoload
(defun consult-denote-open ()