Subject: Re: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy)

From: Juri Linkov <[email-masked]>
Date: Sat, 15 Sep 2012 01:47:31 +0300

>> It's a matter of taste (some people prefer the "(default ...)").
>
> maybe, but other people (Drew, you, me and I guess many others) prefer
> other behavior.
>
> Therefore, it seems that this should be user-configurable.

(defcustom minibuffer-default-prompt-format " (default %s)"
 "Default format."
 :type 'string)

Example of usage:

(let ((default "def"))
  (read-from-minibuffer
   (format "Set bookmark%s: "
           (format minibuffer-default-prompt-format default))))

Other possible values:

(setq minibuffer-default-prompt-format " [%s]")
(setq minibuffer-default-prompt-format "")