]> git.eshelyaron.com Git - emacs.git/commitdiff
Format string warnings for more functions (bug#71379)
authorMattias EngdegÄrd <mattiase@acm.org>
Wed, 5 Jun 2024 16:28:59 +0000 (18:28 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 6 Jun 2024 10:26:22 +0000 (12:26 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-format-like):
Add message-box, message-or-box, warn and user-error.

(cherry picked from commit 32bfc825a7e4848f2bf28987ab5259d4031ff6aa)

lisp/emacs-lisp/bytecomp.el

index fa44b0bc78925a1db932be58b39c73318f2a997e..94f5264cb6a00b683f9999a51f758bc3ff2f0dd5 100644 (file)
@@ -1643,7 +1643,8 @@ extra args."
          nargs (if (= nargs 1) "" "s")
          nfields (if (= nfields 1) "" "s"))))))
 
-(dolist (elt '(format message format-message error user-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