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

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

[elpa] externals/denote 9ea59c442b 2/7: Simplify denote--retrieve-files-


From: ELPA Syncer
Subject: [elpa] externals/denote 9ea59c442b 2/7: Simplify denote--retrieve-files-in-output
Date: Tue, 2 Aug 2022 23:57:30 -0400 (EDT)

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

    Simplify denote--retrieve-files-in-output
---
 denote.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 1905266afa..092a6337c0 100644
--- a/denote.el
+++ b/denote.el
@@ -588,9 +588,7 @@ If optional KEY is non-nil, return the key instead."
 
 (defun denote--retrieve-files-in-output (files)
   "Return list of FILES from `find' output."
-  (delq nil (mapcar (lambda (f)
-                      (when (denote--only-note-p f) f))
-                    files)))
+  (seq-filter (lambda (f) (denote--only-note-p f)) files))
 
 (defun denote--retrieve-xrefs (identifier)
   "Return xrefs of IDENTIFIER in variable `denote-directory'.



reply via email to

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