diff options
| author | Juri Linkov | 2024-01-05 09:39:04 +0200 |
|---|---|---|
| committer | Juri Linkov | 2024-01-05 09:40:05 +0200 |
| commit | dc9d02f8a01d86ac8ff3fb004bb2f22cf211dcef (patch) | |
| tree | 694ea98b29162b926e6349e67000d5dece275d96 | |
| parent | 9308d9a74ab586e9793b2561da23116f2b4fe205 (diff) | |
| download | emacs-dc9d02f8a01d86ac8ff3fb004bb2f22cf211dcef.tar.gz emacs-dc9d02f8a01d86ac8ff3fb004bb2f22cf211dcef.zip | |
* lisp/isearch.el (isearch-search-and-update): Let-bind 'isearch-cmds'.
When 'isearch-wrap-pause' is 'no' or 'no-ding', let-bind 'isearch-cmds'
to avoid changing it by 'isearch-push-state' in 'isearch-repeat',
so that a later DEL (isearch-delete-char) doesn't stop at the
intermediate failing state (bug#68158).
| -rw-r--r-- | lisp/isearch.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index ee5660309df..f753a5377ca 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2844,7 +2844,8 @@ The command accepts Unicode names like \"smiling face\" or | |||
| 2844 | (isearch-search) | 2844 | (isearch-search) |
| 2845 | (when (and (memq isearch-wrap-pause '(no no-ding)) | 2845 | (when (and (memq isearch-wrap-pause '(no no-ding)) |
| 2846 | (not isearch-success)) | 2846 | (not isearch-success)) |
| 2847 | (isearch-repeat (if isearch-forward 'forward 'backward))))) | 2847 | (let ((isearch-cmds isearch-cmds)) |
| 2848 | (isearch-repeat (if isearch-forward 'forward 'backward)))))) | ||
| 2848 | (isearch-push-state) | 2849 | (isearch-push-state) |
| 2849 | (if isearch-op-fun (funcall isearch-op-fun)) | 2850 | (if isearch-op-fun (funcall isearch-op-fun)) |
| 2850 | (isearch-update)) | 2851 | (isearch-update)) |