1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-02 03:40:36 -08:00

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

This commit is contained in:
Glenn Morris 2008-05-07 02:58:25 +00:00
parent 6b5de13685
commit 93fd3b3010

View file

@ -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