branch: externals/denote
commit e9bb949ce291a210774778ec6264bd38cb9cb23c
Merge: 9743ece3b6 01e11e1db1
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #560 from jeanphilippegg/revert-commits
    
    Reapply a fix that was undone in previous PR
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index bfc0757400..73da4f172d 100644
--- a/denote.el
+++ b/denote.el
@@ -3494,7 +3494,7 @@ The TITLE, KEYWORDS, DATE, ID, SIGNATURE, and FILE-TYPE 
are passed from
 the renaming command and are used to construct a new front matter block
 if appropriate."
   (when-let* ((new-front-matter (denote--format-front-matter title date 
keywords id signature file-type)))
-    (denote--file-with-temp-buffer file
+    (with-current-buffer (find-file-noselect file)
       (goto-char (point-min))
       (insert new-front-matter))))
 

Reply via email to