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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user