branch: externals/denote-journal
commit 5b5eab551ebb3cedb5fdc06bb1b5781a81945f99
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Ensure denote-directory-files gets DIRECTORIES as a list
    
    Otherwise we get the error of trying to work with a string when
    expecting a list.
    
    Thanks to Donald Brady for reporting the bug in issue 656 on the main
    Denote repository and to kamchy for confirming the problem:
    <https://github.com/protesilaos/denote/issues/656>.
---
 README.org        | 3 ++-
 denote-journal.el | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 7686c20525..d03b74386e 100644
--- a/README.org
+++ b/README.org
@@ -460,7 +460,8 @@ Denote Journal is meant to be a collective effort.  Every 
bit of help matters.
   Schmitt, Ettore Berardi, Honza Pokorny, Josh Kingsley, Stefan
   Monnier, Vineet C. Kulkarni, gk2803, jbwfu.
 
-+ Ideas and/or user feedback :: Alan Schmitt, Kevin McCarthy, Halogen3576.
++ Ideas and/or user feedback :: Alan Schmitt, Donald Brady, Kevin
+  McCarthy, Halogen3576, kamchy.
 
 * GNU Free Documentation License
 :PROPERTIES:
diff --git a/denote-journal.el b/denote-journal.el
index 688a0af308..2ea10fdf4c 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -326,7 +326,7 @@ DATE has the same format as that returned by 
`denote-valid-date-p'."
   "Return list of files matching a journal for DATE given INTERVAL.
 INTERVAL is one among the symbols used by `denote-journal-interval'.
 DATE has the same format as that returned by `denote-valid-date-p'."
-  (denote-directory-files (denote-journal--filename-regexp date interval) nil 
nil nil nil (denote-journal-directory)))
+  (denote-directory-files (denote-journal--filename-regexp date interval) nil 
nil nil nil (list (denote-journal-directory))))
 
 (defun denote-journal-select-file-prompt (files)
   "Prompt for file among FILES if >1, else return the `car'.

Reply via email to