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:10:12 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1347649874 27573 80.91.229.3 (14 Sep 2012 19:11:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 19:11:14 +0000 (UTC) Cc: 12443@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 21:11:17 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 1TCbIK-0004XD-N1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 21:11:16 +0200 Original-Received: from localhost ([::1]:40630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbIG-000443-NK for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 15:11:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbID-00043m-Or for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:11:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCbI7-00040Z-Ol for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:11:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCbI7-00040R-L4 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCbJ4-0001LR-0A for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 15:12: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:12: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.13476498745113 (code B ref 12443); Fri, 14 Sep 2012 19:12:01 +0000 Original-Received: (at 12443) by debbugs.gnu.org; 14 Sep 2012 19:11:14 +0000 Original-Received: from localhost ([127.0.0.1]:34164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCbIH-0001KO-6P for submit@debbugs.gnu.org; Fri, 14 Sep 2012 15:11:13 -0400 Original-Received: from mail-oa0-f44.google.com ([209.85.219.44]:46492) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCbIF-0001KH-Np for 12443@debbugs.gnu.org; Fri, 14 Sep 2012 15:11:12 -0400 Original-Received: by oagk14 with SMTP id k14so3065662oag.3 for <12443@debbugs.gnu.org>; Fri, 14 Sep 2012 12:10:12 -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=3ALkoSwSP8SyM0JR0q/7mencg5LaN/+KuBcau5n+nPY=; b=ioPhQfrIcNJIuZYKxC75wCQOQp3K95GUu5rjur7i4fa/kNGwvn6EhxsjV0eqTyCnxy byagoYf8Cxd2T1whXzQJKiIe+vcmX4HY8Oo3p1jS5VeR/peQYPm9ZQBRkp1QLIw5udkx Rx+SlHPuMJBy5YOctANkoyt8XdvU0hDHy+pjT9h0FHnOYOrgc7Bx4+35x3vf26my9Xpt S9/qTYlb2GWzwuY8h6XAaNU5dLEcfgJC0uJjdhTcj3lNGjI5E+eFj9DUJz3TkI+ks5Lt cnVk3Ff8y0WES0IvyKjUhEH4MBfmGw3dSUEq/d9tGWysDOYuL6y0KCJ4NM97j6etj3Ah jiKQ== Original-Received: by 10.182.207.6 with SMTP id ls6mr5049603obc.36.1347649812491; Fri, 14 Sep 2012 12:10:12 -0700 (PDT) Original-Received: by 10.60.50.130 with HTTP; Fri, 14 Sep 2012 12:10:12 -0700 (PDT) In-Reply-To: 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:64305 Archived-At: On Fri, Sep 14, 2012 at 5:56 PM, Stefan Monnier wrote: >> I see no reason for this inconsistency, > > Agreed. The officially sanctioned behavior is to use "(default ...)". Then all commands should be consistent on that. >> neither I see the need for the "default " part. > > That would make the job of minibuffer-electric-default-mode harder > (more false positives). I didn't know about that minor mode. I've just read its docstring and I think it isn't worth it, because: * It makes the input string jump right and left, making harder to concentrate on it. * Users obviously know that the default value is used only when no value is provided, so there is no need to be inserting/removing the default value from the prompt. * The only advantage I can see is to save space in the minibuffer when you are entering some text, but usually the frame is wide enough not to care about this. (Anyway, I don't understand why the way of formatting the default value in the prompt string should make the job of this mode harder, because if we know what the default value is and how is formatted in the prompt string, it should be trivial to identify that part at the right side of the prompt string. Maybe I'm missing something...) >> 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 "[...]". Thanks, but if we agree that there is a problem here (or there is room for improvement), it would be better to fix this in the vanilla Emacs. -- Dani Moncayo