Format string warnings for more functions (bug#71379)

* lisp/emacs-lisp/bytecomp.el (byte-compile-format-like):
Add message-box, message-or-box, warn and user-error.
This commit is contained in:
Mattias Engdegård 2024-06-05 18:28:59 +02:00
parent 7fbafb9d95
commit 32bfc825a7

View file

@ -1643,7 +1643,8 @@ extra args."
nargs (if (= nargs 1) "" "s")
nfields (if (= nfields 1) "" "s"))))))
(dolist (elt '(format message format-message error))
(dolist (elt '( format message format-message message-box message-or-box
warn error user-error))
(put elt 'byte-compile-format-like t))
;; Warn if the function or macro is being redefined with a different