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

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

[elpa] externals/denote 4ce8c6701c 03/10: Fix denote--rename-file


From: ELPA Syncer
Subject: [elpa] externals/denote 4ce8c6701c 03/10: Fix denote--rename-file
Date: Sun, 31 Jul 2022 01:57:29 -0400 (EDT)

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

    Fix denote--rename-file
---
 denote.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index f008ed938e..8d124e6b59 100644
--- a/denote.el
+++ b/denote.el
@@ -1105,10 +1105,11 @@ The return value is for `denote--file-meta-header'."
 (defun denote--rename-file (old-name new-name)
   "Rename file named OLD-NAME to NEW-NAME.
 Update Dired buffers if the file is renamed.
-Return non-nil if the file is renamed, nil otherwise."
+Return t if the file is renamed, nil otherwise."
   (unless (string= (expand-file-name old-name) (expand-file-name new-name))
     (rename-file old-name new-name nil)
-    (denote--rename-buffer old-name new-name)))
+    (denote--rename-buffer old-name new-name)
+    t))
 
 (defun denote--add-front-matter (file title keywords id)
   "Prepend front matter to FILE if `denote--only-note-p'.



reply via email to

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