[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 0b4a888c36 2/5: Check if file is in denote-direc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 0b4a888c36 2/5: Check if file is in denote-directory in denote--only-note-p |
Date: |
Mon, 15 Aug 2022 02:57:32 -0400 (EDT) |
branch: externals/denote
commit 0b4a888c362d372917a7dc46d83cbe9e537bfead
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Check if file is in denote-directory in denote--only-note-p
---
denote.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/denote.el b/denote.el
index d4d2851526..0503732ee0 100644
--- a/denote.el
+++ b/denote.el
@@ -438,6 +438,7 @@ trailing hyphen."
(let ((file-name (file-name-nondirectory file)))
(and (not (file-directory-p file))
(file-regular-p file)
+ (string-prefix-p (denote-directory) (expand-file-name file))
(string-match-p (concat "\\`" denote--id-regexp
".*" denote--extension-regexp
"\\(.gpg\\)?"