Don't exit Isearch while resizing windows with mouse (bug#32990)
authorJuri Linkov <juri@linkov.net>
Sat, 17 Nov 2018 21:31:52 +0000 (23:31 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 17 Nov 2018 21:31:52 +0000 (23:31 +0200)
commit8a481d29706eaf023ca786e3b905d397fbcfd685
tree768a2ad9aad825649fa0f583f91804d100a5985e
parent81f0e05a02013bd1c9ea177e234561348b108578
Don't exit Isearch while resizing windows with mouse (bug#32990)

* lisp/isearch.el (isearch-mouse-leave-buffer): New function.
(isearch-mode): Use isearch-mouse-leave-buffer instead of
isearch-done for mouse-leave-buffer-hook.
(isearch-done): Remove isearch-mouse-leave-buffer from
mouse-leave-buffer-hook.
(enlarge-window-horizontally, shrink-window-horizontally)
(shrink-window, mouse-drag-mode-line, mouse-drag-vertical-line):
Put property isearch-scroll with t.
(isearch-mode): Reset isearch-pre-scroll-point and
isearch-pre-move-point to nil for the case when Isearch exits
between isearch-pre-command-hook (that sets these values) and
isearch-post-command-hook (that used to reset them).
lisp/isearch.el