]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to message.
authorGlenn Morris <rgm@gnu.org>
Tue, 27 Nov 2018 16:24:33 +0000 (08:24 -0800)
committerGlenn Morris <rgm@gnu.org>
Tue, 27 Nov 2018 16:24:33 +0000 (08:24 -0800)
lisp/emacs-lisp/map-ynp.el

index 93235bd9ece35a08b678a6e217de58b648529303..5b1786af51245041bc8c0baf32fe5befd63d40b1 100644 (file)
@@ -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))