[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu d3650160d7 161/288: Don't search if input regexp is n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu d3650160d7 161/288: Don't search if input regexp is not valid yet. |
Date: |
Thu, 6 Jan 2022 03:58:49 -0500 (EST) |
branch: elpa/anzu
commit d3650160d72cacd716dee4e626258b895bc1cc86
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Don't search if input regexp is not valid yet.
Input regexp may be invalid when users are inputting it.
---
anzu.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/anzu.el b/anzu.el
index 53a0278239..8b078e5dd9 100644
--- a/anzu.el
+++ b/anzu.el
@@ -355,13 +355,14 @@
(defun anzu--search-outside-visible (buf input beg end use-regexp)
(let ((searchfn (if use-regexp 're-search-forward 'search-forward)))
- (with-selected-window (get-buffer-window buf)
- (goto-char beg)
- (when (funcall searchfn input end t)
- (setq anzu--outside-point (match-beginning 0))
- (let ((overlay-limit (anzu--overlay-limit)))
- (anzu--count-and-highlight-matched buf input beg end use-regexp
- overlay-limit nil))))))
+ (when (or (not use-regexp) (anzu--validate-regexp input))
+ (with-selected-window (get-buffer-window buf)
+ (goto-char beg)
+ (when (funcall searchfn input end t)
+ (setq anzu--outside-point (match-beginning 0))
+ (let ((overlay-limit (anzu--overlay-limit)))
+ (anzu--count-and-highlight-matched buf input beg end use-regexp
+ overlay-limit nil)))))))
(defun anzu--check-minibuffer-input (buf beg end use-regexp overlay-limit)
(let* ((content (minibuffer-contents))
- [nongnu] elpa/anzu 43cb178b16 133/288: Update mode line like searching in replacing command, (continued)
- [nongnu] elpa/anzu 43cb178b16 133/288: Update mode line like searching in replacing command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e53fe6d0fc 135/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 48eb310d24 139/288: Improve restoring point when canceling, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2a3d8d76d2 141/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e567375313 142/288: Improve case when bounds-og-thing-at-point returns nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 67b98d6103 146/288: Improve calculation of current replacement position, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu c8f3e7b651 150/288: Merge pull request #35 from syohex/better-migemo-checking, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 962c425d39 149/288: Better checking whether using migemo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ffaf6b3c10 153/288: Add MELPA badges, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5b2ce629b7 154/288: Update MELPA links, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d3650160d7 161/288: Don't search if input regexp is not valid yet.,
ELPA Syncer <=
- [nongnu] elpa/anzu dcae136088 173/288: Fix displaying current replaced point, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e3aab048b4 168/288: Disable blink-matching-paren in read 'to' string, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b9bac0e2f8 178/288: Merge pull request #43 from syohex/fix-compile-regexp-error-case, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 1f7ac26191 189/288: Just call isearch-symbol-regexp instead of constructing own regexp, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 10bc7c5fbd 171/288: Merge pull request #41 from syohex/refactoring, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu db9e990940 179/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8930374775 176/288: Fix case if s-expression cannot be compiled., ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ef39357f0a 188/288: Use variable instead of function call, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 95caf0f382 219/288: Merge pull request #63 from tarsius/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e2cb45487d 213/288: Merge pull request #60 from kosh04/fix-literal-replace, ELPA Syncer, 2022/01/06