summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-11-08 13:32:10 -0800
committerGlenn Morris <rgm@gnu.org>2014-11-08 13:32:10 -0800
commit089c6aab18ea8986bfc02ef3e65500b589e7afbe (patch)
treee9eb9948f92edb14d493aac970e5f82dc8ac306d /lisp/emacs-lisp
parente7e61abaa9de9a7e8485d1fc52a5aa6ce112620e (diff)
parent7d8205619a95e44ec5c4d589c538c6616e64483b (diff)
downloademacs-089c6aab18ea8986bfc02ef3e65500b589e7afbe.tar.gz
Merge from emacs-24; up to 117689
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 7fd72dd7705..fdb8cc8f39d 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1165,10 +1165,13 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
(byte-compile-warn "%s" msg)))))
(defun byte-compile-report-error (error-info)
- "Report Lisp error in compilation. ERROR-INFO is the error data."
+ "Report Lisp error in compilation.
+ERROR-INFO is the error data, in the form of either (ERROR-SYMBOL . DATA)
+or STRING."
(setq byte-compiler-error-flag t)
(byte-compile-log-warning
- (error-message-string error-info)
+ (if (stringp error-info) error-info
+ (error-message-string error-info))
nil :error))
;;; sanity-checking arglists