message-y-or-n-p

message-y-or-n-p is an autoloaded Lisp macro in `message.el'.

(message-y-or-n-p QUESTION SHOW &rest TEXT)

Ask QUESTION, displaying remaining args in a temporary buffer if SHOW.