From 53c9a16e90c210b012a5b2a20a2fed9e5932751d Mon Sep 17 00:00:00 2001 From: Kisaragi Hiu Date: Wed, 9 Jun 2021 21:07:47 +0900 Subject: [PATCH] (fix): files not excluded when org-roam-list-files-commands is nil (#1542) --- CHANGELOG.md | 1 + org-roam.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed1f935..b1ef857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - [#1375](https://github.com/org-roam/org-roam/pull/1375) fix org-roam-protocol to use existing ref file - [#1403](https://github.com/org-roam/org-roam/issues/1403) fixed inconsistency between how we write and read props like alias and tags - [#1409](https://github.com/org-roam/org-roam/issues/1398) prevent inclusion of non-org-roam files in `org-roam-dailies--list-files` +- [#1542](https://github.com/org-roam/org-roam/issues/1542) fix files not excluded when `org-roam-list-files-commands` is nil ## 1.2.3 (13-11-2020) diff --git a/org-roam.el b/org-roam.el index a5b23ca..ed07060 100644 --- a/org-roam.el +++ b/org-roam.el @@ -485,7 +485,8 @@ recursion." (let ((regex (concat "\\.\\(?:"(mapconcat #'regexp-quote org-roam-file-extensions "\\|" )"\\)\\(?:\\.gpg\\)?\\'")) result) (dolist (file (org-roam--directory-files-recursively dir regex nil nil t) result) - (when (and (file-readable-p file) (org-roam--org-file-p file)) + (when (and (file-readable-p file) + (org-roam--org-roam-file-p file)) (push file result))))) (defun org-roam--list-files (dir)