branch: externals/denote commit eafc777268ee853c416c6e630c9a5ed54b144c9e Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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)