From: Lars Ingebrigtsen Date: Wed, 24 Mar 2021 17:29:11 +0000 (+0100) Subject: Fix previous format-prompt change: The default can be a symbol X-Git-Tag: emacs-28.0.90~3152 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=711569e94c623d33cc7ab8c550f7f757e46985a5;p=emacs.git Fix previous format-prompt change: The default can be a symbol * lisp/minibuffer.el (format-prompt): The default can also be a symbol. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 1c9b2689425..5f594679ca3 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -3948,7 +3948,8 @@ is included in the return value." prompt (apply #'format prompt format-args)) (and default - (length> default 0) + (or (not (stringp default)) + (length> default 0)) (format minibuffer-default-prompt-format (if (consp default) (car default)