[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 512672e173 7/9: Add signature parameter to denot
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 512672e173 7/9: Add signature parameter to denote--add-front-matter |
Date: |
Sun, 3 Nov 2024 03:57:45 -0500 (EST) |
branch: externals/denote
commit 512672e1731bbcb001cc475f795013eb866f58c3
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Add signature parameter to denote--add-front-matter
---
denote.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/denote.el b/denote.el
index ae4eba5f3a..267e4ad16a 100644
--- a/denote.el
+++ b/denote.el
@@ -2928,12 +2928,12 @@ If a buffer is visiting the file, its name is updated."
(with-current-buffer buffer
(set-visited-file-name new-name nil t)))))
-(defun denote--add-front-matter (file title keywords id file-type)
+(defun denote--add-front-matter (file title keywords id signature file-type)
"Prepend front matter to FILE.
-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* ((new-front-matter (denote--format-front-matter title
(date-to-time id) keywords id "" file-type)))
+The TITLE, KEYWORDS, 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-to-time id) keywords id signature file-type)))
(with-current-buffer (find-file-noselect file)
(goto-char (point-min))
(insert new-front-matter))))
@@ -3101,7 +3101,7 @@ Respect `denote-rename-confirmations',
`denote-save-buffers' and
(if (denote--edit-front-matter-p new-name file-type)
(denote-rewrite-front-matter new-name title keywords file-type)
(when (denote-add-front-matter-prompt new-name)
- (denote--add-front-matter new-name title keywords id file-type))))
+ (denote--add-front-matter new-name title keywords id signature
file-type))))
(when denote--used-ids
(puthash id t denote--used-ids))
(denote--handle-save-and-kill-buffer 'rename new-name initial-state)
@@ -3564,7 +3564,7 @@ relevant front matter.
(when-let* ((denote-file-is-writable-and-supported-p file)
(id (denote-retrieve-filename-identifier file))
(file-type (denote-filetype-heuristics file)))
- (denote--add-front-matter file title keywords id file-type)))
+ (denote--add-front-matter file title keywords id "" file-type)))
;;;###autoload
(defun denote-change-file-type-and-front-matter (file new-file-type)
@@ -3608,7 +3608,7 @@ Construct the file name in accordance with the user option
(denote-update-dired-buffers)
(when (and (denote-file-is-writable-and-supported-p new-name)
(denote-add-front-matter-prompt new-name))
- (denote--add-front-matter new-name title keywords id new-file-type)
+ (denote--add-front-matter new-name title keywords id signature
new-file-type)
(denote--handle-save-and-kill-buffer 'rename new-name
initial-state)))))
;;;; The Denote faces
- [elpa] externals/denote updated (f3ac69fcd3 -> 0ea4d88a59), ELPA Syncer, 2024/11/03
- [elpa] externals/denote af2e6a33a3 1/9: Add denote--retrieve-front-matter-*-from-content functions, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 6446650c36 3/9: Make date parameter a date object in denote--format-front-matter, ELPA Syncer, 2024/11/03
- [elpa] externals/denote bd50fbba94 5/9: Remove denote--front-matter-{title/keywords} functions, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 0ea4d88a59 9/9: Merge pull request #472 from jeanphilippegg/front-matter-functions, ELPA Syncer, 2024/11/03
- [elpa] externals/denote f0908dbcc1 2/9: Remove denote--get-{title/keywords}-line-from-front-matter functions, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 4cd24c9730 4/9: Format identifier in denote--format-front-matter, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 7ccddb5837 6/9: Add signature parameter to denote--format-front-matter, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 4fdae80128 8/9: Refactor denote-rename-file-using-front-matter, ELPA Syncer, 2024/11/03
- [elpa] externals/denote 512672e173 7/9: Add signature parameter to denote--add-front-matter,
ELPA Syncer <=