[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 3748ac5f6d 6/7: Simplify denote--format-file
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 3748ac5f6d 6/7: Simplify denote--format-file |
Date: |
Thu, 11 Aug 2022 02:57:33 -0400 (EDT) |
branch: externals/denote
commit 3748ac5f6d0c5dd0addc11823909d8261d041cab
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Simplify denote--format-file
---
denote.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index a76c62b8ce..d9db91a45e 100644
--- a/denote.el
+++ b/denote.el
@@ -677,17 +677,14 @@ Parse `denote--retrieve-xrefs'."
"Format file name.
PATH, ID, KEYWORDS, TITLE-SLUG are expected to be supplied by
`denote' or equivalent: they will all be converted into a single
-string. EXTENSION is the file type extension, either a string
-which include the starting dot or the return value of
-`denote--file-extension'."
+string. EXTENSION is the file type extension, as a string."
(let ((kws (denote--keywords-combine keywords))
- (ext (or extension (denote--file-extension denote-file-type)))
(file-name (concat path id)))
(when (and title-slug (not (string-empty-p title-slug)))
(setq file-name (concat file-name "--" title-slug)))
(when keywords
(setq file-name (concat file-name "__" kws)))
- (concat file-name ext)))
+ (concat file-name extension)))
(defun denote--format-front-matter-keywords (keywords type)
"Format KEYWORDS according to TYPE for the file's front matter.
- [elpa] externals/denote updated (465a093893 -> 4bb79fe89f), ELPA Syncer, 2022/08/11
- [elpa] externals/denote 8256c85df9 5/7: Rename denote--file-type-symbol to denote--valid-file-type, ELPA Syncer, 2022/08/11
- [elpa] externals/denote 73ba47e832 1/7: Add comments for denote--only-note-p, ELPA Syncer, 2022/08/11
- [elpa] externals/denote 1b2d4319bd 4/7: Refactor denote command to prepare all arguments for denote--prepare-note, ELPA Syncer, 2022/08/11
- [elpa] externals/denote 3748ac5f6d 6/7: Simplify denote--format-file,
ELPA Syncer <=
- [elpa] externals/denote 1bdd0eb5e7 3/7: Fix argument in denote--writable-and-supported-p, ELPA Syncer, 2022/08/11
- [elpa] externals/denote 4bb79fe89f 7/7: Remove fallback value in denote--file-extension, ELPA Syncer, 2022/08/11
- [elpa] externals/denote 64c5b74dbd 2/7: Relax conditionality in denote--retrieve-search, ELPA Syncer, 2022/08/11