]> git.eshelyaron.com Git - emacs.git/commit
Throw a `search-failed' derived error in Info search
authorNoam Postavsky <npostavs@gmail.com>
Sat, 1 Apr 2017 13:34:04 +0000 (09:34 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 3 Apr 2017 23:36:14 +0000 (19:36 -0400)
commit3887c54544bc2e5f8c2e7c12973887f9b2b88c40
tree28023c5157ac0504d3f3cefd65943304e140ab36
parent49197e6e3d30a4da91d5f18041dd125ac327592a
Throw a `search-failed' derived error in Info search

The original fix for Bug#6106 switched from signalling `search-failed'
to `user-error'.  However, this breaks incremental searching over
multiple nodes because the isearch code doesn't expect a `user-error'.

* src/search.c (syms_of_search): New error, `user-search-failed',
with `user-error' and `search-failed' as parents.
* doc/lispref/errors.texi (Standard Errors): Document it.
* etc/NEWS: Announce it.
* lisp/info.el (Info-search): Use it instead of `user-error' so that
isearch will handle failed searches correctly.
doc/lispref/errors.texi
etc/NEWS
lisp/info.el
src/search.c