From: Lars Ingebrigtsen Date: Tue, 24 May 2022 17:02:06 +0000 (+0200) Subject: Don't use `format-message' to make doc strings in erc-backend X-Git-Tag: emacs-29.0.90~1910^2~449 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f6e64a316adc6cd6ea140453718160643c6cd93;p=emacs.git Don't use `format-message' to make doc strings in erc-backend * lisp/erc/erc-backend.el (define-erc-response-handler): Use `format' here instead of `format-message' since Emacs will expand the doc string later when the user asks for help about the symbols defined. --- diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el index 4b21711da42..4c13f4c419a 100644 --- a/lisp/erc/erc-backend.el +++ b/lisp/erc/erc-backend.el @@ -1192,7 +1192,7 @@ Would expand to: aliases)) (let* ((hook-name (intern (format "erc-server-%s-functions" name))) (fn-name (intern (format "erc-server-%s" name))) - (hook-doc (format-message "\ + (hook-doc (format "\ %sHook called upon receiving a %%s server response. Each function is called with two arguments, the process associated with the response and the parsed response. If the function returns @@ -1203,7 +1203,7 @@ See also `%s'." (concat extra-var-doc "\n\n") "") fn-name)) - (fn-doc (format-message "\ + (fn-doc (format "\ %sHandler for a %s server response. PROC is the server process which returned the response. PARSED is the actual response as an `erc-response' struct.