branch: externals/denote commit 3dbbffeef248013ddd89158522b1f484d3c70fba Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Fix denote-dired--add-front-matter 'when' format The previous one did not execute the form but would instead bind 'denote--only-note-p' as a variable with a value of 'file'. Writing it this way is the same as: (when (denote--only-note-p file) (let ...)) --- denote-dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote-dired.el b/denote-dired.el index 3063185a23..11ec9ed1b6 100644 --- a/denote-dired.el +++ b/denote-dired.el @@ -345,7 +345,7 @@ operation on multiple files." The TITLE, KEYWORDS and ID are passed from the renaming command and are used to construct a new front matter block if appropriate." - (when-let* ((denote--only-note-p file) + (when-let* (((denote--only-note-p file)) (filetype (denote-dired--filetype-heuristics file)) (date (denote--date (date-to-time id))) (new-front-matter (denote--file-meta-header title date keywords id filetype)))