branch: externals/denote-journal
commit 36da409411f3a9bb97c6527966f353d4b3770f87
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use new name to check if a file has a Denote-style name
---
 denote-journal.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote-journal.el b/denote-journal.el
index d89bd9c459..377562b4db 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -209,12 +209,12 @@ If the path does not exist, then make it first."
 
 (defun denote-journal-file-is-journal-p (file)
   "Return non-nil if FILE is a journal entry."
-  (and (denote-file-is-note-p file)
+  (and (denote-file-has-denoted-filename-p file)
        (string-match-p (denote-journal--keyword-regex) (file-name-nondirectory 
file))))
 
 (defun denote-journal-filename-is-journal-p (filename)
   "Return non-nil if FILENAME is a valid name for a journal entry."
-  (and (denote-filename-is-note-p filename)
+  (and (denote-file-has-denoted-filename-p filename)
        (string-match-p (denote-journal--keyword-regex) (file-name-nondirectory 
filename))))
 
 (defun denote-journal-daily--title-format (&optional date)

Reply via email to