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

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

[elpa] externals/denote edac33337c 01/12: Avoid keeping opened buffers i


From: ELPA Syncer
Subject: [elpa] externals/denote edac33337c 01/12: Avoid keeping opened buffers in `denote-link-return-links`
Date: Thu, 15 Feb 2024 00:58:12 -0500 (EST)

branch: externals/denote
commit edac33337cd12e8b42667ad01d231955764ec020
Author: Matteo Cavada <cvd00@insicuri.net>
Commit: Matteo Cavada <cvd00@insicuri.net>

    Avoid keeping opened buffers in `denote-link-return-links`
---
 denote.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 3ab4a57896..49c67693d0 100644
--- a/denote.el
+++ b/denote.el
@@ -3506,7 +3506,8 @@ Also see `denote-link-return-backlinks'."
              ((denote-file-has-supported-extension-p current-file))
              (file-type (denote-filetype-heuristics current-file))
              (regexp (denote--link-in-context-regexp file-type)))
-    (with-current-buffer (find-file-noselect current-file)
+    (with-temp-buffer
+      (insert-file-contents current-file)
       (denote-link--expand-identifiers regexp))))
 
 (defalias 'denote-link-return-forelinks 'denote-link-return-links



reply via email to

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