Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6b5de136
Commit
6b5de136
authored
May 07, 2008
by
Glenn Morris
Browse files
(ignore-errors): Move here from cl-macs.el.
parent
5a1dde61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lisp/subr.el
lisp/subr.el
+5
-0
No files found.
lisp/subr.el
View file @
6b5de136
...
...
@@ -202,6 +202,11 @@ the return value (nil if RESULT is omitted).
Treated as a declaration when used at the right place in a
`defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)"
nil
)
(
defmacro
ignore-errors
(
&rest
body
)
"Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY."
`
(
condition-case
nil
(
progn
,@
body
)
(
error
nil
)))
;;;; Basic Lisp functions.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment