summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-30 16:12:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-30 16:12:32 +0200
commit56d6e29d8063552b6a293f67f91ce6967913d928 (patch)
treea548a882e70e57b36ab58dc27e11097685753e59 /lisp/emacs-lisp/bytecomp.el
parented99a1eb894ab2e02cb3126aacff9e61eb1e473b (diff)
downloademacs-56d6e29d8063552b6a293f67f91ce6967913d928.tar.gz
emacs-56d6e29d8063552b6a293f67f91ce6967913d928.tar.bz2
emacs-56d6e29d8063552b6a293f67f91ce6967913d928.zip
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).
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 966990bac96..7c95c918009 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -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)