[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 0cc5f450d7 01/10: Fix regression when renaming n
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 0cc5f450d7 01/10: Fix regression when renaming new unsaved note |
Date: |
Mon, 18 Nov 2024 03:57:59 -0500 (EST) |
branch: externals/denote
commit 0cc5f450d72348bab71486108a22d64a4e9d00ea
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Fix regression when renaming new unsaved note
---
denote.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index 204ad73d75..cb9c854046 100644
--- a/denote.el
+++ b/denote.el
@@ -3088,7 +3088,7 @@ entire file content."
This is checked against its front matter definition. If the front matter
definition has no lines, this function returns non-nil."
(let* ((front-matter (denote--front-matter file-type))
- (file-content (with-temp-buffer (insert-file-contents file)
(buffer-string)))
+ (file-content (with-current-buffer (find-file-noselect file)
(buffer-string)))
(components-in-template (denote--get-front-matter-components-order
front-matter file-type))
(components-in-file (denote--get-front-matter-components-order
file-content file-type)))
(or (null components-in-template)
- [elpa] externals/denote updated (7c8ed195d8 -> ad7a102116), ELPA Syncer, 2024/11/18
- [elpa] externals/denote 73571a65fb 08/10: Reindent files, ELPA Syncer, 2024/11/18
- [elpa] externals/denote ef93ebd781 06/10: Fix docstring of denote--keywords-value-function, ELPA Syncer, 2024/11/18
- [elpa] externals/denote 0cc5f450d7 01/10: Fix regression when renaming new unsaved note,
ELPA Syncer <=
- [elpa] externals/denote 3026f6ada5 02/10: Add signature to front matter, ELPA Syncer, 2024/11/18
- [elpa] externals/denote 3d8e575260 03/10: Add default values to denote--*-key-regexp functions, ELPA Syncer, 2024/11/18
- [elpa] externals/denote e6656d4fc2 04/10: Make it possible to change the date/id of a note, ELPA Syncer, 2024/11/18
- [elpa] externals/denote 45f3eef294 07/10: Merge pull request #480 from jeanphilippegg/features-and-fix, ELPA Syncer, 2024/11/18
- [elpa] externals/denote ad7a102116 10/10: Use denote-get-link-description instead of denote--link-get-description in denote-org-extras.el, ELPA Syncer, 2024/11/18
- [elpa] externals/denote 51fa48dcd7 05/10: Add denote-rename-file-date, ELPA Syncer, 2024/11/18
- [elpa] externals/denote ef033a5084 09/10: Fix mistake made by the previous commit, ELPA Syncer, 2024/11/18