]> code.delx.au - gnu-emacs/commitdiff
* bytecomp.el (byte-compile-report-error): Allow the argument to be a string.
authorGlenn Morris <rgm@gnu.org>
Sat, 8 Nov 2014 21:29:04 +0000 (13:29 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 8 Nov 2014 21:29:04 +0000 (13:29 -0800)
Due to the vague doc, it was already being used this way.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index e03e05c46f8df290a76ca5addd504213c438ae5d..c3ecb7536e0d29751e60d1a1d90d347cd8d0266a 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-08  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-report-error):
+       Allow the argument to be a string.  Due to the vague doc,
+       it was already being used this way.
+
 2014-11-07  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-check-cached-permissions): Include hop in
index a4f26efa02745599d77a3f4af0417751aa4932de..51006d7c471f509414e18943afbccd07c842952b 100644 (file)
@@ -1147,10 +1147,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))
 \f
 ;;; sanity-checking arglists