Clarify the "Forgot to expand macro" message
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Make the define-after-use warning for macros clearer (bug#43678).
This commit is contained in:
parent
ed99a1eb89
commit
56d6e29d80
1 changed files with 2 additions and 1 deletions
|
@ -3174,7 +3174,8 @@ for symbols generated by the byte compiler itself."
|
|||
(t "."))))
|
||||
(if (eq (car-safe (symbol-function (car form))) 'macro)
|
||||
(byte-compile-report-error
|
||||
(format "Forgot to expand macro %s in %S" (car form) form)))
|
||||
(format "`%s' defined after use in %S (missing `require' of a library file?)"
|
||||
(car form) form)))
|
||||
(if (and handler
|
||||
;; Make sure that function exists.
|
||||
(and (functionp handler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue