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, 26 Nov 2013 09:11:45 -0800 (PST) Message-ID: <20db5440-5f90-46d1-b0a2-25f495661ae6@default> 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 1385486028 9294 80.91.229.3 (26 Nov 2013 17:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 17:13:48 +0000 (UTC) To: 15980@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 18:13:52 2013 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 1VlMCo-0001Q8-Kl for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 18:13:46 +0100 Original-Received: from localhost ([::1]:60173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMCo-00081G-5M for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 12:13:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMCH-0007Ny-6y for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:13:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlMC7-0002xm-1V for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:13:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMC6-0002xi-V9 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VlMC6-00031H-GI for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:13: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, 26 Nov 2013 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138548594811562 (code B ref -1); Tue, 26 Nov 2013 17:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2013 17:12:28 +0000 Original-Received: from localhost ([127.0.0.1]:46204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlMBX-00030P-Ea for submit@debbugs.gnu.org; Tue, 26 Nov 2013 12:12:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53380) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlMBV-00030C-0s for submit@debbugs.gnu.org; Tue, 26 Nov 2013 12:12:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlMBF-0002et-I2 for submit@debbugs.gnu.org; Tue, 26 Nov 2013 12:12:19 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMBF-0002ep-FP for submit@debbugs.gnu.org; Tue, 26 Nov 2013 12:12:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMB6-0006PL-SU for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:12:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlMAw-0002Xl-90 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:12:00 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:38961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMAv-0002XG-W1 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:11:50 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rAQHBmW5024886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Nov 2013 17:11:49 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAQHBlhb028800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 26 Nov 2013 17:11:47 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAQHBlpK028789 for ; Tue, 26 Nov 2013 17:11:47 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:80997 Archived-At: Seems like the behavior is wrong in this case, but I see that the same behavior is found for Emacs 20 through 24. So I cannot say for sure whether this is a bug. At least the behavior does not seem to follow the doc. The doc ((emacs) `Completion Commands') says that SPC does this: Complete up to one word from the minibuffer text before point (`minibuffer-complete-word'). emacs -Q (defun cmd\ \ \ \ w\ ith\ spaces () (interactive) (message "SPACES")) (defun cmd-without-spaces () (interactive) (message "NOPE")) M-x cm SPC ; correctly completes to `cmd' SPC ; completes to `cmd ' 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'. Admittedly, this is a corner use case. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-11-20 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1'