[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote bd50fbba94 5/9: Remove denote--front-matter-{tit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote bd50fbba94 5/9: Remove denote--front-matter-{title/keywords} functions |
Date: |
Sun, 3 Nov 2024 03:57:45 -0500 (EST) |
branch: externals/denote
commit bd50fbba94004a6d4b407ad9ec06341510b04515
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Remove denote--front-matter-{title/keywords} functions
---
denote.el | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/denote.el b/denote.el
index 4d6b183535..822cce8fe0 100644
--- a/denote.el
+++ b/denote.el
@@ -1799,11 +1799,11 @@ this list for new note creation. The default is
`org'.")
TITLE and ID are strings. DATE is a date object. KEYWORDS is a list of
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))
+ (title-string (funcall (denote--title-value-function filetype) title))
(date-string (denote--date date filetype))
- (kws (denote--format-front-matter-keywords keywords filetype))
+ (keywords-string (funcall (denote--keywords-value-function filetype)
(denote-sluggify-keywords keywords)))
(id-string (funcall (denote--identifier-value-function filetype) id)))
- (if fm (format fm title date-string kws id-string) "")))
+ (if fm (format fm title-string date-string keywords-string id-string) "")))
;;;; Front matter or content retrieval functions
@@ -2086,16 +2086,6 @@ which case it is not added to the base file name."
(setq file-name (substring file-name 2)))
(concat dir-path file-name)))
-(defun denote--format-front-matter-title (title file-type)
- "Format TITLE according to FILE-TYPE for the file's front matter."
- (funcall (denote--title-value-function file-type) title))
-
-(defun denote--format-front-matter-keywords (keywords file-type)
- "Format KEYWORDS according to FILE-TYPE for the file's front matter.
-Apply `denote-sluggify' to KEYWORDS."
- (let ((kws (denote-sluggify-keywords keywords)))
- (funcall (denote--keywords-value-function file-type) kws)))
-
;; Adapted from `org-hugo--org-date-time-to-rfc3339' in the `ox-hugo'
;; package: <https://github.com/kaushalmodi/ox-hugo>.
(defun denote-date-rfc3339 (date)
- [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 <=
- [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, 2024/11/03