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

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

[elpa] externals/denote 7ce2f7d3e3 251/355: Use the 'denote-directory' f


From: ELPA Syncer
Subject: [elpa] externals/denote 7ce2f7d3e3 251/355: Use the 'denote-directory' function, not variable
Date: Sun, 26 Jun 2022 23:58:30 -0400 (EDT)

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

    Use the 'denote-directory' function, not variable
    
    Just to be sure we always get the appropriate value.
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index d535ff51d1..811d7f1ca3 100644
--- a/denote.el
+++ b/denote.el
@@ -496,7 +496,7 @@ With optional DIR, use it instead of variable 
`denote-directory'.
 With optional ID, use it else format the current time."
   (setq denote-last-path
         (denote--format-file
-         (or dir (file-name-as-directory denote-directory))
+         (or dir (file-name-as-directory (denote-directory)))
          (or id (format-time-string denote--id-format))
          (denote--sluggify-keywords keywords)
          (denote--sluggify title)
@@ -543,7 +543,7 @@ capture).
 
 Optional DATE is passed to `denote--date', while optional ID is
 used to construct the path's identifier."
-  (let* ((default-directory denote-directory)
+  (let* ((default-directory (denote-directory))
          (p (or path (denote--path title keywords default-directory id)))
          (buffer (unless path (find-file p)))
          (header (denote--file-meta-header



reply via email to

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