GNU bug report logs - #10160
24.0.91; diff-hunk-file-names returns quoted file names

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Albinus <michael.albinus@HIDDEN>; dated Tue, 29 Nov 2011 11:35:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 10160 <at> debbugs.gnu.org:


Received: (at 10160) by debbugs.gnu.org; 29 Nov 2011 19:03:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 14:03:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RVSxo-0006ga-8Q
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 14:03:33 -0500
Received: from mailout-de.gmx.net ([213.165.64.22])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVSxj-0006gQ-MS
	for 10160 <at> debbugs.gnu.org; Tue, 29 Nov 2011 14:03:29 -0500
Received: (qmail invoked by alias); 29 Nov 2011 19:01:24 -0000
Received: from p57BB98FE.dip0.t-ipconnect.de (EHLO detlef.gmx.de)
	[87.187.152.254]
	by mail.gmx.net (mp038) with SMTP; 29 Nov 2011 20:01:24 +0100
X-Authenticated: #3708877
X-Provags-ID: V01U2FsdGVkX18DNlE0szYDbn3iC+zi3oI/teW3uYtOfBdrI4hFaa
	q+i+PEgg3H7IFV
From: Michael Albinus <michael.albinus@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#10160: 24.0.91; diff-hunk-file-names returns quoted file names
References: <871usr410u.fsf@HIDDEN> <jwv4nxmrcjw.fsf-monnier+emacs@HIDDEN>
Date: Tue, 29 Nov 2011 20:01:21 +0100
In-Reply-To: <jwv4nxmrcjw.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
	of "Tue, 29 Nov 2011 13:50:00 -0500")
Message-ID: <87ehwqlpmm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Y-GMX-Trusted: 0
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 10160
Cc: 10160 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Stefan Monnier <monnier@HIDDEN> writes:

>> 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.

In my use case, it was superfluous, because the correct file names are
also parsed in the diff output (thanks to the -L label option). I don't
know whether we could generalize this, trusting just the given file
names of the diff result.

(And, btw, ediff could also use the -L argument. This would look better
than the local temp file names, as produced by Tramp for remote
files. But this is another story).

>         Stefan

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10160; Package emacs. Full text available.

Message received at 10160 <at> debbugs.gnu.org:


Received: (at 10160) by debbugs.gnu.org; 29 Nov 2011 18:52:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 13:52:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RVSmk-0006Q0-S0
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 13:52:08 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1RVSmh-0006Pr-Do
	for 10160 <at> debbugs.gnu.org; Tue, 29 Nov 2011 13:52:04 -0500
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
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 68E31B42AC; Tue, 29 Nov 2011 13:50:00 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#10160: 24.0.91; diff-hunk-file-names returns quoted file names
Message-ID: <jwv4nxmrcjw.fsf-monnier+emacs@HIDDEN>
References: <871usr410u.fsf@HIDDEN>
Date: Tue, 29 Nov 2011 13:50:00 -0500
In-Reply-To: <871usr410u.fsf@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain
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-Spam-Score: -4.5 (----)
X-Debbugs-Envelope-To: 10160
Cc: 10160 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.5 (----)

> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10160; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2011 11:35:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 06:35:00 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RVLxj-0002Db-HZ
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 06:35:00 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLxg-0002DT-1U
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 06:34:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLve-0007sX-J6
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 06:32:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:37906)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLve-0007sO-HO
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2011 06:32:50 -0500
Received: from eggs.gnu.org ([140.186.70.92]:58588)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLvd-0008RC-BC
	for bug-gnu-emacs@HIDDEN; Tue, 29 Nov 2011 06:32:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLvX-0007rg-7Q
	for bug-gnu-emacs@HIDDEN; Tue, 29 Nov 2011 06:32:49 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:41812)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <michael.albinus@HIDDEN>) id 1RVLvW-0007rM-P3
	for bug-gnu-emacs@HIDDEN; Tue, 29 Nov 2011 06:32:43 -0500
Received: (qmail invoked by alias); 29 Nov 2011 11:32:39 -0000
Received: from p57BB98FE.dip0.t-ipconnect.de (EHLO detlef.gmx.de)
	[87.187.152.254]
	by mail.gmx.net (mp050) with SMTP; 29 Nov 2011 12:32:39 +0100
X-Authenticated: #3708877
X-Provags-ID: V01U2FsdGVkX1+CjeFT4s2CRQySTW+EJGhBMaJCRlfF5AP0lvyEWw
	RbI1cgrGVkC7BO
From: Michael Albinus <michael.albinus@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.91; diff-hunk-file-names returns quoted file names
Date: Tue, 29 Nov 2011 12:32:33 +0100
Message-ID: <871usr410u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.3 (----)

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.


In GNU Emacs 24.0.91.14 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6)
 of 2011-11-28 on detlef
Windowing system distributor `GraphOn Corporation', version 11.0.60900000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<f2> <escape> x r e p o r t <tab> <return>

Recent messages:
Reading active file from news via nntp...
Opening nntp server on news...failed: >>> (error Selecting deleted buffer)
Opening connection to imap.gmx.net via tls...
Reading active file via nnml...
Reading incoming mail from pop...
nnml: Reading incoming mail (no new mail)...done
Reading active file via nnml...done
Reading active file via nndraft...done
Checking new news...done
Warning: Opening nntp server on news...failed: >>> (error Selecting deleted buffer)

Load-path shadows:
/home/albinus/.emacs.d/elpa/debbugs-0.3/debbugs hides ~/lisp/debbugs
/home/albinus/.emacs.d/elpa/debbugs-0.3/debbugs-gnu hides ~/lisp/debbugs-gnu
~/src/tramp/lisp/tramp-uu hides /home/albinus/src/emacs/lisp/net/tramp-uu
~/src/tramp/lisp/tramp-cmds hides /home/albinus/src/emacs/lisp/net/tramp-cmds
~/src/tramp/lisp/tramp-cache hides /home/albinus/src/emacs/lisp/net/tramp-cache
~/src/tramp/lisp/tramp-gvfs hides /home/albinus/src/emacs/lisp/net/tramp-gvfs
~/src/tramp/lisp/tramp-gw hides /home/albinus/src/emacs/lisp/net/tramp-gw
~/src/tramp/lisp/tramp hides /home/albinus/src/emacs/lisp/net/tramp
~/src/tramp/lisp/tramp-smb hides /home/albinus/src/emacs/lisp/net/tramp-smb
~/src/tramp/lisp/tramp-sh hides /home/albinus/src/emacs/lisp/net/tramp-sh
~/src/tramp/lisp/trampver hides /home/albinus/src/emacs/lisp/net/trampver
~/src/tramp/lisp/tramp-ftp hides /home/albinus/src/emacs/lisp/net/tramp-ftp
~/src/tramp/lisp/tramp-compat hides /home/albinus/src/emacs/lisp/net/tramp-compat
~/lisp/soap-client hides /home/albinus/src/emacs/lisp/net/soap-client
~/lisp/dbus hides /home/albinus/src/emacs/lisp/net/dbus

Features:
(shadow sort mail-extr warnings emacsbug pop3 utf-7 gnutls nnimap
parse-time utf7 nndraft nnmh netrc nnml network-stream starttls tls
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap gnus-cache
nnir gnus-sum nnnil smtpmail sendmail gnus-demon nntp gnus-group
gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int
gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils
mailheader gnus-win gnus gnus-ems nnheader mail-utils wid-edit
debbugs-autoloads package tabulated-list cperl-mode easymenu time tramp
tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv
macroexp assoc gnus-util mm-util mail-prsvr password-cache shell
pcomplete comint ring format-spec advice help-fns advice-preload cl
tramp-loaddefs iswitchb jka-compr icomplete paren ps-print ps-def lpr vc
ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult
ediff-init ediff vc-dispatcher dired regexp-opt time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)




Acknowledgement sent to Michael Albinus <michael.albinus@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10160; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.