[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 9bf22d57ec 3/3: Make denote-org-link-in-context-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 9bf22d57ec 3/3: Make denote-org-link-in-context-regexp also cover the search extension |
Date: |
Wed, 15 Jan 2025 03:57:50 -0500 (EST) |
branch: externals/denote
commit 9bf22d57ec4a8a0f4bb139b1a8d8d7e502e80da5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-org-link-in-context-regexp also cover the search extension
This is because our 'denote:' links have the same capabilities as the
'file:' links with regard to moving to a specific position in the
buffer.
Thanks to leafarbelm for reporting the bug in issue 523:
<https://github.com/protesilaos/denote/issues/523>.
---
README.org | 4 ++--
denote.el | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index c7c2f7062a..1786a41e2b 100644
--- a/README.org
+++ b/README.org
@@ -7135,8 +7135,8 @@ Denote is meant to be a collective effort. Every bit of
help matters.
Viktor Haag, Vineet C. Kulkarni, Wade Mealing, Wilf, Yi Liu, Ypot,
atanasj, azegas, babusri, coherentstate, doolio, duli, drcxd,
elge70, elliottw, fingerknight, hpgisler, hyperfocus1337, jtpavlock,
- juh, mentalisttraceur, pRot0ta1p, rbenit68, relict007, sarcom-sar,
- sienic, skissue, sundar bp, yetanotherfossman, zadca123
+ juh, leafarbelm, mentalisttraceur, pRot0ta1p, rbenit68, relict007,
+ sarcom-sar, sienic, skissue, sundar bp, yetanotherfossman, zadca123
Special thanks to Peter Povinec who helped refine the file-naming
scheme, which is the cornerstone of this project.
diff --git a/denote.el b/denote.el
index 678d80503d..02d33749dc 100644
--- a/denote.el
+++ b/denote.el
@@ -4380,8 +4380,10 @@ argument.
Also see `denote-id-only-link-in-context-regexp'.")
(defvar denote-org-link-in-context-regexp
- (concat "\\[\\[" "denote:" "\\(?1:" denote-id-regexp "\\)" "]" "\\["
- "\\(?2:" ".*?" "\\)" "]]")
+ (concat "\\[\\[" "denote:"
+ "\\(?1:" denote-id-regexp "\\)"
+ "\\(?:::.*\\)?" "]"
+ "\\[" "\\(?2:" ".*?" "\\)" "]]")
"Regexp to match an Org link in its context.
The format of such links is `denote-org-link-format'.")