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

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

[elpa] externals/denote 8701908e60 1/6: Fix denote-link--prepare-backlin


From: ELPA Syncer
Subject: [elpa] externals/denote 8701908e60 1/6: Fix denote-link--prepare-backlinks to revert-buffer inside a silo
Date: Thu, 25 Jul 2024 12:58:27 -0400 (EDT)

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

    Fix denote-link--prepare-backlinks to revert-buffer inside a silo
---
 denote.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/denote.el b/denote.el
index ef00148f19..7b6aebf6cf 100644
--- a/denote.el
+++ b/denote.el
@@ -4392,12 +4392,8 @@ non-nil value."
             (setf (car x) (denote-get-file-name-relative-to-denote-directory 
(car x))))
           xref-alist)
     (with-current-buffer (get-buffer-create backlinks-buffer)
-      ;; FIXME 2024-07-25: This does not do what we expect inside of a
-      ;; silo.  We should be able to (i) have the `denote-directory'
-      ;; to its directory-local value and (ii) revert the buffer while
-      ;; preserving this state.
-      (setq-local default-directory dir)
       (erase-buffer)
+      (setq-local denote-directory dir)
       (setq overlay-arrow-position nil)
       (denote-backlinks-mode)
       (goto-char (point-min))



reply via email to

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