branch: externals/denote-journal
commit 53bc866c5fef82df7f5d8617be05f8ef3a32542a
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Fix the regexp in denote-journal-calendar--get-files
    
    Thanks to Alan Schmitt for identifying an error with the previous
    design. It would return non-nil in cases where it should not.
    
    This was done in issue 8: 
<https://github.com/protesilaos/denote-journal/issues/8>.
---
 denote-journal.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote-journal.el b/denote-journal.el
index 7086790355..0a62a9bc6c 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -336,7 +336,7 @@ file's title.  This has the same meaning as in 
`denote-link'."
      ;; for `denote-file-name-components-order'.  We should probably
      ;; have something in `denote.el' to do this fancy stuff, though
      ;; this is the first time I have a use-case for it.
-     (format "\\(%1$s\\|%2$s\\)\\(.*\\)\\|\\(%2$s\\|%1$s\\)" time-regexp 
keyword-regexp))))
+     (format "\\(%1$s.*%2$s\\)\\|\\(%2$s.*%1$s\\)" time-regexp 
keyword-regexp))))
 
 (defun denote-journal-calendar-mark-dates ()
   "Mark all visible days in the `calendar' for which there is a Denote journal 
entry."

Reply via email to