[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 71008dc939 12/14: Remove check for denote--only-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 71008dc939 12/14: Remove check for denote--only-note-p in denote--add-front-matter |
Date: |
Mon, 15 Aug 2022 23:57:30 -0400 (EDT) |
branch: externals/denote
commit 71008dc939cac882df26317b3fc40d94d99b722a
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Remove check for denote--only-note-p in denote--add-front-matter
---
denote.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index e5efc97590..21a56bc2ae 100644
--- a/denote.el
+++ b/denote.el
@@ -1301,8 +1301,7 @@ Update Dired buffers if the file is renamed."
The TITLE, KEYWORDS ID, and FILE-TYPE are passed from the
renaming command and are used to construct a new front matter
block if appropriate."
- (when-let* (((denote--only-note-p file))
- (date (denote--date (date-to-time id) file-type))
+ (when-let* ((date (denote--date (date-to-time id) file-type))
(new-front-matter (denote--format-front-matter title date
keywords id file-type)))
(with-current-buffer (find-file-noselect file)
(goto-char (point-min))
@@ -1669,8 +1668,9 @@ relevant front matter."
(buffer-file-name)
(denote--title-prompt)
(denote--keywords-prompt)))
- (denote--add-front-matter file title keywords (denote--file-name-id file)
- (denote--filetype-heuristics file)))
+ (when (denote--writable-and-supported-p file)
+ (denote--add-front-matter file title keywords (denote--file-name-id file)
+ (denote--filetype-heuristics file))))
;;;; The Denote faces
- [elpa] externals/denote updated (29b6ec1aad -> 4e269bf260), ELPA Syncer, 2022/08/15
- [elpa] externals/denote 11fef925c0 03/14: Rework docstring of denote--directory-files, ELPA Syncer, 2022/08/15
- [elpa] externals/denote ada6348415 02/14: Remove TODO for denote--only-note-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote c33c772fd7 05/14: Remove FIXME for denote--rewrite-front-matter, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 0a22460e4f 09/14: Remove checks in front matter retrieval functions, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 4ef21b0217 01/14: Rename denote-backlinks-mode and denote-backlinks-mode-map, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 9e28fc8a78 04/14: Fix docstring of denote--retrieve-filename-title, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 0f045279e2 08/14: Remove the check for empty file from denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 71008dc939 12/14: Remove check for denote--only-note-p in denote--add-front-matter,
ELPA Syncer <=
- [elpa] externals/denote 89d1fdc1dd 11/14: Simplify denote--valid-date, ELPA Syncer, 2022/08/15
- [elpa] externals/denote c7bf701030 06/14: Remove condition in denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 1aeee8410f 07/14: Remove check for writable-and-supported-p in denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 4e269bf260 14/14: Merge pull request #94 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 02e35f7e5d 10/14: Remove denote--retrieve-files-in-output, ELPA Syncer, 2022/08/15
- [elpa] externals/denote d4d67a6118 13/14: Simplify some lambdas, ELPA Syncer, 2022/08/15