branch: externals/denote-journal
commit 4d1bf9dd415268f1959893f0f6c57f4971011efe
Author: Honza Pokorny <[email protected]>
Commit: Honza Pokorny <[email protected]>

    Expand denote-journal-directory in entry-today
    
    The call to `file-name-as-directory` fails if `denote-journal-directory`
    is nil.  Calling the functions properly resolves the path.
---
 denote-journal.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote-journal.el b/denote-journal.el
index b19c581f5a..1a87e3a439 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -200,7 +200,7 @@ DATE has the same format as that returned by 
`denote-valid-date-p'."
 (defun denote-journal--entry-today (&optional date)
   "Return list of files matching a journal for today or optional DATE.
 DATE has the same format as that returned by `denote-valid-date-p'."
-  (let ((denote-directory (file-name-as-directory denote-journal-directory)))
+  (let ((denote-directory (file-name-as-directory (denote-journal-directory))))
     (denote-directory-files (denote-journal--filename-date-regexp date))))
 
 ;;;###autoload

Reply via email to