* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for

funcall as well.  Warn when performing those conversions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix error report.

Fixes: debbugs:8712
This commit is contained in:
Stefan Monnier 2011-05-22 15:22:30 -03:00
parent 79106a44d3
commit 9c848d8a75
3 changed files with 15 additions and 3 deletions

View file

@ -2892,8 +2892,8 @@ If FORM is a lambda or a macro, byte-compile it as a function."
That command is designed for interactive use only" fn))
(if (and (fboundp (car form))
(eq (car-safe (symbol-function (car form))) 'macro))
(byte-compile-report-error
(format "Forgot to expand macro %s" (car form))))
(byte-compile-log-warning
(format "Forgot to expand macro %s" (car form)) nil :error))
(if (and handler
;; Make sure that function exists. This is important
;; for CL compiler macros since the symbol may be