Don't require isearch-update before isearch-done
commit68f4b5292781bc331b040105c4079902b993835c
authorNoam Postavsky <npostavs@gmail.com>
Sun, 4 Sep 2016 03:38:35 +0000 (3 23:38 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 10 Sep 2016 13:13:09 +0000 (10 09:13 -0400)
tree41915edb4e3077ad99539b04c2b7be51a1b1a8fe
parent367f8568bc9e759ebdfb423648891efa0346456b
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.
lisp/isearch.el
test/lisp/isearch-tests.el