branch: externals/denote-journal commit b72cec4358899ddc4bf7b542174418305bbda8be Author: Alan Schmitt <alan.schm...@polytechnique.org> Commit: Alan Schmitt <alan.schm...@polytechnique.org>
Use the valid date in `denote-journal--date-in-interval-p' --- denote-journal.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote-journal.el b/denote-journal.el index 00fc22d0b7..7b2491691e 100644 --- a/denote-journal.el +++ b/denote-journal.el @@ -251,7 +251,7 @@ DATE has the same format as that returned by `denote-valid-date-p'." "Return DATE if it is within the INTERVAL else nil. INTERVAL is one among the symbols used by `denote-journal-interval'. DATE has the same format as that returned by `denote-valid-date-p'." - (if (denote-valid-date-p date) + (if-let ((date (denote-valid-date-p date))) (let* ((current (current-time)) (specifiers (pcase interval ('weekly "%Y-%V")