diff options
| author | Leo Liu | 2012-09-12 01:47:25 +0800 |
|---|---|---|
| committer | Leo Liu | 2012-09-12 01:47:25 +0800 |
| commit | d02e58f8daf5a9f3d2b7912871b57868a7ba49b7 (patch) | |
| tree | dda697ef1f5545cf83cf23dd08b31c5f3f4cee09 | |
| parent | 511fd0b2f470a33bf7f3d101ab03fcf47b797218 (diff) | |
| download | emacs-d02e58f8daf5a9f3d2b7912871b57868a7ba49b7.tar.gz emacs-d02e58f8daf5a9f3d2b7912871b57868a7ba49b7.zip | |
Mention with-demoted-errors in the doc-string of ignore-errors
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 4 |
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 @@ | |||
| 1 | 2012-09-11 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * subr.el (ignore-errors): Mention with-demoted-errors in doc-string. | ||
| 4 | |||
| 1 | 2012-09-11 Glenn Morris <rgm@gnu.org> | 5 | 2012-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. |
| 255 | Otherwise, return result of last form in BODY." | 255 | Otherwise, return result of last form in BODY. |
| 256 | See also `with-demoted-errors' that does something similar | ||
| 257 | without 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 | ||