GNU bug report logs - #16528
24.3; too many keybindings in minibuffer-local-completion-map

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Roland Winkler" <winkler@HIDDEN>; dated Thu, 23 Jan 2014 13:07:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16528 <at> debbugs.gnu.org:


Received: (at 16528) by debbugs.gnu.org; 23 Jan 2014 19:16:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 23 14:16:33 2014
Received: from localhost ([127.0.0.1]:33732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W6PlR-0000Vz-EI
	for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 14:16:33 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:50276)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1W6PlO-0000Vj-2b
 for 16528 <at> debbugs.gnu.org; Thu, 23 Jan 2014 14:16:30 -0500
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 s0NJGS4v004930
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 23 Jan 2014 19:16:28 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
 by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s0NJGRf7011969
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Thu, 23 Jan 2014 19:16:27 GMT
Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23])
 by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s0NJGRP9011959;
 Thu, 23 Jan 2014 19:16:27 GMT
MIME-Version: 1.0
Message-ID: <e6e7c43c-622a-427d-b71b-9b0568bb89c9@default>
Date: Thu, 23 Jan 2014 11:16:26 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Roland Winkler <winkler@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Subject: RE: bug#16528: 24.3; too many keybindings in
 minibuffer-local-completion-map
References: <87k3dqg85g.fsf@HIDDEN>
 <jwva9emtx06.fsf-monnier+emacsbugs@HIDDEN>
 <21217.26443.949491.134206@HIDDEN>
In-Reply-To: <21217.26443.949491.134206@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8  (707110) [OL
 12.0.6680.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 16528
Cc: 16528 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

FWIW, in Icicles:

1. All of these keys are self-inserting: SPC, ?, C-j.
2. A separate key is used to word-complete: M-SPC, not TAB.

IOW, for word completion, just use a different key.

(I would request that you do not use any combination of keys or
modifiers with TAB or <backtab> for word completion, however.)

My feeling is that word completion is generally not very important,
but I provide a key for it.

To me, SPC is far more useful if it is self-inserting, not bound
to some completion command.  But then Icicles uses completion for
lots of things, including lots of kinds of candidates that have
embedded SPC chars.

I feel the same about ? and C-j (newline).  There is no good reason
for these not to be self-inserting, IMO.  Again, in Icicles there
are lots of kinds of completion candidates, including multi-line
ones and ones that have embedded ? chars.

HTH.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16528; Package emacs. Full text available.

Message received at 16528 <at> debbugs.gnu.org:


Received: (at 16528) by debbugs.gnu.org; 23 Jan 2014 19:02:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 23 14:02:40 2014
Received: from localhost ([127.0.0.1]:33717 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W6PY0-00007r-E0
	for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 14:02:40 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:52054)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <winkler@HIDDEN>) id 1W6PXx-00007h-JL
 for 16528 <at> debbugs.gnu.org; Thu, 23 Jan 2014 14:02:38 -0500
Received: from lukas.physics.niu.edu ([131.156.85.221]:60947)
 by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <winkler@HIDDEN>)
 id 1W6PXx-0005gI-1z; Thu, 23 Jan 2014 14:02:37 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <21217.26443.949491.134206@HIDDEN>
Date: Thu, 23 Jan 2014 13:02:35 -0600
From: "Roland Winkler" <winkler@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#16528: 24.3;
 too many keybindings in minibuffer-local-completion-map
In-Reply-To: <jwva9emtx06.fsf-monnier+emacsbugs@HIDDEN>
References: <87k3dqg85g.fsf@HIDDEN>
 <jwva9emtx06.fsf-monnier+emacsbugs@HIDDEN>
X-Mailer: VM 8.2 trial under 24.3.1 (x86_64-unknown-linux-gnu)
X-Spam-Score: -5.6 (-----)
X-Debbugs-Envelope-To: 16528
Cc: 16528 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.6 (-----)

On Thu Jan 23 2014 Stefan Monnier wrote:
> Indeed, this binding can be annoying.  Some people use it heavily (and
> rarely use TAB, IIUC), tho, so removing it is a bit tricky, but it was
> annoying enough for files that file-name completion now uses a special
> map where SPC is not bound to minibuffer-complete-word any more.

So it seems to me there are two views on this:

- there might be situations where the user wants to customize the
  keybindings provided by minibuffer-local-completion-map
  (this customization would then probably affect all calls of
  completing-read)

- in other cases, the code calling completing-read might want to
  provide some non-default keybindings (which would then affect only
  certain calls of completing-read, but it would apply to all users)

I do not know how common each of these cases might be.  (I never use
SPC for completion, but that's just me.)

Roland




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16528; Package emacs. Full text available.

Message received at 16528 <at> debbugs.gnu.org:


Received: (at 16528) by debbugs.gnu.org; 23 Jan 2014 18:03:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 23 13:03:38 2014
Received: from localhost ([127.0.0.1]:33698 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W6Ocs-0006wT-4g
	for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 13:03:38 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54464)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1W6Ocq-0006wK-96
 for 16528 <at> debbugs.gnu.org; Thu, 23 Jan 2014 13:03:36 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rxHA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ
X-IPAS-Result: Av4EABK/CFG4rxHA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="45916472"
Received: from 184-175-17-192.dsl.teksavvy.com (HELO pastel.home)
 ([184.175.17.192])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 23 Jan 2014 13:03:35 -0500
Received: by pastel.home (Postfix, from userid 20848)
 id 84CD660286; Thu, 23 Jan 2014 13:03:35 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: "Roland Winkler" <winkler@HIDDEN>
Subject: Re: bug#16528: 24.3;
 too many keybindings in minibuffer-local-completion-map
Message-ID: <jwva9emtx06.fsf-monnier+emacsbugs@HIDDEN>
References: <87k3dqg85g.fsf@HIDDEN>
Date: Thu, 23 Jan 2014 13:03:35 -0500
In-Reply-To: <87k3dqg85g.fsf@HIDDEN> (Roland Winkler's message of "Thu, 23
 Jan 2014 07:06:03 -0600")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 16528
Cc: 16528 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> minibuffer-local-completion-map binds SPC to minibuffer-complete-word
> and ? to minibuffer-completion-help.  It should be possible without
> too much hackery to run completing-read in a less obtrusive mode
> where these keys simply insert the respective characters.

Indeed, this binding can be annoying.  Some people use it heavily (and
rarely use TAB, IIUC), tho, so removing it is a bit tricky, but it was
annoying enough for files that file-name completion now uses a special
map where SPC is not bound to minibuffer-complete-word any more.

I can see a few different directions we could go to try and solve those
problems:
- change the default completion map so SPC is not bound any more.
- provide some way to call completing-read, specifying that this
  particular completion should, just like file-name completion, not bind
  SPC to minibuffer-complete-word.
- change the behavior of minibuffer-complete-word to be more DWIMish.
  For example, if completion can't be performed (no valid candidates, or
  no shared prefix among the candidates), instead of beeping, it could
  insert a SPC.

I haven't thought much about ? because that one has not been nearly as
annoying.  The problem is largely similar, except that the harms are all
much less severe (both of the current situation and of the possible
fixes).
  

        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16528; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Jan 2014 13:06:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 23 08:06:26 2014
Received: from localhost ([127.0.0.1]:33057 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1W6JzF-0004nX-Op
	for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 08:06:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56977)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <winkler@HIDDEN>) id 1W6JzD-0004nP-OF
 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 08:06:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <winkler@HIDDEN>) id 1W6Jz7-000577-LA
 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 08:06:23 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39751)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <winkler@HIDDEN>) id 1W6Jz7-000572-Io
 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2014 08:06:17 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58628)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <winkler@HIDDEN>) id 1W6Jz1-00089J-Eo
 for bug-gnu-emacs@HIDDEN; Thu, 23 Jan 2014 08:06:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <winkler@HIDDEN>) id 1W6Jyv-00054C-Jr
 for bug-gnu-emacs@HIDDEN; Thu, 23 Jan 2014 08:06:11 -0500
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44949)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <winkler@HIDDEN>) id 1W6Jyv-000547-Gf
 for bug-gnu-emacs@HIDDEN; Thu, 23 Jan 2014 08:06:05 -0500
Received: from 162-229-45-114.lightspeed.cicril.sbcglobal.net
 ([162.229.45.114]:35116 helo=regnitz)
 by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <winkler@HIDDEN>) id 1W6Jyv-00073Q-39
 for bug-gnu-emacs@HIDDEN; Thu, 23 Jan 2014 08:06:05 -0500
Date: Thu, 23 Jan 2014 07:06:03 -0600
Message-Id: <87k3dqg85g.fsf@HIDDEN>
From: "Roland Winkler" <winkler@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; too many keybindings in minibuffer-local-completion-map
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.6 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.6 (-----)

minibuffer-local-completion-map binds SPC to minibuffer-complete-word
and ? to minibuffer-completion-help.  It should be possible without
too much hackery to run completing-read in a less obtrusive mode
where these keys simply insert the respective characters.


In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2013-10-04 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.4 LTS




Acknowledgement sent to "Roland Winkler" <winkler@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16528; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.