[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 3284762918 4/7: Simplify denote--directory-files
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 3284762918 4/7: Simplify denote--directory-files-matching-regexp |
Date: |
Tue, 2 Aug 2022 23:57:30 -0400 (EDT) |
branch: externals/denote
commit 32847629184e35632a5c30577e00e247bbdb5608
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Simplify denote--directory-files-matching-regexp
---
denote.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/denote.el b/denote.el
index f467211b78..8e3def84a4 100644
--- a/denote.el
+++ b/denote.el
@@ -454,15 +454,12 @@ names that are relative to the variable
`denote-directory'."
(defun denote--directory-files-matching-regexp (regexp)
"Return list of files matching REGEXP."
- (delq
- nil
- (mapcar
- (lambda (f)
- (when (and (denote--only-note-p f)
- (string-match-p regexp f)
- (not (string= (file-name-nondirectory (buffer-file-name)) f)))
- f))
- (denote--directory-files))))
+ (seq-filter
+ (lambda (f)
+ (and (denote--only-note-p f)
+ (string-match-p regexp f)
+ (not (string= (file-name-nondirectory (buffer-file-name)) f))))
+ (denote--directory-files)))
;;;; Keywords
- [elpa] externals/denote updated (aabc3abdd3 -> c3df0d6575), ELPA Syncer, 2022/08/02
- [elpa] externals/denote 49c4e4e094 1/7: Simplify denote--format-file, ELPA Syncer, 2022/08/02
- [elpa] externals/denote 3284762918 4/7: Simplify denote--directory-files-matching-regexp,
ELPA Syncer <=
- [elpa] externals/denote 5c95a56bf4 6/7: Ignore return value of denote--barf-duplicate-id, ELPA Syncer, 2022/08/02
- [elpa] externals/denote 9ea59c442b 2/7: Simplify denote--retrieve-files-in-output, ELPA Syncer, 2022/08/02
- [elpa] externals/denote e01cdf4123 3/7: Use file-name-base, ELPA Syncer, 2022/08/02
- [elpa] externals/denote c3df0d6575 7/7: Merge pull request #73 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/02
- [elpa] externals/denote 4a95695d52 5/7: Simplify denote-link--map-over-notes, ELPA Syncer, 2022/08/02