changeset 111822:7a58c6c26566

* lisp/subr.el (with-demoted-errors): Distinguish symbols from strings.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 03 Dec 2010 18:20:27 -0500
parents e8c77965d85e
children 6c35da413ade
files lisp/ChangeLog lisp/subr.el
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Dec 03 18:14:50 2010 -0500
+++ b/lisp/ChangeLog	Fri Dec 03 18:20:27 2010 -0500
@@ -1,5 +1,7 @@
 2010-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* subr.el (with-demoted-errors): Distinguish symbols from strings.
+
 	* newcomment.el (comment-styles): Add docs to each style (bug#7509).
 	Improve docstring.
 	(comment-style): Use comment-styles's docs to describe values.
--- a/lisp/subr.el	Fri Dec 03 18:14:50 2010 -0500
+++ b/lisp/subr.el	Fri Dec 03 18:20:27 2010 -0500
@@ -2816,7 +2816,7 @@
   (let ((err (make-symbol "err")))
     `(condition-case-no-debug ,err
          (progn ,@body)
-       (error (message "Error: %s" ,err) nil))))
+       (error (message "Error: %S" ,err) nil))))
 
 (defmacro combine-after-change-calls (&rest body)
   "Execute BODY, but don't call the after-change functions till the end.