projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed99a1e
)
Clarify the "Forgot to expand macro" message
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 30 Sep 2020 14:12:27 +0000
(16:12 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 30 Sep 2020 14:12:32 +0000
(16:12 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Make the
define-after-use warning for macros clearer (bug#43678).
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 966990bac962f319ecf4914b1af8a2d70a9cb56d..7c95c9180095dbf1f3a2620ef7644a67533367bc 100644
(file)
--- 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)