aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNoam Postavsky2018-08-09 21:26:30 -0400
committerNoam Postavsky2018-09-04 18:50:15 -0400
commit425c2811641a6b8ec4549cad5f6bd15a46bc95d5 (patch)
tree18bdf8e19e80624d0c22fe6bba70e35a1e022c27 /doc
parent21637d5e5b29d5ec8fb966c0ddfbfba3eb33da38 (diff)
downloademacs-425c2811641a6b8ec4549cad5f6bd15a46bc95d5.tar.gz
emacs-425c2811641a6b8ec4549cad5f6bd15a46bc95d5.zip
Allow t as a catch-all condition-case handler (Bug#24618)
* src/eval.c (find_handler_clause): Accept a handler of t as always matching. (Fcondition_case): * doc/lispref/control.texi (Handling Errors): Document this. * etc/NEWS: Announce it.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/control.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 975ab3d0759..8a6cf73af51 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -1878,9 +1878,10 @@ error occurs during @var{protected-form}.
1878Each of the @var{handlers} is a list of the form @code{(@var{conditions} 1878Each of the @var{handlers} is a list of the form @code{(@var{conditions}
1879@var{body}@dots{})}. Here @var{conditions} is an error condition name 1879@var{body}@dots{})}. Here @var{conditions} is an error condition name
1880to be handled, or a list of condition names (which can include @code{debug} 1880to be handled, or a list of condition names (which can include @code{debug}
1881to allow the debugger to run before the handler); @var{body} is one or more 1881to allow the debugger to run before the handler). A condition name of
1882Lisp expressions to be executed when this handler handles an error. 1882@code{t} matches any condition. @var{body} is one or more Lisp
1883Here are examples of handlers: 1883expressions to be executed when this handler handles an error. Here
1884are examples of handlers:
1884 1885
1885@example 1886@example
1886@group 1887@group