[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote dbe003bae7 3/6: Use with-temp-buffer instead of
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote dbe003bae7 3/6: Use with-temp-buffer instead of with-current-buffer in denote--regexp-in-file-p |
Date: |
Fri, 12 Aug 2022 23:57:30 -0400 (EDT) |
branch: externals/denote
commit dbe003bae7bb9f13e4fc31e7fabe3e9d21d105d1
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Use with-temp-buffer instead of with-current-buffer in
denote--regexp-in-file-p
---
denote.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index cd82694bfc..31547eb157 100644
--- a/denote.el
+++ b/denote.el
@@ -1165,7 +1165,8 @@ appropriate."
(defun denote--regexp-in-file-p (regexp file)
"Return t if REGEXP matches in the FILE."
- (with-current-buffer (find-file-noselect file)
+ (with-temp-buffer
+ (insert-file-contents file)
(save-excursion
(save-restriction
(widen)
- [elpa] externals/denote updated (16e67cba93 -> 75cbaaf3a1), ELPA Syncer, 2022/08/12
- [elpa] externals/denote eff882fb09 4/6: Add file-type parameter to denote--add-front-matter, ELPA Syncer, 2022/08/12
- [elpa] externals/denote fe4bd822fd 5/6: Remove the optional key parameter from denote--retrieve-search and related functions, ELPA Syncer, 2022/08/12
- [elpa] externals/denote dbe003bae7 3/6: Use with-temp-buffer instead of with-current-buffer in denote--regexp-in-file-p,
ELPA Syncer <=
- [elpa] externals/denote 061c7013eb 2/6: Add denote--title-key-regexp and denote--keywords-key-regexp functions and use them, ELPA Syncer, 2022/08/12
- [elpa] externals/denote 75cbaaf3a1 6/6: Merge pull request #88 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/12
- [elpa] externals/denote aeb8905128 1/6: Remove some unused variables and functions, ELPA Syncer, 2022/08/12