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

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

[elpa] externals/denote 8e5899d90e 260/355: Match only files that start


From: ELPA Syncer
Subject: [elpa] externals/denote 8e5899d90e 260/355: Match only files that start with ID in file search
Date: Sun, 26 Jun 2022 23:58:31 -0400 (EDT)

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

    Match only files that start with ID in file search
    
    This way we avoid false positives such as the backups that Emacs
    creates.
    
    Also see commit ecaaa6b, which implements the same idea in another
    function.
---
 denote.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 08944f17d8..6e15c726e5 100644
--- a/denote.el
+++ b/denote.el
@@ -305,7 +305,8 @@ part of the list."
    nil
    (mapcar
     (lambda (f)
-      (when (and (string-match-p regexp f)
+      (when (and (string-match-p (concat "^" denote--id-regexp) f)
+                 (string-match-p regexp f)
                  (or no-check-current
                      (not (string= (file-name-nondirectory (buffer-file-name)) 
f))))
         f))



reply via email to

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