From 59fe23f406f9873a9f289e828d146b579440cfe1 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 7 Jan 2025 20:44:09 +0200 Subject: [PATCH] Prefer `%s` format over `%S` for buffers This restores the `%s` format` for buffers after fba3c7ff3f68f05d32541440e0a22ec667c0ad66. * lisp/gnus/nnimap.el (nnimap-make-process-buffer): * lisp/gnus/nntp.el (nntp-make-process-buffer): * lisp/simple.el (next-error-internal): Prefer more user-readable `%s` format over `%S` for buffers. (cherry picked from commit 4bf0f6655142b9e216325d051943b7b7ca4d2cd7) --- lisp/gnus/nnimap.el | 2 +- lisp/gnus/nntp.el | 2 +- lisp/simple.el | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index b9c6586c03f..f63138300b1 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -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) diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index aaa80e035ea..a086421b049 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el @@ -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) diff --git a/lisp/simple.el b/lisp/simple.el index 2a813b42d98..164f5c089bf 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -409,7 +409,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. -- 2.39.5