Commit 93fd3b30 authored by Glenn Morris's avatar Glenn Morris

(ignore-errors): Move to subr.el.

parent 6b5de136
......@@ -2519,13 +2519,6 @@ omitted, a default message listing FORM itself is used."
(list* 'list (list 'quote form) sargs))))
nil))))
;;;###autoload
(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)))
;;; Compiler macros.
;;;###autoload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment