emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 56d6e29: Clarify the "Forgot to expand macro" message


From: Lars Ingebrigtsen
Subject: master 56d6e29: Clarify the "Forgot to expand macro" message
Date: Wed, 30 Sep 2020 10:12:39 -0400 (EDT)

branch: master
commit 56d6e29d8063552b6a293f67f91ce6967913d928
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/emacs-lisp/bytecomp.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 966990b..7c95c91 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]