emacs-elpa-diffs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]