From 5f6e64a316adc6cd6ea140453718160643c6cd93 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 24 May 2022 19:02:06 +0200 Subject: [PATCH] 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. --- lisp/erc/erc-backend.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.2