branch: externals/denote commit 01e11e1db183f6f13f33eb81d53ab9b7a36ef313 Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com> Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Reapply a fix that was undone in a previous commit --- 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))))