Don't require isearch-update before isearch-done
commit623401267a66929a1c13c264e0dc40ba2599500f
authorNoam Postavsky <npostavs@gmail.com>
Sun, 4 Sep 2016 03:38:35 +0000 (3 23:38 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 2 Oct 2016 16:27:33 +0000 (2 12:27 -0400)
treefb7eace60f90aac504b5767df866949363b839e7
parent5e50114d2495dab67793e76411d10c93bf411e03
Don't require isearch-update before isearch-done

It is useful to be able to call `isearch-done' unconditionally to
ensure a non-isearching state.

* lisp/isearch.el (isearch-done): Check that `isearch--current-buffer'
is a live buffer before using it (Bug #21091).
* test/lisp/isearch-tests.el (isearch--test-done): Test it.

(cherry picked from commit 68f4b5292781bc331b040105c4079902b993835c)
lisp/isearch.el
test/automated/isearch-tests.el