aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b448f30e5e3..4f8a0b0e01e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-09-11 Leo Liu <sdl.web@gmail.com>
2
3 * subr.el (ignore-errors): Mention with-demoted-errors in doc-string.
4
12012-09-11 Glenn Morris <rgm@gnu.org> 52012-09-11 Glenn Morris <rgm@gnu.org>
2 6
3 * emacs-lisp/shadow.el (load-path-shadows-font-lock-keywords): 7 * emacs-lisp/shadow.el (load-path-shadows-font-lock-keywords):
diff --git a/lisp/subr.el b/lisp/subr.el
index 9b293bb21ac..f6be21076c9 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -252,7 +252,9 @@ Treated as a declaration when used at the right place in a
252 252
253(defmacro ignore-errors (&rest body) 253(defmacro ignore-errors (&rest body)
254 "Execute BODY; if an error occurs, return nil. 254 "Execute BODY; if an error occurs, return nil.
255Otherwise, return result of last form in BODY." 255Otherwise, return result of last form in BODY.
256See also `with-demoted-errors' that does something similar
257without silencing all errors."
256 (declare (debug t) (indent 0)) 258 (declare (debug t) (indent 0))
257 `(condition-case nil (progn ,@body) (error nil))) 259 `(condition-case nil (progn ,@body) (error nil)))
258 260