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

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

[elpa] externals/denote 3029d5668b: Make the file name regexp account fo


From: ELPA Syncer
Subject: [elpa] externals/denote 3029d5668b: Make the file name regexp account for identifier reordering
Date: Mon, 10 Jun 2024 12:57:58 -0400 (EDT)

branch: externals/denote
commit 3029d5668be1acf281db0a9ca67e7cc2672a8983
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make the file name regexp account for identifier reordering
    
    This ensures that we retrieve the correct file name components from
    the file name. One such case where this was failing is with the
    identification of the default value of the keywords' prompt while
    using 'denote-rename-file'.
    
    Thanks to Kolmas for reporting this bug in issue 375:
    <https://github.com/protesilaos/denote/issues/375>.
---
 denote.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 57022ac22d..803b788e99 100644
--- a/denote.el
+++ b/denote.el
@@ -781,13 +781,13 @@ The note's ID is derived from the date and time of its 
creation.")
 (defconst denote-id-regexp "\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)"
   "Regular expression to match `denote-id-format'.")
 
-(defconst denote-signature-regexp 
"==\\([^.]*?\\)\\(==.*\\|--.*\\|__.*\\|\\..*\\)*$"
+(defconst denote-signature-regexp 
"==\\([^.]*?\\)\\(==.*\\|--.*\\|__.*\\|@@\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)\\|\\|\\..*\\)*$"
   "Regular expression to match the SIGNATURE field in a file name.")
 
-(defconst denote-title-regexp "--\\([^.]*?\\)\\(==.*\\|__.*\\|\\..*\\)*$"
+(defconst denote-title-regexp 
"--\\([^.]*?\\)\\(==.*\\|__.*\\|@@\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)\\|\\|\\..*\\)*$"
   "Regular expression to match the TITLE field in a file name.")
 
-(defconst denote-keywords-regexp 
"__\\([^.]*?\\)\\(==.*\\|--.*\\|__.*\\|\\..*\\)*$"
+(defconst denote-keywords-regexp 
"__\\([^.]*?\\)\\(==.*\\|--.*\\|__.*\\|@@\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)\\|\\..*\\)*$"
   "Regular expression to match the KEYWORDS field in a file name.")
 
 (defconst denote-excluded-punctuation-regexp 
"[][{}!@#$%^&*()=+'\"?,.\|;:~`‘’“”/]*"



reply via email to

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