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#15980: 24.3.50; `minibuffer-complete-word': case where it does not work correctly Date: Tue, 7 Jan 2014 09:06:36 -0800 (PST) Message-ID: <87d76d4c-4684-43de-876e-46ebbdcb4b3e@default> References: <20db5440-5f90-46d1-b0a2-25f495661ae6@default> <87d2k4hu77.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389114440 21541 80.91.229.3 (7 Jan 2014 17:07:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2014 17:07:20 +0000 (UTC) Cc: 15980@debbugs.gnu.org To: Bastien Guerry Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 07 18:07:26 2014 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 1W0a7f-0006wV-PE for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2014 18:07:23 +0100 Original-Received: from localhost ([::1]:41892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0a7f-0003Xd-9j for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2014 12:07:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0a7T-0003Vg-J1 for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 12:07:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0a7L-0006No-0p for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 12:07:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0a7K-0006Nk-ON for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 12:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W0a7K-0000XD-EQ for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 12:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2014 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15980-submit@debbugs.gnu.org id=B15980.13891144042025 (code B ref 15980); Tue, 07 Jan 2014 17:07:02 +0000 Original-Received: (at 15980) by debbugs.gnu.org; 7 Jan 2014 17:06:44 +0000 Original-Received: from localhost ([127.0.0.1]:41253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W0a72-0000WY-29 for submit@debbugs.gnu.org; Tue, 07 Jan 2014 12:06:44 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:32847) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W0a6z-0000WO-PA for 15980@debbugs.gnu.org; Tue, 07 Jan 2014 12:06:42 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s07H6csO004329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Jan 2014 17:06:38 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s07H6b3J012351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Jan 2014 17:06:38 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s07H6bZk002873; Tue, 7 Jan 2014 17:06:37 GMT In-Reply-To: <87d2k4hu77.fsf@bzg.ath.cx> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:83119 Archived-At: > > Since SPC is supposed to complete a word at a time, and since both > > ` ' and `-' are word separators, I would expect that there are two > > word completions for the prefix `cmd': `cmd ' and `cmd-'. > > > > So I would expect to see *Completions* displayed, showing the two > > candidates `cmd w ith spaces' and `cmd-without-spaces'. >=20 > See the first comment in `completion--try-word-completion': > the function considers that either a space *or* an hyphen will > be used to separate words. The "or" is exclusive. `completion--try-word-completion' is an *implementation*. If that's what it does then it does not do what the doc says, right? So either the doc needs to be fixed to fit the implementation or vice versa, no? > > Admittedly, this is a corner use case. I meant corner case for command names. It is not a corner case to have space chars in completion candidates. > Yes -- note that TAB works fine here instead of SPC. >=20 > The only place I can think of where this could be a problem > is the info manual (`g' or `i' to go to a node or to find an > index entry.) Why is that the only place you can think of? Are you saying that because those completion candidates contain space chars? There are *lot* of places where Emacs can use completion for candidates that contain space chars. `completing-read' is completely general. Emacs should make no assumptions about whether completion candidates happen to contain spaces.=20 > Still, you're not like to stumble on such case. What makes you say that? > I'm for closing this bug until it really hit someone. That's not right. The product and the doc do not agree, as you have pointed out. That alone is a bug. One way or another it should be fixed.