branch: externals/denote
commit 0f4dbbdf0bb01f90c9577db3822fa0c75e1c5bc7
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Rename private function for clarity
---
denote.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/denote.el b/denote.el
index 42a09701e6..f568a0b0a0 100644
--- a/denote.el
+++ b/denote.el
@@ -1143,7 +1143,7 @@ appropriate."
(goto-char (point-min))
(insert new-front-matter))))
-(defun denote--file-match-p (regexp file)
+(defun denote--regexp-in-file-p (regexp file)
"Return t if REGEXP matches in the FILE."
(with-current-buffer (find-file-noselect file)
(save-excursion
@@ -1168,8 +1168,8 @@ variable `denote-directory'."
(string-match-p "\\(md\\|org\\|txt\\)\\'" ext)
;; Heuristic to check if this is one of our notes
(string-prefix-p (denote-directory) (expand-file-name file))
- (denote--file-match-p denote--retrieve-title-front-matter-key-regexp
file)
- (denote--file-match-p
denote--retrieve-keywords-front-matter-key-regexp file))))
+ (denote--regexp-in-file-p
denote--retrieve-title-front-matter-key-regexp file)
+ (denote--regexp-in-file-p
denote--retrieve-keywords-front-matter-key-regexp file))))
(defun denote--rewrite-keywords (file keywords)
"Rewrite KEYWORDS in FILE outright.