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

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

[elpa] externals/denote eafc777268 076/355: Use 'denote-directory' funct


From: ELPA Syncer
Subject: [elpa] externals/denote eafc777268 076/355: Use 'denote-directory' function for '#+link'
Date: Sun, 26 Jun 2022 23:58:02 -0400 (EDT)

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

    Use 'denote-directory' function for '#+link'
    
    The function ensures that the path is always returned as a directory.
    
    This commit builds on dfc3a8f.  Thanks to Jack Baty for recognising the
    problem.
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index ec9e525d34..aed34ed8d5 100644
--- a/denote.el
+++ b/denote.el
@@ -300,7 +300,7 @@ TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which 
are
             "#+identifier: " id        "\n"
             "#+filename:   " (string-remove-prefix denote-directory filename)  
"\n"
             "#+path:       " filename  "\n"
-            "#+link:       " "denote " denote-directory "%s"
+            "#+link:       " "denote " (denote-directory) "%s"
             "\n\n")))
 
 (defun denote--path (title keywords)



reply via email to

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