Prefer %S format over %s for non strings

* lisp/reveal.el (reveal-open-new-overlays, reveal-close-old-overlays):
* lisp/gnus/nnimap.el (nnimap-header-parameters)
(nnimap-make-process-buffer):
* lisp/gnus/nntp.el (nntp-make-process-buffer):
* lisp/progmodes/flymake.el (flymake--disable-backend):
* lisp/simple.el (next-error-internal):
Prefer `%S` format over `%s` for non strings.
This commit is contained in:
Stefan Monnier 2025-01-02 14:29:49 -05:00
parent 2a5725b99a
commit fba3c7ff3f
5 changed files with 9 additions and 9 deletions

View file

@ -221,13 +221,13 @@ during splitting, which may be slow."
(push "BODYSTRUCTURE" params)
(push (format
(if (nnimap-ver4-p)
"BODY.PEEK[HEADER.FIELDS %s]"
"RFC822.HEADER.LINES %s")
"BODY.PEEK[HEADER.FIELDS %S]"
"RFC822.HEADER.LINES %S")
(append '(Subject From Date Message-Id
References In-Reply-To Xref)
nnmail-extra-headers))
params)
(format "%s" (nreverse params))))
(format "(%s)" (mapconcat #'identity (nreverse params) " "))))
(defvar nnimap--max-retrieve-headers 200)
@ -386,7 +386,7 @@ during splitting, which may be slow."
(defun nnimap-make-process-buffer (buffer)
(with-current-buffer
(generate-new-buffer (format " *nnimap %s %s %s*"
(generate-new-buffer (format " *nnimap %s %s %S*"
nnimap-address nnimap-server-port
buffer))
(mm-disable-multibyte)

View file

@ -1189,7 +1189,7 @@ If SEND-IF-FORCE, only send authinfo to the server if the
"Create a new, fresh buffer usable for nntp process connections."
(with-current-buffer
(generate-new-buffer
(format " *server %s %s %s*"
(format " *server %s %s %S*"
nntp-address nntp-port-number buffer))
(gnus-add-buffer)
(mm-disable-multibyte)

View file

@ -1236,7 +1236,7 @@ If MESSAGE-PREFIX, echo a message using that prefix."
(defun flymake--disable-backend (backend &optional explanation)
"Disable BACKEND because EXPLANATION.
If it is running also stop it."
(flymake-log :warning "Disabling backend %s because %s" backend explanation)
(flymake-log :warning "Disabling backend %s because %S" backend explanation)
(flymake--with-backend-state backend state
(setf (flymake--state-running state) nil
(flymake--state-disabled state) explanation

View file

@ -145,7 +145,7 @@ Each element has the form (WINDOW . OVERLAY).")
(setq repeat t)
(condition-case err
(funcall open ol nil)
(error (message "!!Reveal-show (funcall %s %s nil): %s !!"
(error (message "!!Reveal-show (funcall %S %S nil): %S !!"
open ol err)
;; Let's default to a meaningful behavior to avoid
;; getting stuck in an infinite loop.
@ -189,7 +189,7 @@ Each element has the form (WINDOW . OVERLAY).")
open)
(condition-case err
(funcall open ol t)
(error (message "!!Reveal-hide (funcall %s %s t): %s !!"
(error (message "!!Reveal-hide (funcall %S %S t): %S !!"
open ol err)))
(overlay-put ol 'invisible inv))
;; Remove the overlay from the list of open spots.

View file

@ -393,7 +393,7 @@ To control which errors are matched, customize the variable
(next-error-found buffer (current-buffer))
(when (or next-error-verbose
(not (eq prev next-error-last-buffer)))
(message "Current locus from %s" next-error-last-buffer)))))
(message "Current locus from %S" next-error-last-buffer)))))
(defun next-error-quit-window (from-buffer to-buffer)
"Quit window of FROM-BUFFER when the prefix arg is 0.