From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10160: 24.0.91; diff-hunk-file-names returns quoted file names Date: Tue, 29 Nov 2011 13:50:00 -0500 Message-ID: References: <871usr410u.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322592674 19520 80.91.229.12 (29 Nov 2011 18:51:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 18:51:14 +0000 (UTC) Cc: 10160@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 29 19:51:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVSlp-0001LT-Uc for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2011 19:51:10 +0100 Original-Received: from localhost ([::1]:48564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVSlp-00043M-Ep for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2011 13:51:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVSli-000433-81 for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 13:51:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVSlh-00019Q-Bx for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 13:51:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVSlh-00019H-94 for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 13:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RVSnd-0006R6-T2 for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2011 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2011 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10160 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10160-submit@debbugs.gnu.org id=B10160.132259272924681 (code B ref 10160); Tue, 29 Nov 2011 18:53:01 +0000 Original-Received: (at 10160) by debbugs.gnu.org; 29 Nov 2011 18:52:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVSmk-0006Q0-S0 for submit@debbugs.gnu.org; Tue, 29 Nov 2011 13:52:08 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVSmh-0006Pr-Do for 10160@debbugs.gnu.org; Tue, 29 Nov 2011 13:52:04 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pATIo0Sb004784; Tue, 29 Nov 2011 13:50:00 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 68E31B42AC; Tue, 29 Nov 2011 13:50:00 -0500 (EST) In-Reply-To: <871usr410u.fsf@gmx.de> (Michael Albinus's message of "Tue, 29 Nov 2011 12:32:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4056=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4056> : streams <706316> : uri <1018466> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 29 Nov 2011 13:53:01 -0500 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:54435 Archived-At: > diff-hunk-file-names reads file names from the *Diff* buffer. The first > line (the diff command itself) can contain labels, marked with -L. If > these labels contains quoted characters like in remote file names, the > quotation is returned. Example: > diff -c -L /ftp\:slbhao\:/home/albinus/src/tramp/lisp/tramp.el -L /ftp\:slbhao\:/home/albinus/src/emacs/lisp/net/tramp.el /tmp/ange-ftp13518wvE.el /tmp/ange-ftp1351895K.el > Such quoted file names result in problems when used as parameter for > file name functions, like in diff-find-file-name. Not sure what to do about them: this "parsing the diff command line" is brittle in any case because this line is printed by various tools, and I don't think they're very consistent in how they handle quoting. We should probably try to minimize the problem first, by using relative file names when possible. Stefan