[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote dd488756f7 019/355: Refine denote--directory-fil
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote dd488756f7 019/355: Refine denote--directory-files |
Date: |
Sun, 26 Jun 2022 23:57:56 -0400 (EDT) |
branch: externals/denote
commit dd488756f704e2e38891d51d3a21bc51982a5350
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Refine denote--directory-files
---
denote.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/denote.el b/denote.el
index 72904f2a9e..bcd1c0f738 100644
--- a/denote.el
+++ b/denote.el
@@ -155,12 +155,12 @@ trailing hyphen."
(defun denote--directory-files ()
"List `denote-directory' files, assuming flat directory."
- (seq-remove
- (lambda (file)
- ;; TODO: generalise this for more VC backends? Which ones?
- (or (string-match-p "\\.git" file)
- (file-directory-p file)))
- (directory-files (denote--directory) nil
directory-files-no-dot-files-regexp t)))
+ (let* ((dir (denote--directory))
+ (default-directory dir))
+ (seq-remove
+ (lambda (file)
+ (file-directory-p file))
+ (directory-files dir nil directory-files-no-dot-files-regexp t))))
(defun denote--keywords-in-files ()
"Produce list of keywords in `denote--directory-files'."
- [elpa] branch externals/denote created (now 4f85d0ece8), ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2350d254a0 002/355: Add README: denote is for private use, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 8957eb6720 001/355: Add initial version of denote.el, ELPA Syncer, 2022/06/26
- [elpa] externals/denote e76a6642ad 004/355: Add TODO for file rename, ELPA Syncer, 2022/06/26
- [elpa] externals/denote bdb849caef 008/355: Remove needless interactive spec, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3c06d7d119 005/355: Tweak front matter, ELPA Syncer, 2022/06/26
- [elpa] externals/denote e9f5c69846 010/355: Placate the compiler, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 39d9870635 018/355: Change punct regexp location; make it defconst, ELPA Syncer, 2022/06/26
- [elpa] externals/denote dd488756f7 019/355: Refine denote--directory-files,
ELPA Syncer <=
- [elpa] externals/denote 0aab5bc835 012/355: Tweak code for the sake of org-capture, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d90ea28d00 013/355: Update one-line description, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 0dd4700e32 014/355: Fix typo, ELPA Syncer, 2022/06/26
- [elpa] externals/denote c3674ff813 023/355: Fix typo, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3790125482 027/355: Remove to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5744240289 036/355: Remove needless to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote aaa691aa15 020/355: Refine front-matter, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 153827f6c8 021/355: Add denote-link, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 21104787f7 024/355: Put link functionality in denote-link.el, ELPA Syncer, 2022/06/26
- [elpa] externals/denote b951a62245 025/355: Put capture code in denote-org-capture.el, ELPA Syncer, 2022/06/26