branch: externals/denote-journal commit 09557a1c7e2ead09ac2b36a1b5ab2cd8c9c1d03a Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Use a when-let in denote-journal-calendar--get-files-as-dates --- denote-journal.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/denote-journal.el b/denote-journal.el index 90f26a6484..918d1868a3 100644 --- a/denote-journal.el +++ b/denote-journal.el @@ -305,7 +305,8 @@ Return (MONTH DAY YEAR) or nil if not an Org time-string." (defun denote-journal-calendar--get-files-as-dates () "Return list of files as dates in the form of (MONTH DAY YEAR)." - (delq nil (mapcar #'denote-journal-calendar--file-to-date (denote-journal-calendar--get-files)))) + (when-let* ((files (denote-journal-calendar--get-files))) + (delq nil (mapcar #'denote-journal-calendar--file-to-date files)))) (defun denote-journal-calendar-mark-dates () "Mark all days in the `calendar' for which there is a Denote journal entry."