aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/errors.texi
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-01 09:34:04 -0400
committerNoam Postavsky2017-04-03 19:36:14 -0400
commit3887c54544bc2e5f8c2e7c12973887f9b2b88c40 (patch)
tree28023c5157ac0504d3f3cefd65943304e140ab36 /doc/lispref/errors.texi
parent49197e6e3d30a4da91d5f18041dd125ac327592a (diff)
downloademacs-3887c54544bc2e5f8c2e7c12973887f9b2b88c40.tar.gz
emacs-3887c54544bc2e5f8c2e7c12973887f9b2b88c40.zip
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.
Diffstat (limited to 'doc/lispref/errors.texi')
-rw-r--r--doc/lispref/errors.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi
index 2ec1a108ea9..1f67819c34e 100644
--- a/doc/lispref/errors.texi
+++ b/doc/lispref/errors.texi
@@ -186,6 +186,12 @@ The message is @samp{Undefined color}. @xref{Color Names}.
186@item user-error 186@item user-error
187The message is the empty string. @xref{Signaling Errors}. 187The message is the empty string. @xref{Signaling Errors}.
188 188
189@item user-search-failed
190This is like @samp{search-failed}, but doesn't trigger the debugger,
191like @samp{user-error}. @xref{Signaling Errors}, and @xref{Searching
192and Matching}. This is used for searching in Info files, @xref{Search
193Text,,,info,Info}.
194
189@item void-function 195@item void-function
190The message is @samp{Symbol's function definition is void}. 196The message is @samp{Symbol's function definition is void}.
191@xref{Function Cells}. 197@xref{Function Cells}.