emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote a34ca52fbf 040/355: Fix regression in M-x denote


From: ELPA Syncer
Subject: [elpa] externals/denote a34ca52fbf 040/355: Fix regression in M-x denote
Date: Sun, 26 Jun 2022 23:57:58 -0400 (EDT)

branch: externals/denote
commit a34ca52fbffd213d321ca8b389d1114d3d3275de
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Fix regression in M-x denote
---
 denote.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index 99059e7626..82bdbe435d 100644
--- a/denote.el
+++ b/denote.el
@@ -289,11 +289,11 @@ Format current time, else use optional ID."
 (defun denote--prepare-note (title keywords &optional path)
   "Use TITLE and KEYWORDS to prepare new note file.
 Use optional PATH, else create it with `denote--path'."
-  (let* ((path (or path (denote--path title keywords)))
+  (let* ((p (or path (denote--path title keywords)))
          (default-directory denote-directory)
-         (buffer (unless path (find-file path)))
+         (buffer (unless path (find-file p)))
          (header (denote--file-meta-header
-                  title (format-time-string "%F") keywords path
+                  title (format-time-string "%F") keywords p
                   (format-time-string denote-id))))
     (unless path
       (with-current-buffer buffer (insert header))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]