[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Wed, 07 May 2008 02:57:54 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Glenn Morris <gm> 08/05/07 02:57:54
Index: subr.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/subr.el,v
retrieving revision 1.595
retrieving revision 1.596
diff -u -b -r1.595 -r1.596
--- subr.el 6 May 2008 07:57:52 -0000 1.595
+++ subr.el 7 May 2008 02:57:53 -0000 1.596
@@ -203,6 +203,11 @@
`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.
(defun ignore (&rest ignore)