From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.tramp Subject: Re: tramp (2.0.44); emerge-files fails with remote ssh file Date: Thu, 16 Sep 2004 00:20:44 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87y8jbnphf.fsf@gmx.de> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1095286930 20790 80.91.229.6 (15 Sep 2004 22:22:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2004 22:22:10 +0000 (UTC) Cc: tramp-devel@mail.freesoftware.fsf.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 16 00:21:59 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7iA2-0002jH-00 for ; Thu, 16 Sep 2004 00:21:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7iFg-00006w-P0 for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2004 18:27:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7iFa-00006q-63 for emacs-devel@gnu.org; Wed, 15 Sep 2004 18:27:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7iFY-00006W-Mv for emacs-devel@gnu.org; Wed, 15 Sep 2004 18:27:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7iFY-00006M-I8 for emacs-devel@gnu.org; Wed, 15 Sep 2004 18:27:40 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C7i91-00032h-Fa for emacs-devel@gnu.org; Wed, 15 Sep 2004 18:20:55 -0400 Original-Received: (qmail 27663 invoked by uid 65534); 15 Sep 2004 22:20:43 -0000 Original-Received: from pD9E71132.dip0.t-ipconnect.de (EHLO magdalene.local) (217.231.17.50) by mail.gmx.net (mp025) with SMTP; 16 Sep 2004 00:20:43 +0200 X-Authenticated: #3708877 Original-To: Sebastien Kirche In-Reply-To: (Sebastien Kirche's message of "Wed, 15 Sep 2004 13:48:54 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27154 gmane.emacs.tramp:1986 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27154 Sebastien Kirche writes: > emerge-file fails with the following : > ,---- > | diff: /tmp/tramp.3617GRY: Aucun fichier ou répertoire de ce type > | diff: /Users/seki/.emacs: Aucun fichier ou répertoire de ce type > `---- > Error is french for 'no such file or directory' > Both remote and local files are already loaded in the 2 windows. Indeed. In the actual debug buffer you've provided, the following traces are seen: $ diff /tmp/tramp.406Ykj /Users/seki/.emacs; tramp_old_status=$? diff: /tmp/tramp.406Ykj: Aucun fichier ou répertoire de ce type diff: /Users/seki/.emacs: Aucun fichier ou répertoire de ce type This means, that Tramp has been instructed by `emerge-files' to perform the diff command on the remote host. But both files reside on the local host; it MUST fail therefore. I suspect it depends on the order you take the files: it will work if the local file is the first one chosen, and the remote file is the second one; and it will fail if you apply them the reverse order. (Or vice-versa; don't blame me ...). In general it means that `emerge-file' is not Tramp-ready, because it will always call diff via `shell-command', independant whether default-directory of the buffer related to is located on a locale host or on a remote one. I fear there's nothing Tramp can do fixing it. It must be done in `emerge-make-diff-list' or somewhere around. > I had also once another fail with the following > ,---- > | \ No newline at end of file > | \ No newline at end of file > `---- > The files used to have a final newline, but i have added one and it seems to > be fixed (?) In your debug buffer there are several encoded files. Your remote file "/home/seki/.emacs" contains "^M" as EOL character. Maybe `emerge-files' has a problem with that. > Regards, > Sébastien Kirche Best regards, Michael.