[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/substitute ff63ce986f 06/39: Use more descriptive name
From: |
ELPA Syncer |
Subject: |
[elpa] externals/substitute ff63ce986f 06/39: Use more descriptive name for local variable |
Date: |
Mon, 16 Jan 2023 11:58:45 -0500 (EST) |
branch: externals/substitute
commit ff63ce986fe587e244f9e0def810872d2cb30a40
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use more descriptive name for local variable
---
substitute.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/substitute.el b/substitute.el
index ae93ff12ec..cb9735eb86 100644
--- a/substitute.el
+++ b/substitute.el
@@ -155,15 +155,15 @@ This is the subroutine of `substitute-target' and
related."
(let (count)
(save-excursion
(save-restriction
- (let ((search 're-search-forward)
+ (let ((search-direction-function 're-search-forward)
(narrow (lambda () (widen) (goto-char (point-min)))))
(pcase scope
('below (setq narrow (substitute--current-and-below-motion
target)))
- ('above (setq search 're-search-backward
+ ('above (setq search-direction-function 're-search-backward
narrow (substitute--current-and-above-motion
target)))
('defun (setq narrow (substitute--current-defun))))
(funcall narrow)
- (while (funcall search target nil t)
+ (while (funcall search-direction-function target nil t)
(push (match-string-no-properties 0) count)
(replace-match sub nil t)))))
(run-hook-with-args 'substitute-post-replace-hook
- [elpa] branch externals/substitute created (now 731cb688e2), ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 2eedda90bf 02/39: Add COPYING and gitignore, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 511a45bbbc 01/39: Add initial version of substitute.el (WORK-IN-PROGRESS), ELPA Syncer, 2023/01/16
- [elpa] externals/substitute e5a012fd15 03/39: Reference correct symbol in doc string, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 8b1d32af46 04/39: Use pretty target in substitute-report-operation, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 87fc9cb145 05/39: Abstract positioning and fix issues with targeting, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute fd60c0da63 08/39: Mention substitute-report-operation in hook doc string, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute b73b62df77 10/39: Add initial version of the README, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute fd991c2e8c 07/39: Tweak one doc string format, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute ff63ce986f 06/39: Use more descriptive name for local variable,
ELPA Syncer <=
- [elpa] externals/substitute deb7d28b9e 09/39: Change substitute-highlight default value and fix typo, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 3c91a4a100 12/39: Define aliases for two commands, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 11b4277bfe 13/39: Remove obsolete symbol from doc strings, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute cdb23ab35c 17/39: Reference blog post in the README, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute e90152fc90 18/39: Bump version for package-vc-rebuild to do its job, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute e55a121666 25/39: Make minor formatting change, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute be5b7f3e71 11/39: Streamline all commands with a macro, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute a1382f1860 19/39: Tweak substitute backronym, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 8431c6b54d 20/39: Make local variables less verbose, ELPA Syncer, 2023/01/16
- [elpa] externals/substitute 178453e3a4 22/39: Rename scope functions; make code cleaner, ELPA Syncer, 2023/01/16