branch: externals/denote-journal
commit a191b3ff4fc5f3890051db77defa0a726f541d8b
Author: Alan Schmitt <alan.schm...@polytechnique.org>
Commit: Alan Schmitt <alan.schm...@polytechnique.org>

    Allow nil 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 6cf5ac296a..b57e2e125e 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-let* ((date (denote-valid-date-p date))
+  (if-let* ((date (or (denote-valid-date-p date) (current-time)))
             (current (current-time))
             (specifiers (pcase interval
                           ('weekly "%Y-%V")

Reply via email to