[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 4cd24c9730 4/9: Format identifier in denote--for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 4cd24c9730 4/9: Format identifier in denote--format-front-matter |
Date: |
Sun, 3 Nov 2024 03:57:45 -0500 (EST) |
branch: externals/denote
commit 4cd24c9730d571ba4710a4505847598578a26138
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Format identifier in denote--format-front-matter
---
denote.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 00412d940a..4d6b183535 100644
--- a/denote.el
+++ b/denote.el
@@ -1428,7 +1428,7 @@ Change the front matter format'.")
title: %s
date: %s
tags: %s
-identifier: %S
+identifier: %s
---\n\n"
"YAML (Markdown) front matter.
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
@@ -1440,7 +1440,7 @@ Change the front matter format'.")
title = %s
date = %s
tags = %s
-identifier = %S
+identifier = %s
+++\n\n"
"TOML (Markdown) front matter.
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
@@ -1801,8 +1801,9 @@ strings. FILETYPE is one of the values of variable
`denote-file-type'."
(let* ((fm (denote--front-matter filetype))
(title (denote--format-front-matter-title title filetype))
(date-string (denote--date date filetype))
- (kws (denote--format-front-matter-keywords keywords filetype)))
- (if fm (format fm title date-string kws id) "")))
+ (kws (denote--format-front-matter-keywords keywords filetype))
+ (id-string (funcall (denote--identifier-value-function filetype) id)))
+ (if fm (format fm title date-string kws id-string) "")))
;;;; Front matter or content retrieval functions
- [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 <=
- [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, 2024/11/03