1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 16:20:17 -08:00

Turn compiler macro defalias messages into warnings

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias):
Turn messages into warnings to make them more visible to the user and
provide a source location (bug#78792).
This commit is contained in:
Mattias Engdegård 2025-07-07 11:04:19 +02:00
parent e88af5fff7
commit 0de646b6a1

View file

@ -5186,8 +5186,10 @@ binding slots have been popped."
name macro arglist body rest)
(when macro
(if (null fun)
(message "Macro %s unrecognized, won't work in file" name)
(message "Macro %s partly recognized, trying our luck" name)
(byte-compile-warn-x
name "Macro %s unrecognized, won't work in file" name)
(byte-compile-warn-x
name "Macro %s partly recognized, trying our luck" name)
(push (cons name (eval fun lexical-binding))
byte-compile-macro-environment)))
(byte-compile-keep-pending form))))