[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 26c97bdee2 2/7: Make denote-directory-files-matc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 26c97bdee2 2/7: Make denote-directory-files-matching-regexp public |
Date: |
Sun, 11 Sep 2022 22:57:32 -0400 (EDT) |
branch: externals/denote
commit 26c97bdee23f389db839e531d1fcb33bb0b2f1a4
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-directory-files-matching-regexp public
This is the same idea as with commit c294eaf.
It means that users or developers can rely on this function in their own
code. By making it "public" (removing the double hyphens), we declare
that we will keep this form in check and document any changes to its
behaviour.
---
denote.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index 522293ba31..00d78d2e7f 100644
--- a/denote.el
+++ b/denote.el
@@ -521,15 +521,18 @@ include files that are not implied by
`denote-file-types'."
(string-prefix-p id (file-name-nondirectory f)))
(denote-directory-files)))
-(defun denote--directory-files-matching-regexp (regexp)
- "Return list of files matching REGEXP.
-Files are those which satisfy `denote--file-has-identifier-p' and
-`denote--file-name-relative-to-denote-directory'."
+(defun denote-directory-files-matching-regexp (regexp)
+ "Return list of files matching REGEXP in `denote-directory-files'."
(seq-filter
(lambda (f)
(string-match-p regexp (denote--file-name-relative-to-denote-directory
f)))
(denote-directory-files)))
+(define-obsolete-function-alias
+ 'denote--directory-files-matching-regexp
+ 'denote-directory-files-matching-regexp
+ "1.0.0")
+
;;;; Keywords
(defun denote--extract-keywords-from-path (path)
@@ -2270,7 +2273,7 @@ inserts links with just the identifier."
(read-regexp "Insert links matching REGEX: " nil
'denote-link--add-links-history)
current-prefix-arg))
(let ((current-file (buffer-file-name)))
- (if-let ((files (delete current-file
(denote--directory-files-matching-regexp regexp))))
+ (if-let ((files (delete current-file
(denote-directory-files-matching-regexp regexp))))
(let ((beg (point)))
(insert (denote-link--prepare-links files current-file id-only))
(unless (derived-mode-p 'org-mode)
- [elpa] externals/denote updated (2ca1223c7b -> 528901354c), ELPA Syncer, 2022/09/11
- [elpa] externals/denote c294eaf15f 1/7: Make denote-directory-files a public function, ELPA Syncer, 2022/09/11
- [elpa] externals/denote 97f5f041aa 4/7: Remove empty line, ELPA Syncer, 2022/09/11
- [elpa] externals/denote 26c97bdee2 2/7: Make denote-directory-files-matching-regexp public,
ELPA Syncer <=
- [elpa] externals/denote 016f1bc2ca 5/7: Tweak how denote-faces-title sets its nil value, ELPA Syncer, 2022/09/11
- [elpa] externals/denote 528901354c 7/7: Rewrite the "Things to do" section for clarity, ELPA Syncer, 2022/09/11
- [elpa] externals/denote e9512a5d65 3/7: Placate the compiler for denote-link-ol-store, ELPA Syncer, 2022/09/11
- [elpa] externals/denote b4d3573766 6/7: Remove TODO for Embark, ELPA Syncer, 2022/09/11