From c51cadfe255fdac8f84213adeda6aa43769c65af Mon Sep 17 00:00:00 2001 From: Ron Parker Date: Thu, 10 Mar 2022 19:07:39 -0500 Subject: [PATCH] (fix)core: fix broken shell-based file listing methods (#2118) Change #2025 broke the `org-roam--shell-command-files` filter that affects all of the `org-roam-list-files-command` methods except `elisp`. This causes `org-roam--list-files` to iterate through the variants executing their commands via `org-roam--shell-command-files` but to not see any output, until it finally lands upon `elisp` and gets some results. The issue is that "#'s-present?" was replaced by (or (null s) (string= "" s)) effectively negating the test and converting it to "#'s-blank?". This addresses that by negating the current test. --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index d1d75e6..1cf0828 100644 --- a/org-roam.el +++ b/org-roam.el @@ -260,7 +260,7 @@ If no files are found, an empty list is returned." (ansi-color-filter-apply it) (split-string it "\n") (seq-filter (lambda (s) - (or (null s) (string= "" s))) it))) + (not (or (null s) (string= "" s)))) it))) (defun org-roam--list-files-search-globs (exts) "Given EXTS, return a list of search globs.