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

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

[elpa] externals/denote 1d89fa0d33 2/7: Use string-prefix-p in denote--d


From: ELPA Syncer
Subject: [elpa] externals/denote 1d89fa0d33 2/7: Use string-prefix-p in denote--dir-in-denote-directory-p
Date: Mon, 18 Jul 2022 01:57:39 -0400 (EDT)

branch: externals/denote
commit 1d89fa0d3363c72a41a7f19b5951745739e49dae
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Use string-prefix-p in denote--dir-in-denote-directory-p
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 72bcd191cb..8eb5e2ebb5 100644
--- a/denote.el
+++ b/denote.el
@@ -721,8 +721,8 @@ Optional DEFAULT-TITLE is used as the default value."
 (defun denote--dir-in-denote-directory-p (directory)
   "Return DIRECTORY if in variable `denote-directory', else nil."
   (when-let* ((dir directory)
-              ((string-match-p (expand-file-name (denote-directory))
-                               (expand-file-name dir))))
+              ((string-prefix-p (expand-file-name (denote-directory))
+                                (expand-file-name dir))))
     dir))
 
 ;;;###autoload



reply via email to

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