[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote c7d8d07119 12/17: Rename save-excursion and save
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote c7d8d07119 12/17: Rename save-excursion and save-restriction when using with-temp-buffer |
Date: |
Mon, 15 Aug 2022 01:57:35 -0400 (EDT) |
branch: externals/denote
commit c7d8d0711976caaa9875e1ce24d06a7f71f169d1
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Rename save-excursion and save-restriction when using with-temp-buffer
---
denote.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index 7276a32349..ad5b645c5e 100644
--- a/denote.el
+++ b/denote.el
@@ -1289,11 +1289,8 @@ block if appropriate."
"Return t if REGEXP matches in the FILE."
(with-temp-buffer
(insert-file-contents file)
- (save-excursion
- (save-restriction
- (widen)
- (goto-char (point-min))
- (re-search-forward regexp nil t 1)))))
+ (goto-char (point-min))
+ (re-search-forward regexp nil t 1)))
(defun denote--edit-front-matter-p (file file-type)
"Test if FILE should be subject to front matter rewrite.
- [elpa] externals/denote 24e713f096 01/17: Add a File types section, (continued)
- [elpa] externals/denote 24e713f096 01/17: Add a File types section, ELPA Syncer, 2022/08/15
- [elpa] externals/denote b84d945d58 17/17: Merge pull request #89 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 3d7c33e4cf 11/17: Fix denote--format-front-matter, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 2d1664c276 16/17: Use when-let in denote--filetype-heuristics, ELPA Syncer, 2022/08/15
- [elpa] externals/denote e14ca11118 03/17: Implement accessor functions for denote--file-types, ELPA Syncer, 2022/08/15
- [elpa] externals/denote a270951e9b 07/17: Rename denote--retrieve-value-title and denote--retrieve-value-keywords, ELPA Syncer, 2022/08/15
- [elpa] externals/denote f9fbebd9e4 09/17: Use plists in denote-file-types, ELPA Syncer, 2022/08/15
- [elpa] externals/denote b3cd0a7d4c 02/17: Add denote--file-types, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 759fe4cb4e 10/17: Fix denote--filetype-heuristics, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 685152876e 08/17: Rename denote--file-types to denote-file-types, ELPA Syncer, 2022/08/15
- [elpa] externals/denote c7d8d07119 12/17: Rename save-excursion and save-restriction when using with-temp-buffer,
ELPA Syncer <=
- [elpa] externals/denote 1eb8d368b1 04/17: Refactor many functions to use denote--file-types, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 9ea4078fb3 06/17: Remove denote--front-matter-keywords-to-list and use denote--retrieve-value-keywords instead, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 4dc13f44e5 05/17: Refactor denote--migrate-type-files and use denote--retrieve-keywords-line, ELPA Syncer, 2022/08/15
- [elpa] externals/denote b179ea3178 13/17: Refactor denote--get-title-line-from-front-matter and denote--get-keywords-line-from-front-matter, ELPA Syncer, 2022/08/15