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

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

[elpa] externals/denote 75d4ba1f7e 16/17: Do not add an empty identifier


From: ELPA Syncer
Subject: [elpa] externals/denote 75d4ba1f7e 16/17: Do not add an empty identifier in denote--used-ids
Date: Sun, 10 Nov 2024 00:57:53 -0500 (EST)

branch: externals/denote
commit 75d4ba1f7ef9cb3b804583285298f04472edda85
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Do not add an empty identifier in denote--used-ids
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 05527b72ea..0f66779c0f 100644
--- a/denote.el
+++ b/denote.el
@@ -3140,7 +3140,7 @@ Respect `denote-rename-confirmations', 
`denote-save-buffers' and
             (denote-rewrite-front-matter new-name title keywords file-type)
           (when (denote-add-front-matter-prompt new-name)
             (denote--add-front-matter new-name title keywords date id 
signature file-type))))
-      (when denote--used-ids
+      (when (and denote--used-ids (not (string-empty-p id)))
         (puthash id t denote--used-ids))
       (denote--handle-save-and-kill-buffer 'rename new-name initial-state)
       (run-hooks 'denote-after-rename-file-hook))



reply via email to

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