From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11348: 24.0.95; TAB-completion in shell-command produces d:\/foo on MS-Windows Date: Tue, 08 May 2012 21:56:02 +0300 Message-ID: <83mx5i1ozh.fsf@gnu.org> References: <83obqeiwb0.fsf@gnu.org> <83mx5n6ceu.fsf@gnu.org> <83fwbf5e8v.fsf@gnu.org> <87ipg8km2r.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336503551 20886 80.91.229.3 (8 May 2012 18:59:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 18:59:11 +0000 (UTC) Cc: cyd@gnu.org, 11348@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 08 20:59:09 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 1SRpcj-0008Mx-1V for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2012 20:59:01 +0200 Original-Received: from localhost ([::1]:44259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRpci-0006Oh-9u for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2012 14:59:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRpce-0006Oc-R7 for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 14:58:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRpcc-0001r9-Rm for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 14:58:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRpcc-0001q3-Oz for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 14:58:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SRpeg-0006Su-1Y for bug-gnu-emacs@gnu.org; Tue, 08 May 2012 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 May 2012 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11348-submit@debbugs.gnu.org id=B11348.133650361824797 (code B ref 11348); Tue, 08 May 2012 19:01:01 +0000 Original-Received: (at 11348) by debbugs.gnu.org; 8 May 2012 19:00:18 +0000 Original-Received: from localhost ([127.0.0.1]:41564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRpdx-0006Rt-Pm for submit@debbugs.gnu.org; Tue, 08 May 2012 15:00:18 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:37244) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRpdv-0006Rg-BX for 11348@debbugs.gnu.org; Tue, 08 May 2012 15:00:16 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M3P00900WMYYE00@a-mtaout21.012.net.il> for 11348@debbugs.gnu.org; Tue, 08 May 2012 21:57:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3P009JVWOHLJC0@a-mtaout21.012.net.il>; Tue, 08 May 2012 21:57:54 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:59873 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 11348@debbugs.gnu.org > Date: Mon, 07 May 2012 20:27:36 -0400 > > >> No, it does match "\g" but then the new code: > >> > >> (push (cond > >> ((null pcomplete-arg-quote-list) > >> (goto-char (match-beginning 3)) "\\") > >> ((= (match-beginning 3) (match-end 3)) "\\") > >> (t (match-string 3))) > >> arg)) > >> > >> sees that pcomplete-arg-quote-list is nil, pushes "\\" and moves > >> backward 1 char (to right before the "g") so you end up with > >> ("gnu" "\\" "d:"). > >> > >> Can you check to see why this is not happening? > > > ?? Why should pcomplete-arg-quote-list be nil? In that same change, you > > set it to shell-delimiter-argument-list, which is a non-empty list. > > Duh! I see I committed the wrong version. I've just installed the patch > below which should hopefully fix this one for good this time. Thanks. This fixes the original recipe. But the following minor variation (which works correctly in Emacs 23.3) still misfires: M-! cd "d:\gnu TAB I get "d:\/gnu/ after I press TAB above.