Use our pred instead of generic in file filtering

This commit is contained in:
Protesilaos Stavrou 2022-06-18 12:53:05 +03:00
parent 62e7adfbdb
commit edbd2f7f1b
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -93,7 +93,7 @@ Optional GROUP is a regexp construct for
(defun denote-retrieve--files-in-output (files) (defun denote-retrieve--files-in-output (files)
"Return list of FILES from `find' output." "Return list of FILES from `find' output."
(delq nil (mapcar (lambda (f) (delq nil (mapcar (lambda (f)
(when (file-regular-p f) f)) (when (denote--only-note-p f) f))
files))) files)))
;; TODO 2022-06-15: Maybe we can do the same in a more standard way? ;; TODO 2022-06-15: Maybe we can do the same in a more standard way?