Subject: Re: bug#21320: diff-buffer-with-file fails on remote files

From: Michael Albinus <[email-masked]>
Date: Sun, 20 Sep 2015 19:40:02 +0200

Michael Albinus <[email-masked]> writes:

> Stefan Monnier <[email-masked]> writes:
>
>> If you visit a file via Tramp, then make some changes and do M-x
>> diff-buffer-with-file, you'll get an error in the diff buffer because
>> "diff" is executed locally with the Tramp file name.
>
> I cannot reproduce it with "emacs -Q". The diff uses respective labels,
> but that's it. It uses temporary local files. And the contents looks OK
> to me, like this:
>
> diff -u --label /ssh\:ford\:/share/albinus/mail --label \#\<buffer\ mail\> /tmp/tramp.29783xKm /tmp/buffer-content-29783-Us
> --- /ssh:ford:/share/albinus/mail
> +++ #<buffer mail>
> @@ -1,4 +1,4 @@
> - From: [email-masked]
> +From: [email-masked]
>  To: [email-masked]
>  Subject: 24.3.50; set-file-acl on MS Windows shall check ACL string format
>  --text follows this line--
>
> Diff finished.  Sat Aug 22 20:31:02 2015

Ping.

Stefan, is this still a problem for you?

>>         Stefan

Best regards, Michael.