branch: externals/denote commit 6dd9a135b7191ed92688e6fc3ae04edb5c4c9eb4 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Fix denote--dir-in-denote-directory-p The previous design would fail if DIRECTORY did not end with a slash. Given the 'string-prefix-p', I assume this is the intended expression. --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index b61361198a..c27f9d0388 100644 --- a/denote.el +++ b/denote.el @@ -2744,7 +2744,7 @@ TEMPLATE, and SIGNATURE should be valid for note creation." "Return non-nil if DIRECTORY is in variable `denote-directory'." (seq-some (lambda (d) - (string-prefix-p d (expand-file-name directory))) + (string-prefix-p (expand-file-name directory) d)) (denote-directories))) (defun denote--valid-file-type (filetype)