]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/eldoc.el
More-conservative ‘format’ quote restyling
[gnu-emacs] / lisp / emacs-lisp / eldoc.el
index 032cdec066d7f9254ad78170d19a023a3d7e9b6e..feffd5470c4ad7469b3252b9c2bf1ac7efd9ab60 100644 (file)
@@ -261,7 +261,7 @@ Otherwise work like `message'."
                        mode-line-format)))
           (setq eldoc-mode-line-string
                 (when (stringp format-string)
-                  (apply 'format format-string args)))
+                  (apply #'format-message format-string args)))
           (force-mode-line-update)))
     (apply 'message format-string args)))
 
@@ -274,7 +274,7 @@ Otherwise work like `message'."
                ;; eldoc-last-message so eq test above might succeed on
                ;; subsequent calls.
                ((null (cdr args)) (car args))
-               (t (apply 'format args))))
+               (t (apply #'format-message args))))
     ;; In emacs 19.29 and later, and XEmacs 19.13 and later, all messages
     ;; are recorded in a log.  Do not put eldoc messages in that log since
     ;; they are Legion.