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

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

[elpa] externals/denote ee4aed6376 316/355: Refine check for denote dir


From: ELPA Syncer
Subject: [elpa] externals/denote ee4aed6376 316/355: Refine check for denote dir in dired revert
Date: Sun, 26 Jun 2022 23:58:35 -0400 (EDT)

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

    Refine check for denote dir in dired revert
    
    This pertains to the post-rename operation where relevant Dired buffers
    are reverted.  The previous check would sometimes compare incompatible
    file paths and thus return nil when it shouldn't.
    
    Thanks to Sven Seebeck for reporting the problem in issue 17 over at the
    GitHub mirror: <https://github.com/protesilaos/denote/issues/17>.
---
 denote-dired.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote-dired.el b/denote-dired.el
index 026dc6f6bb..d7bb2f824a 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -261,7 +261,8 @@ ignores all its arguments."
    (lambda (buf)
      (with-current-buffer buf
        (when (and (eq major-mode 'dired-mode)
-                  (string-match-p (expand-file-name default-directory) 
(denote-directory)))
+                  (string-match-p (expand-file-name default-directory)
+                                  (expand-file-name (denote-directory))))
          (revert-buffer))))
    (buffer-list)))
 



reply via email to

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