From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy) Date: Fri, 14 Sep 2012 09:39:10 -0700 Message-ID: <6DE0F5273298453C9EF24A012F8DBC17@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347640826 14494 80.91.229.3 (14 Sep 2012 16:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 16:40:26 +0000 (UTC) Cc: 12443@debbugs.gnu.org To: "'Stefan Monnier'" , "'Dani Moncayo'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 18:40:29 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 1TCYwN-0000tL-9r for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 18:40:27 +0200 Original-Received: from localhost ([::1]:48779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYwJ-0001jt-5m for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 12:40:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYw7-0001ir-J5 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:40:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYw1-0000La-3f for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:40:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYw1-0000Kn-0X for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:40:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCYww-0006DQ-0W for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 16:41:01 +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.134764082423845 (code B ref 12443); Fri, 14 Sep 2012 16:41:01 +0000 Original-Received: (at 12443) by debbugs.gnu.org; 14 Sep 2012 16:40:24 +0000 Original-Received: from localhost ([127.0.0.1]:34048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYwI-0006CX-MB for submit@debbugs.gnu.org; Fri, 14 Sep 2012 12:40:23 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:24344) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYwE-0006CM-1K for 12443@debbugs.gnu.org; Fri, 14 Sep 2012 12:40:21 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8EGdGco004551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Sep 2012 16:39:19 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8EGdF0D005605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Sep 2012 16:39:16 GMT Original-Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8EGdFBW023371; Fri, 14 Sep 2012 11:39:15 -0500 Original-Received: from dradamslap1 (/10.159.182.71) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 Sep 2012 09:39:14 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2SkZ51kA5WNnFWSACSL19Ze5aqZQAA4Y/Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:64298 Archived-At: > > I see no reason for this inconsistency, > > Agreed. The officially sanctioned behavior is to use "(default ...)". > > neither I see the need for the "default " part. > > That would make the job of minibuffer-electric-default-mode harder > (more false positives). No offense to Miles or anyone else, but that mode is just a workaround for the bother introduced by Emacs adding `(default ...)' here and there (but not yet everywhere). Just get rid of the cause, instead of sticking a band-aid on the wound. > > So, hereby I propose to fix this, i.e., to omit the "default " in > > those commands where this is currently shown. > > I find the "(default ...)" text to use up too much space for > my own taste, so I use the patch below to rewrite it on-the-fly > to "[...]". Just get rid of "(default ...)" altogether. A user can use `M-n' to see the default value, and `M-n RET' instead of `RET' to choose it. No big deal, and a lot less noise. --- Or do as I do in Icicles: give users the choice, across all minibuffer prompts. They have an option, with these possible values: nil - Do not insert default value or add it to prompt. t - Add default value to prompt (except for `read-file-name' and `read-from-minibuffer'). Do not insert it. `insert-start' - Insert default value and leave cursor at start. `insert-end' - Insert default value and leave cursor at end. `preselect-start' - Insert and preselect default value; leave cursor at beginning. `preselect-end' - Insert and preselect default value; leave cursor at end. The default value of the option is `t' (mainly to be closer to what people are used to in vanilla Emacs). But what I am suggesting for Emacs is the `nil' behavior as default: do nothing with the default value. (Personally, I use `insert-end'.)