branch: externals/denote-journal commit 859c743c529bc6a127f371f65b5551b22f561704 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make denote-journal--entry-today not pass a DIRECTORY parameter to denote-directory-files We have decided to remove that parameter and to instead rely on the 'let' method. This was discussed with Jean-Philippe Gagné Guay in issue 559 on the 'denote' repository: <https://github.com/protesilaos/denote/issues/559>. --- denote-journal.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/denote-journal.el b/denote-journal.el index d4ec65a267..b19c581f5a 100644 --- a/denote-journal.el +++ b/denote-journal.el @@ -200,9 +200,8 @@ 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'." - (denote-directory-files - (denote-journal--filename-date-regexp date) - nil nil nil (file-name-as-directory denote-journal-directory))) + (let ((denote-directory (file-name-as-directory denote-journal-directory))) + (denote-directory-files (denote-journal--filename-date-regexp date)))) ;;;###autoload (defun denote-journal-path-to-new-or-existing-entry (&optional date)