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

Non-delayed warning for malformed function (bug#67483)

* lisp/emacs-lisp/cconv.el (cconv-convert): Use an immediate warning;
a delayed one made little sense as it's a matter of well-formedness.
This commit is contained in:
Mattias Engdegård 2023-12-20 14:15:59 +01:00
parent ff3965795f
commit 14ecc377ab

View file

@ -621,9 +621,8 @@ places where they originally did not directly appear."
`(,func . ,(mapcar (lambda (form)
(cconv-convert form env extend))
forms))
(macroexp--warn-wrap form (format-message "Malformed function `%S'"
(car form))
nil nil)))
(byte-compile-warn-x form "Malformed function `%S'" func)
nil))
(_ (or (cdr (assq form env)) form))))