aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-26 09:58:23 +0200
committerLars Ingebrigtsen2019-07-26 09:58:53 +0200
commiteb45cc9521e25dc685bdfb4a6b7926c244fbf259 (patch)
tree293d9e053560d62f055e3348fb7378a75d5c7000 /doc/lispref
parent66db7b2c36c9189baf6f6b3d3fd7d04b3903cab4 (diff)
downloademacs-eb45cc9521e25dc685bdfb4a6b7926c244fbf259.tar.gz
emacs-eb45cc9521e25dc685bdfb4a6b7926c244fbf259.zip
Add new macro `ignore-error'
* doc/lispref/control.texi (Handling Errors): Document `ignore-error'. * lisp/subr.el (ignore-error): New macro. * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Provide completion for `ignore-error'.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/control.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index de6cd9301ff..e98daf66e98 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -2154,6 +2154,18 @@ Here's the example at the beginning of this subsection rewritten using
2154@end example 2154@end example
2155@end defmac 2155@end defmac
2156 2156
2157@defmac ignore-error condition body@dots{}
2158This macro is like @code{ignore-errors}, but will only ignore the
2159specific error condition specified.
2160
2161@example
2162 (ignore-error end-of-file
2163 (read ""))
2164@end example
2165
2166@var{condition} can also be a list of error conditions.
2167@end defmac
2168
2157@defmac with-demoted-errors format body@dots{} 2169@defmac with-demoted-errors format body@dots{}
2158This macro is like a milder version of @code{ignore-errors}. Rather 2170This macro is like a milder version of @code{ignore-errors}. Rather
2159than suppressing errors altogether, it converts them into messages. 2171than suppressing errors altogether, it converts them into messages.