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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote e6b7ba74e6 05/20: Make denote-retrieve-filename-


From: ELPA Syncer
Subject: [elpa] externals/denote e6b7ba74e6 05/20: Make denote-retrieve-filename-identifier consistent with other functions
Date: Wed, 20 Dec 2023 03:58:00 -0500 (EST)

branch: externals/denote
commit e6b7ba74e669f87073811d5e211f1c687abc03cb
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Make denote-retrieve-filename-identifier consistent with other functions
---
 denote.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index a529318a49..c5ba74f11e 100644
--- a/denote.el
+++ b/denote.el
@@ -1378,9 +1378,9 @@ contain the newline."
 
 To create a new one, refer to the function
 `denote-create-unique-file-identifier'."
-  (let ((file-name (file-name-nondirectory file)))
-    (if (string-match (concat "\\`" denote-id-regexp) file-name)
-        (match-string-no-properties 0 file-name))))
+  (let ((filename (file-name-nondirectory file)))
+    (if (string-match (concat "\\`" denote-id-regexp) filename)
+        (match-string-no-properties 0 filename))))
 
 ;; TODO 2023-12-08: Maybe we can only use
 ;; `denote-retrieve-filename-identifier' and remove this function.



reply via email to

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