From dbfe4b189a9eedd812d767bc318db2b33271e4c2 Mon Sep 17 00:00:00 2001 From: Protesilaos Date: Wed, 13 May 2026 11:12:45 +0300 Subject: [PATCH] Remove faulty 'or' from denote--dir-in-denote-directory-p MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Jean-Philippe Gagné Guay for pointing out the problem with it in a comment to issue 705: . --- denote.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/denote.el b/denote.el index b202402..46ef751 100644 --- a/denote.el +++ b/denote.el @@ -3107,8 +3107,7 @@ TEMPLATE, and SIGNATURE should be valid for note creation." "Return non-nil if DIRECTORY is in variable `denote-directory'." (seq-some (lambda (d) - (or (string-prefix-p d (file-name-as-directory (expand-file-name directory))) - (string-prefix-p (file-name-as-directory (expand-file-name directory)) d))) + (string-prefix-p d (file-name-as-directory (expand-file-name directory)))) (denote-directories))) (defun denote--valid-file-type (filetype)