branch: externals/denote commit 0116edc2f8fbafb98fa1161d3933ac844931f9cf Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Remove sharp quote from lambda for simplicity The Elisp manual explains: The read syntax ‘#'’ is a short-hand for using ‘function’. The following forms are all equivalent: (lambda (x) (* x x)) (function (lambda (x) (* x x))) #'(lambda (x) (* x x)) Evaluate: (info "(elisp) Anonymous Functions") --- denote-retrieve.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote-retrieve.el b/denote-retrieve.el index a340d8fac0..b3479c210d 100644 --- a/denote-retrieve.el +++ b/denote-retrieve.el @@ -91,7 +91,7 @@ Optional GROUP is a regexp construct for (defun denote-retrieve--read-file-prompt () "Prompt for regular file in variable `denote-directory'." (read-file-name "Select note: " (denote-directory) nil nil nil - #'(lambda (f) (or (denote--only-note-p f) (file-directory-p f))))) + (lambda (f) (or (denote--only-note-p f) (file-directory-p f))))) (defun denote-retrieve--files-in-output (files) "Return list of FILES from `find' output."