Restore isearch correctly after M-e in special modes (bug#30187)
commit71e458505f3f3fb5e545b83f7609dac5dff1c289
authorJuri Linkov <juri@linkov.net>
Mon, 22 Jan 2018 22:14:10 +0000 (23 00:14 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 22 Jan 2018 22:14:10 +0000 (23 00:14 +0200)
tree02f10d3dc9b2cca639979b85525f0b10a730d38b
parent4aabb425dba14c752befa15f609cc4864be41ef6
Restore isearch correctly after M-e in special modes (bug#30187)

* lisp/isearch.el (isearch-suspended): New defvar.
(with-isearch-suspended): Set isearch-suspended to t
at the beginning, then set it back to nil at the end.

* lisp/comint.el (comint-history-isearch-backward)
(comint-history-isearch-backward-regexp): Set global value of
comint-history-isearch to t.
(comint-history-isearch-end): Reevaluate
comint-history-isearch when isearch-edit-string finishes.

* lisp/dired-aux.el (dired-isearch-filenames)
(dired-isearch-filenames-regexp): Set global value of
dired-isearch-filenames to t.
(dired-isearch-filenames-end): Reevaluate
dired-isearch-filenames when isearch-edit-string finishes.
lisp/comint.el
lisp/dired-aux.el
lisp/isearch.el