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

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

[elpa] externals/denote 143d902c17 1/3: Move denote-dired-update-dired-b


From: ELPA Syncer
Subject: [elpa] externals/denote 143d902c17 1/3: Move denote-dired-update-dired-buffers out of denote-dired--rename-file
Date: Sun, 17 Jul 2022 03:57:32 -0400 (EDT)

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

    Move denote-dired-update-dired-buffers out of denote-dired--rename-file
---
 denote-dired.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/denote-dired.el b/denote-dired.el
index 280219b929..0bf79cc1d3 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -215,8 +215,7 @@ Return t if the file is renamed, nil otherwise."
                     (propertize (file-name-nondirectory new-name) 'face 
'success)))))
       (when response
         (rename-file old-name new-name nil)
-        (denote-dired--rename-buffer old-name new-name)
-        (denote-dired-update-dired-buffers))
+        (denote-dired--rename-buffer old-name new-name))
       response)))
 
 (defun denote-dired-update-dired-buffers ()
@@ -373,6 +372,7 @@ attachments that the user adds to their notes."
                     dir id keywords (denote--sluggify title) extension))
          (max-mini-window-height 0.33)) ; allow minibuffer to be resized
     (when (denote-dired--rename-file file new-name)
+      (denote-dired-update-dired-buffers)
       (denote-dired--rewrite-front-matter new-name title keywords))))
 
 (define-obsolete-function-alias
@@ -421,6 +421,7 @@ For per-file-type front matter, refer to the variables:
                     dir id keywords (denote--sluggify title) extension))
          (max-mini-window-height 0.33)) ; allow minibuffer to be resized
     (when (denote-dired--rename-file file new-name)
+      (denote-dired-update-dired-buffers)
       (denote-dired--add-front-matter new-name title keywords id))))
 
 (define-obsolete-function-alias



reply via email to

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