[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote c9926a528e 133/355: perf: Stop searching for the
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote c9926a528e 133/355: perf: Stop searching for the title or identifier after the 1st match |
Date: |
Sun, 26 Jun 2022 23:58:14 -0400 (EDT) |
branch: externals/denote
commit c9926a528e1571d126240fa630331e3d5425b7b6
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
perf: Stop searching for the title or identifier after the 1st match
This also avoids any false matches with that regexp further down in
the note content.
---
denote-link.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote-link.el b/denote-link.el
index 399c12bd53..75eb13f68d 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -94,7 +94,7 @@ files."
(defun denote-link--find-value (regexp)
"Return value from REGEXP by searching the file."
(goto-char (point-min))
- (re-search-forward regexp)
+ (re-search-forward regexp nil nil 1) ;Stop search after the first match
(match-string-no-properties 1))
(defconst denote-link--title-regexp
"^\\(?:#\\+\\)?\\(?:title:\\)[\s\t]+\\(?1:.*\\)"
- [elpa] externals/denote eafc777268 076/355: Use 'denote-directory' function for '#+link', (continued)
- [elpa] externals/denote eafc777268 076/355: Use 'denote-directory' function for '#+link', ELPA Syncer, 2022/06/26
- [elpa] externals/denote d08a72e19a 081/355: Re-indent line, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5dace99b8d 085/355: Acknowledge Kaushal Modi for commit f97f1f8, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 85e33cb523 107/355: Remove needless single quotes, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ba7299d878 088/355: Add TODO about styling 'denote-link' command, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f9b86149fc 102/355: Rephrase package overview, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d8b2903fa9 077/355: Acknowledge Jack Baty for commit dfc3a8f, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 142b628c2e 127/355: Apply distinct face to keyword delimiter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 86e437da43 150/355: Document .dir-locals.el for multi-type notes, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e92137a548 148/355: Use file attribute for mod time while renaming, ELPA Syncer, 2022/06/27
- [elpa] externals/denote c9926a528e 133/355: perf: Stop searching for the title or identifier after the 1st match,
ELPA Syncer <=
- [elpa] externals/denote f55dee06b1 143/355: Add documentation about our minibuffer histories, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 97e8c30bcf 153/355: Rewrite the package Overview, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 171b873cb5 142/355: Require denote-retrieve (0e83bee) in denote-link, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6a286c97f8 154/355: Rephrase statement for clarity, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0e83bee5b7 141/355: Add denote-retrieve for internal purposes, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b42f68c8e8 156/355: Add denote-type command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e841a51ca7 155/355: Fix typo, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bc93a8ecda 137/355: Update the manual on the matter of backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 45bea4166a 158/355: Update Acknowledgements, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d4cbb974a5 157/355: Rewrite node on multi file types (due to b42f68c), ELPA Syncer, 2022/06/27