branch: externals/denote-journal
commit 3c1f264780dbfd89d483143cd1419f178adc859c
Author: jbwfu <75001777+jb...@users.noreply.github.com>
Commit: jbwfu <75001777+jb...@users.noreply.github.com>

    Make denote-journal-path-to-new-or-existing-entry correctly return the 
newly created file path.
---
 denote-journal.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote-journal.el b/denote-journal.el
index 74bc7dd864..c08259e74f 100644
--- a/denote-journal.el
+++ b/denote-journal.el
@@ -240,7 +240,8 @@ If there are multiple journal entries for the date, prompt 
for one among
 them using minibuffer completion.  If there is only one, return it.  If
 there is no journal entry, create it."
   (let* ((internal-date (or (denote-valid-date-p date) (current-time)))
-         (files (denote-journal--entry-today internal-date)))
+         (files (denote-journal--entry-today internal-date))
+         (denote-kill-buffers nil))
     (if files
         (denote-journal-select-file-prompt files)
       (save-window-excursion

Reply via email to