From: Glenn Morris Date: Tue, 27 Nov 2018 16:24:33 +0000 (-0800) Subject: * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to message. X-Git-Tag: emacs-26.1.91~80 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f39260;p=emacs.git * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to message. --- diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el index 93235bd9ece..5b1786af512 100644 --- a/lisp/emacs-lisp/map-ynp.el +++ b/lisp/emacs-lisp/map-ynp.el @@ -254,7 +254,9 @@ the current %s and exit." ;; Clear the last prompt from the minibuffer, and restore the ;; previous echo-area message, if any. (let ((message-log-max nil)) - (message (or msg ""))) + (if msg + (message "%s" msg) + (message ""))) ;; Return the number of actions that were taken. actions))