Make denote-directory-get-files public

This commit is contained in:
Protesilaos Stavrou 2025-06-19 12:39:04 +03:00
parent 9549d977d5
commit 4c20bf0a57
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 12 additions and 1 deletions

View file

@ -5104,6 +5104,12 @@ The following sections cover the specifics.
~let~ bind the value of the variable ~denote-directory~
to override what this function returns.
#+findex: denote-directory-get-files
+ Function ~denote-directory-get-files~ :: Return list with full path
of valid files in variable ~denote-directory~. Consider files that
satisfy ~denote-file-has-identifier-p~ and are not backups. [ Part
of {{{development-version}}}. ]
#+findex: denote-directory-files
+ Function ~denote-directory-files~ :: Return list of absolute file
paths in variable ~denote-directory~. Files that match

View file

@ -1299,7 +1299,12 @@ Avoids traversing dotfiles (unconditionally) and whatever matches
(and denote-excluded-files-regexp
(string-match-p denote-excluded-files-regexp file)))
(defun denote--directory-get-files ()
(define-obsolete-function-alias
'denote--directory-get-files
'denote-directory-get-files
"4.1.0")
(defun denote-directory-get-files ()
"Return list with full path of valid files in variable `denote-directory'.
Consider files that satisfy `denote-file-has-identifier-p' and
are not backups."