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

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

[elpa] externals/denote 7ce1f97844 4/9: Add denote-rename-file-using-fro


From: ELPA Syncer
Subject: [elpa] externals/denote 7ce1f97844 4/9: Add denote-rename-file-using-front-matter y-or-n
Date: Fri, 5 Aug 2022 06:57:36 -0400 (EDT)

branch: externals/denote
commit 7ce1f978444fc066bc4eaf5e15fff79b6480d54a
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add denote-rename-file-using-front-matter y-or-n
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index d2c6f37df0..adb3489475 100644
--- a/denote.el
+++ b/denote.el
@@ -1385,7 +1385,7 @@ The identifier of the file (if any) is never modified."
             (dir (file-name-directory file))
             (new-name (denote--format-file
                        dir id keywords (denote--sluggify title) extension)))
-      (progn
+      (when (denote--rename-file-prompt file new-name)
         (denote--rename-file file new-name)
         (denote-update-dired-buffers))
     (user-error "No front matter for title and/or keywords")))



reply via email to

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