diff options
| author | Juri Linkov | 2022-02-08 21:35:12 +0200 |
|---|---|---|
| committer | Juri Linkov | 2022-02-08 21:35:12 +0200 |
| commit | f7d16d93fded6ccdfef3c537c1841b7322010f12 (patch) | |
| tree | b5aa67af8c00233feec888c3edb086eee88af569 | |
| parent | 8bc4004519ae8dffa08b6692eba5c95f9e171348 (diff) | |
| download | emacs-f7d16d93fded6ccdfef3c537c1841b7322010f12.tar.gz emacs-f7d16d93fded6ccdfef3c537c1841b7322010f12.zip | |
* lisp/replace.el (perform-replace): Allow using isearch in recursive-edit.
Let-bind isearch-filter-predicate to the default value before calling
recursive-edit to allow using isearch in a recursive edit (bug#53758).
| -rw-r--r-- | lisp/replace.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 23e6483809c..06be5978554 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -3233,7 +3233,13 @@ characters." | |||
| 3233 | (last-command 'recenter-top-bottom)) | 3233 | (last-command 'recenter-top-bottom)) |
| 3234 | (recenter-top-bottom))) | 3234 | (recenter-top-bottom))) |
| 3235 | ((eq def 'edit) | 3235 | ((eq def 'edit) |
| 3236 | (let ((opos (point-marker))) | 3236 | (let ((opos (point-marker)) |
| 3237 | ;; Restore original isearch filter to allow | ||
| 3238 | ;; using isearch in a recursive edit even | ||
| 3239 | ;; when perform-replace was started from | ||
| 3240 | ;; `xref--query-replace-1' that let-binds | ||
| 3241 | ;; `isearch-filter-predicate' (bug#53758). | ||
| 3242 | (isearch-filter-predicate #'isearch-filter-visible)) | ||
| 3237 | (setq real-match-data (replace-match-data | 3243 | (setq real-match-data (replace-match-data |
| 3238 | nil real-match-data | 3244 | nil real-match-data |
| 3239 | real-match-data)) | 3245 | real-match-data)) |