[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote b25704e041 211/355: Make denote-retrieve--value
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote b25704e041 211/355: Make denote-retrieve--value pass optional group |
Date: |
Sun, 26 Jun 2022 23:58:25 -0400 (EDT) |
branch: externals/denote
commit b25704e04140ca80a3501b59ecdb835a41a3f240
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-retrieve--value pass optional group
See commit 3654f90.
---
denote-retrieve.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/denote-retrieve.el b/denote-retrieve.el
index 587b551d31..9bfb212500 100644
--- a/denote-retrieve.el
+++ b/denote-retrieve.el
@@ -66,13 +66,16 @@ With optional GROUP match it, else match group 1."
(re-search-forward regexp nil t 1)
(match-string-no-properties (or group 1)))))
-(defun denote-retrieve--value (file regexp)
+(defun denote-retrieve--value (file regexp &optional group)
"Return REGEXP value from FILE.
-FILE is a note in the variable `denote-directory'."
+FILE is a note in the variable `denote-directory'.
+
+Optional GROUP is a regexp construct for
+`denote-retrieve--search'."
(let ((default-directory (denote-directory)))
(with-temp-buffer
(insert-file-contents-literally file)
- (or (denote-retrieve--search regexp)
+ (or (denote-retrieve--search regexp group)
(user-error "Cannot retrieve %s in %s" regexp file)))))
(defun denote-retrieve--read-file-prompt ()
- [elpa] externals/denote 6985217de6 350/355: Set denote-link-use-org-id to t in sample config, (continued)
- [elpa] externals/denote 6985217de6 350/355: Set denote-link-use-org-id to t in sample config, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d6543cfa0d 333/355: Add support for org-id, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 72f77178af 344/355: Refine denote-link-use-org-id doc string, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f307e32693 011/355: Expand the README, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bfb2cdefd7 195/355: Rewrite manual on links (getting closer to v0.1.0), ELPA Syncer, 2022/06/27
- [elpa] externals/denote e37e429844 198/355: Add possible to-do for using xref, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 2327b5beb6 212/355: Add helper FNs to return title and date values, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 98113698a7 202/355: Expand sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote cbaab43170 240/355: Update Acknowledgement: svnsbck => Sven Seebeck, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9be3cfab99 215/355: Relocate defcustom where it belongs, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b25704e041 211/355: Make denote-retrieve--value pass optional group,
ELPA Syncer <=
- [elpa] externals/denote 24997c6bc5 226/355: Remove "work-in-progress" from backlinks' section, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 25fe9870dc 225/355: Finalise 'denote:' custom Org hyperlink type, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 13bae5f9c4 235/355: Remove instability warnings (v0.1.0 is close), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 1b4dc74e3c 224/355: Update denote-dired.el Commentary section, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3a63c763c5 218/355: Improve post-rename front matter rewrite, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 5213c9e7af 241/355: Add section with alternatives to Denote, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e0ff114a93 238/355: Update Denote sources in manual's introduction, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 7ce2f7d3e3 251/355: Use the 'denote-directory' function, not variable, ELPA Syncer, 2022/06/27
- [elpa] externals/denote c8f3e707c2 223/355: Revise one-line descriptions, where needed, ELPA Syncer, 2022/06/27
- [elpa] externals/denote a436cdf07e 221/355: Tweak doc strings, ELPA Syncer, 2022/06/27