[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 828af23060: Make sure backlinks get correct 'den
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 828af23060: Make sure backlinks get correct 'denote-directory' path |
Date: |
Sun, 12 Feb 2023 02:57:30 -0500 (EST) |
branch: externals/denote
commit 828af230607d7f0f2828175e4933d1fd017dc3cb
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make sure backlinks get correct 'denote-directory' path
The backlinks buffer will now get the correct path when it is
generated inside a silo. This is related to issue 129 reported by
hapst3r on the GitHub mirror:
<https://github.com/protesilaos/denote/issues/129>.
This change is necessary because .dir-locals do not work for buffers,
so we must get the value from the file that calls 'denote-link-backlinks'.
---
denote.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index a88b540b23..1b437b7415 100644
--- a/denote.el
+++ b/denote.el
@@ -2851,9 +2851,10 @@ ALIST is not used in favour of using
(file-type (denote-filetype-heuristics file))
(id (denote-retrieve-filename-identifier file))
(buf (format "*denote-backlinks to %s*" id))
- (xref-alist (xref--analyze (funcall fetcher))))
+ (xref-alist (xref--analyze (funcall fetcher)))
+ (dir (denote-directory)))
(with-current-buffer (get-buffer-create buf)
- (setq-local default-directory (denote-directory))
+ (setq-local default-directory dir)
(erase-buffer)
(setq overlay-arrow-position nil)
(denote-backlinks-mode)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/denote 828af23060: Make sure backlinks get correct 'denote-directory' path,
ELPA Syncer <=