emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 5541eebbb9 06/11: Use denote-file-has-supported-


From: ELPA Syncer
Subject: [elpa] externals/denote 5541eebbb9 06/11: Use denote-file-has-supported-extension-p instead of denote-filename-is-note-p
Date: Mon, 16 Dec 2024 03:58:30 -0500 (EST)

branch: externals/denote
commit 5541eebbb9a348e8c97acb303983806348fc969b
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Use denote-file-has-supported-extension-p instead of 
denote-filename-is-note-p
---
 denote.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 3f90e093e0..ee556884ca 100644
--- a/denote.el
+++ b/denote.el
@@ -1309,7 +1309,7 @@ With optional OMIT-CURRENT as a non-nil value, do not 
include the
 current Denote file in the returned list.
 
 With optional TEXT-ONLY as a non-nil value, limit the results to
-text files that satisfy `denote-filename-is-note-p'.
+text files that satisfy `denote-file-has-supported-extension-p'.
 
 With optional EXCLUDE-REGEXP exclude the files that match the given
 regular expression.  This is done after FILES-MATCHING-REGEXP and
@@ -1323,7 +1323,7 @@ OMIT-CURRENT have been applied."
                      (string-match-p files-matching-regexp 
(denote-get-file-name-relative-to-denote-directory f)))
                    files)))
     (when text-only
-      (setq files (seq-filter #'denote-filename-is-note-p files)))
+      (setq files (seq-filter #'denote-file-has-supported-extension-p files)))
     (when exclude-regexp
       (setq files (seq-remove
                    (lambda (file)
@@ -1392,7 +1392,7 @@ something like .org even if the actual file extension is
       (seq-find
        (lambda (file)
          (let ((file-extension (denote-get-file-extension file)))
-           (and (denote-filename-is-note-p file)
+           (and (denote-file-has-supported-extension-p file)
                 (or (string= (denote--file-extension denote-file-type)
                              file-extension)
                     (string= ".org" file-extension)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]