]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/vhdl-mode.el
More-conservative ‘format’ quote restyling
[gnu-emacs] / lisp / progmodes / vhdl-mode.el
index 451acd2cb9c0db2dee6000be23c57bc4e2bc7b88..1b270e66dda48907dac94ddfc1472465eb456727 100644 (file)
@@ -2305,11 +2305,12 @@ Ignore byte-compiler warnings you might see."
 
 (defun vhdl-warning-when-idle (&rest args)
   "Wait until idle, then print out warning STRING and beep."
-  (if noninteractive
-      (vhdl-warning (apply 'format args) t)
-    (unless vhdl-warnings
-      (vhdl-run-when-idle .1 nil 'vhdl-print-warnings))
-    (push (apply 'format args) vhdl-warnings)))
+  (let ((message (apply #'format-message args)))
+    (if noninteractive
+        (vhdl-warning message t)
+      (unless vhdl-warnings
+        (vhdl-run-when-idle .1 nil 'vhdl-print-warnings))
+      (push message vhdl-warnings))))
 
 (defun vhdl-warning (string &optional nobeep)
   "Print out warning STRING and beep."