From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy) Date: Sat, 15 Sep 2012 01:47:31 +0300 Organization: JURTA Message-ID: <871ui48di4.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347664315 11069 80.91.229.3 (14 Sep 2012 23:11:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 23:11:55 +0000 (UTC) Cc: 12443@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 01:11:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCf3F-0004gN-Rr for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 01:11:57 +0200 Original-Received: from localhost ([::1]:43309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCf3B-00053d-VJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 19:11:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCf39-00053Q-Hs for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 19:11:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCf38-0007VL-Kz for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 19:11:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCesj-0003eK-B7 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 19:01:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCetg-0006rJ-D4 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 19:02:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 23:02:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12443-submit@debbugs.gnu.org id=B12443.134766368826310 (code B ref 12443); Fri, 14 Sep 2012 23:02:04 +0000 Original-Received: (at 12443) by debbugs.gnu.org; 14 Sep 2012 23:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:34431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCet5-0006qE-9e for submit@debbugs.gnu.org; Fri, 14 Sep 2012 19:01:28 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:55077 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCesv-0006pc-5x for 12443@debbugs.gnu.org; Fri, 14 Sep 2012 19:01:18 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 77A00451CC45; Fri, 14 Sep 2012 16:00:14 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Fri, 14 Sep 2012 22:42:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64325 Archived-At: >> 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 "")