From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#12443: 24.2.50; Default values in the minibuffer prompt (fix inconsisntecy) Date: Fri, 14 Sep 2012 21:17:56 +0200 Message-ID: References: <6DE0F5273298453C9EF24A012F8DBC17@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1347650292 31027 80.91.229.3 (14 Sep 2012 19:18:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 19:18:12 +0000 (UTC) Cc: 12443@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 21:18:16 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 1TCbP5-0000hz-L8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 21:18:15 +0200 Original-Received: from localhost ([::1]:45694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbP1-0007NS-Os for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 15:18:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbOu-0007NJ-O3 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:18:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCbOt-0006Zl-Mn for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:18:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbOt-0006Zh-Iv for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCbPq-0001Wy-0F for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 19:19: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.13476503395871 (code B ref 12443); Fri, 14 Sep 2012 19:19:01 +0000 Original-Received: (at 12443) by debbugs.gnu.org; 14 Sep 2012 19:18:59 +0000 Original-Received: from localhost ([127.0.0.1]:34184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCbPn-0001We-3Q for submit@debbugs.gnu.org; Fri, 14 Sep 2012 15:18:59 -0400 Original-Received: from mail-ob0-f172.google.com ([209.85.214.172]:41665) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCbPk-0001WV-Hd for 12443@debbugs.gnu.org; Fri, 14 Sep 2012 15:18:57 -0400 Original-Received: by obbwc20 with SMTP id wc20so6534340obb.3 for <12443@debbugs.gnu.org>; Fri, 14 Sep 2012 12:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pxpTOHXWYDDKxffmRMIp2DBXhSsh6nWDI1JXLA5G25s=; b=xaXKVxFfdnIm37oqbNmdv3lPHw20DDxGQubov7H8LubzB8RmlIJZx/f4YI8TPCnJ1X sI9trwa3Ht4cru/VeK+6doD9A+L1onvzEfAaMpSPE9Zq2WPUOjbZKdujW5XbKsfJHIja IVaUaW8+Do5MBtoVsut4Woxbb8X7px7XA3/oPG04Nl+fC+Yl9FwpbiarLRYKCqcryUVj ooP+UEh2HTfFBX94HbkWvcn5/Ph+6Ji3VUO++iXYMVPR7AozEHl7VSszEYddiOLFvcjc mXB4cetnZumpgsrjXFl5p66txGswEpZK5ZOUm3GIXkFyHLQ61J+xYT2Se8797ydZtS7g lIxQ== Original-Received: by 10.60.30.168 with SMTP id t8mr2322179oeh.89.1347650277047; Fri, 14 Sep 2012 12:17:57 -0700 (PDT) Original-Received: by 10.60.50.130 with HTTP; Fri, 14 Sep 2012 12:17:56 -0700 (PDT) In-Reply-To: <6DE0F5273298453C9EF24A012F8DBC17@us.oracle.com> 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:64310 Archived-At: >> > 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. But some users may prefer to see the default value in the prompt. > --- > > 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. > That looks like a good improvement, indeed. > 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'.) I'm not sure what would be the more suitable default value (whether nil ot t), in any case, this is secondary, as anyone could customize it. -- Dani Moncayo