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

    Remove needless 'file-name-as-directory' as 'denote-journal-directory' 
should do that
---
 denote-journal.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote-journal.el b/denote-journal.el
index 7a6da2fbd8..a1afd285dc 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -201,7 +201,7 @@ DATE has the same format as that returned by 
`denote-valid-date-p'."
 (defun denote-journal--entry-today (&optional date)
   "Return list of files matching a journal for today or optional DATE.
 DATE has the same format as that returned by `denote-valid-date-p'."
-  (let ((denote-directory (file-name-as-directory (denote-journal-directory))))
+  (let ((denote-directory (denote-journal-directory)))
     (denote-directory-files (denote-journal--filename-date-regexp date))))
 
 ;;;###autoload
@@ -300,7 +300,7 @@ Return (MONTH DAY YEAR) or nil if not an Org time-string."
 
 (defun denote-journal-calendar--get-files ()
   "Return list of files matching variable `denote-journal-keyword'."
-  (let ((denote-directory (file-name-as-directory (denote-journal-directory))))
+  (let ((denote-directory (denote-journal-directory)))
     (denote-directory-files (denote-journal--keyword-regex))))
 
 ;; TODO 2025-03-31: Can we know the range of visible dates in the

Reply via email to