branch: externals/denote
commit 6339df8b82d64cdbbeb6f9944cf8e98544352e87
Merge: f0b9604099 363b1c0080
Author: Protesilaos Stavrou <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #158 from adamruzicka/seq-filter
    
    Replace seq-keep with version-agnostic variant
---
 denote.el | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/denote.el b/denote.el
index 908840f834..e37eed8f87 100644
--- a/denote.el
+++ b/denote.el
@@ -1620,13 +1620,14 @@ where the former does not read dates without a time 
component."
 
 (defun denote--buffer-file-names ()
   "Return file names of Denote buffers."
-  (seq-keep
-   (lambda (buffer)
-     (when-let (((buffer-live-p buffer))
-                (file (buffer-file-name buffer))
-                ((denote-file-is-note-p file)))
-       file))
-   (buffer-list)))
+  (delq nil
+        (mapcar
+         (lambda (buffer)
+           (when-let (((buffer-live-p buffer))
+                      (file (buffer-file-name buffer))
+                      ((denote-file-is-note-p file)))
+             file))
+         (buffer-list))))
 
 ;; In normal usage, this should only be relevant for `denote-date',
 ;; otherwise the identifier is always unique (we trust that no-one

Reply via email to