Skip to content

Commit 2697962

Browse files
committed
Fix quoting glitch in formatting Gnus messages
* lisp/gnus/gnus-util.el (defmacro, gnus-message): Use ‘format-message’, not ‘format’, to be compatible with ‘message’.
1 parent 7272901 commit 2697962

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lisp/gnus/gnus-util.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ displayed in the echo area."
468468
(gnus-add-timestamp-to-message
469469
(if (or (and (null ,format-string) (null ,args))
470470
(progn
471-
(setq str (apply 'format ,format-string ,args))
471+
(setq str (apply #'format-message ,format-string
472+
,args))
472473
(zerop (length str))))
473474
(prog1
474475
(and ,format-string str)
@@ -506,7 +507,7 @@ inside loops."
506507
;; We have to do this format thingy here even if the result isn't
507508
;; shown - the return value has to be the same as the return value
508509
;; from `message'.
509-
(apply 'format args)))
510+
(apply #'format-message args)))
510511

511512
(defun gnus-final-warning ()
512513
(when (and (consp gnus-action-message-log)

0 commit comments

Comments
 (0)