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

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

[elpa] externals/denote 8d504a3264 255/355: Check to operate on dired-re


From: ELPA Syncer
Subject: [elpa] externals/denote 8d504a3264 255/355: Check to operate on dired-rename window
Date: Sun, 26 Jun 2022 23:58:30 -0400 (EDT)

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

    Check to operate on dired-rename window
    
    Thanks to Frank Ehmsen for the feedback on the mailing list:
    
<https://lists.sr.ht/~protesilaos/denote/%3C9deea16e-d0d0-91b0-2b6a-0b8276406c6c@eh-is.de%3E>.
---
 denote-dired.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/denote-dired.el b/denote-dired.el
index 0436eb46e2..c12299f618 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -190,8 +190,9 @@ everything works as intended."
         ;; between old and new?  It seems wrong to kill-buffer and then
         ;; find-file.
         (kill-buffer (find-buffer-visiting old-name))
-        (with-selected-window win
-          (find-file new-name))))))
+        (when win
+          (with-selected-window win
+            (find-file new-name)))))))
 
 ;;;###autoload
 (defun denote-dired-rename-file (file title keywords)



reply via email to

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