branch: externals/denote commit 11bbb6b9a1623d9c7c422dc5bdc58485044f803d Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com> Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Use denote-identifier-regexp in denote-retrieve-filename-identifier --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index c6e31808d9..211063b2cc 100644 --- a/denote.el +++ b/denote.el @@ -2388,7 +2388,7 @@ To create a new one from a date, refer to the function (let ((filename (file-name-nondirectory file))) (cond ((string-match (concat "\\`" denote-date-identifier-regexp) filename) (match-string-no-properties 0 filename)) - ((string-match (concat "@@\\(?1:" denote-date-identifier-regexp "\\)") filename) + ((string-match denote-identifier-regexp filename) (match-string-no-properties 1 filename))))) ;; TODO 2023-12-08: Maybe we can only use