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: Fri, 04 May 2012 21:15:05 +0300 Message-ID: <83mx5n6ceu.fsf@gnu.org> References: <83obqeiwb0.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336155508 24161 80.91.229.3 (4 May 2012 18:18:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 May 2012 18:18:28 +0000 (UTC) Cc: 11348@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 04 20:18:27 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 1SQN5D-0006U6-P9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 May 2012 20:18:23 +0200 Original-Received: from localhost ([::1]:55554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQN5C-0001GJ-MU for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 May 2012 14:18:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQN59-0001G2-Ic for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 14:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQN57-0006kw-SM for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 14:18:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQN57-0006kq-Oe for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 14:18:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SQN6o-0008KE-FV for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 14:20: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: Fri, 04 May 2012 18:20:02 +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.133615554731937 (code B ref 11348); Fri, 04 May 2012 18:20:02 +0000 Original-Received: (at 11348) by debbugs.gnu.org; 4 May 2012 18:19:07 +0000 Original-Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQN5v-0008J3-Cl for submit@debbugs.gnu.org; Fri, 04 May 2012 14:19:07 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61648) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQN5t-0008IY-9b for 11348@debbugs.gnu.org; Fri, 04 May 2012 14:19:06 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M3I00500G0GL900@a-mtaout22.012.net.il> for 11348@debbugs.gnu.org; Fri, 04 May 2012 21:16:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3I0044GG31RTJ0@a-mtaout22.012.net.il>; Fri, 04 May 2012 21:16:14 +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:59756 Archived-At: > From: Stefan Monnier > Cc: 11348@debbugs.gnu.org > Date: Fri, 04 May 2012 13:59:43 -0400 > > This said, based on your description, the problem may simply come from > shell.el's setting of pcomplete-arg-quote-list which tells pcomplete > that \ is an escape char. > > I.e. does the patch below fix the problem? No, I still get "d:\/gnu/". > > This works better, it produces "cd d:\gnu/ ", which is ugly, but > > correct. > > Which part is ugly? The \, the /, or the use of a mix of them? The mix. > > Perhaps Stefan could at some point add some documentation about the > > internals, that would allow mere mortals such as myself debug the > > completion code. > > I'd love to, but I'm much too deeply in it to know what needs more > documentation, so fire away your questions and I'll reply with > comments&docstrings. A useful beginning would be some overview of the design and description of the control and data flow in several popular use-cases.