emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 3dbbffeef2 2/3: Fix denote-dired--add-front-matt


From: ELPA Syncer
Subject: [elpa] externals/denote 3dbbffeef2 2/3: Fix denote-dired--add-front-matter 'when' format
Date: Mon, 25 Jul 2022 02:57:31 -0400 (EDT)

branch: externals/denote
commit 3dbbffeef248013ddd89158522b1f484d3c70fba
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]