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

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

[elpa] externals/denote 1a1f3fb7cf 02/10: Use denote--rename-file in ren


From: ELPA Syncer
Subject: [elpa] externals/denote 1a1f3fb7cf 02/10: Use denote--rename-file in renaming functions
Date: Sun, 31 Jul 2022 01:57:29 -0400 (EDT)

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

    Use denote--rename-file in renaming functions
---
 denote-dired.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/denote-dired.el b/denote-dired.el
index 8a1508aa91..c0ce3c148d 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -407,8 +407,7 @@ The operation does the following:
                    (extension (file-name-extension file t))
                    (new-name (denote--format-file
                               dir id keywords (denote--sluggify title) 
extension)))
-              (rename-file file new-name)
-              (denote--rename-buffer file new-name)
+              (denote--rename-file file new-name)
               (when rewrite
                 (denote--rewrite-keywords new-name keywords))))
           (revert-buffer)))
@@ -442,8 +441,7 @@ doc string)."
                  (extension (file-name-extension file t))
                  (new-name (denote--format-file
                             dir id keywords (denote--sluggify title) 
extension)))
-            (rename-file file new-name)
-            (denote--rename-buffer file new-name)
+            (denote--rename-file file new-name)
             (denote--add-front-matter new-name title keywords id)))
         (revert-buffer))
     (user-error "No marked files; aborting")))



reply via email to

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