[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote d0584c0e15 271/355: Refine denote--only-note-p c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote d0584c0e15 271/355: Refine denote--only-note-p conditions |
Date: |
Sun, 26 Jun 2022 23:58:32 -0400 (EDT) |
branch: externals/denote
commit d0584c0e15d67cbaff32ef92dd8f755fda616c2e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Refine denote--only-note-p conditions
This should remove the false positives reported by Sven Seebeck in issue
16 over at the GitHub mirror:
<https://github.com/protesilaos/denote/issues/16>.
It also eliminates the potential problem with the use of "^" against
full paths, where it would always fail.
---
denote.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index 4d19d9e098..476bf22ac8 100644
--- a/denote.el
+++ b/denote.el
@@ -296,8 +296,8 @@ trailing hyphen."
FILE is relative to the variable `denote-directory'."
(and (not (file-directory-p file))
(file-regular-p file)
- (string-match-p (concat "^" denote--id-regexp) file)
- (not (string-match-p "~\\'" file))))
+ (string-match-p (concat "\\b" denote--id-regexp) file)
+ (not (string-match-p "[#~]\\'" file))))
;;;; Keywords
- [elpa] externals/denote 340f9103fd 175/355: Fix typo in manual, (continued)
- [elpa] externals/denote 340f9103fd 175/355: Fix typo in manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 5c400d80d9 191/355: Document regexp example for file extension, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8a33364dc6 188/355: Add helper fn to filter files matching regexp, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f2cfcd26ea 205/355: Refine denote-retrieve regular expressions, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d46c8fec55 239/355: Add "Contributing" section to the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bcbd52a784 200/355: Use format specifiers for denote-link-add-links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 443c687f05 248/355: Update denote-dired--edit-front-matter-p docstring, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9b9a764e57 230/355: Fix typo about package name, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d09249d48f 253/355: Make 'default-directory' safe for denote-directory, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 737c647957 246/355: Rename buffer post file rename, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d0584c0e15 271/355: Refine denote--only-note-p conditions,
ELPA Syncer <=
- [elpa] externals/denote dcf8739474 261/355: Improve valid note test (revise ecaaa6b, 8e5899d), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 83d53afae4 245/355: Improve dired revert-buffer post rename, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8e5899d90e 260/355: Match only files that start with ID in file search, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 341cd28b5a 266/355: Fix bug with 'default-directory' reset, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0f149afba2 264/355: Simplify how temp buffer contents are returned, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d8ef0a0c7c 282/355: EXPERIMENTAL Add buttonization for all links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 843fb30dff 301/355: Answer FAQ about sorting files, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 47a9024b00 252/355: BREAKING update the .dir-locals.el sample, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bd14f8a813 293/355: REMOVE denote-link-register-ol-hyperlink variable, ELPA Syncer, 2022/06/27
- [elpa] externals/denote a611e08ec1 285/355: Clarify that linking still needs some updates, ELPA Syncer, 2022/06/27