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:
parent
e88af5fff7
commit
0de646b6a1
1 changed files with 4 additions and 2 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue