From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#14030: 24.3; expand-file-name expands remote file name on Windows incorrectly Date: Sun, 24 Mar 2013 18:21:48 +0100 Message-ID: <87620g67df.fsf@gmx.de> References: <83vc8j4e3d.fsf@gnu.org> <87li9e5n66.fsf@gmx.de> <83y5dd3lxk.fsf@gnu.org> <87ehf56bmb.fsf@gmx.de> <83r4j43hiz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364145787 29169 80.91.229.3 (24 Mar 2013 17:23:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Mar 2013 17:23:07 +0000 (UTC) Cc: vidagabor@gmail.com, 14030@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 24 18:23:30 2013 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 1UJodg-0005tJ-94 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2013 18:23:24 +0100 Original-Received: from localhost ([::1]:58787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJodI-0003Xa-Ia for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2013 13:23:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJodE-0003XJ-2d for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 13:22:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJodC-00088t-C9 for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 13:22:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJodC-00088n-8P for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 13:22:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UJofG-0002uC-GZ for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 13:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Mar 2013 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14030-submit@debbugs.gnu.org id=B14030.136414584911106 (code B ref 14030); Sun, 24 Mar 2013 17:25:02 +0000 Original-Received: (at 14030) by debbugs.gnu.org; 24 Mar 2013 17:24:09 +0000 Original-Received: from localhost ([127.0.0.1]:43619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJoeO-0002t2-E8 for submit@debbugs.gnu.org; Sun, 24 Mar 2013 13:24:09 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59073) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJoeJ-0002sr-9A for 14030@debbugs.gnu.org; Sun, 24 Mar 2013 13:24:04 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MSFoz-1U827W2T4F-00TRlk for <14030@debbugs.gnu.org>; Sun, 24 Mar 2013 18:21:53 +0100 Original-Received: (qmail invoked by alias); 24 Mar 2013 17:21:51 -0000 Original-Received: from p57BB8660.dip0.t-ipconnect.de (EHLO arthur.gmx.de) [87.187.134.96] by mail.gmx.net (mp017) with SMTP; 24 Mar 2013 18:21:51 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/CvG4JGvvCRM1TQGAgNZ3xUCttdsZMu4afFfAFEZ fhw3+ttOYtnbn2 In-Reply-To: <83r4j43hiz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 Mar 2013 18:10:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 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.x 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:72856 Archived-At: Eli Zaretskii writes: > My crystal ball says that your 24.3.50 snapshot was bootstrapped on > MS-Windows, or at least Tramp was compiled on Windows. See below. In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7600) of 2013-03-14 on VBOX Bzr revision: 112044 eliz@gnu.org-20130314173751-20hpndyud1tka138 Windowing system distributor `Microsoft Corp.', version 6.1.7600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/emacs/libs/libXpm-3.5.10/include -IC:/emacs/libs/libXpm-3.5.10/src -IC:/emacs/libs/libpng-dev_1.4.3-1_win32/include -IC:/emacs/libs/zlib-dev_1.2.5-2_win32/include -IC:/emacs/libs/giflib-4.1.4-1-lib/include -IC:/emacs/libs/jpeg-6b-4-lib/include -IC:/emacs/libs/tiff-3.8.2-1-lib/include -IC:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2 -IC:/emacs/libs/gnutls-3.1.8-w32/include -IC:/emacs/libs/libiconv-1.14-2-mingw32-dev/include' > So, somehow, compiling tramp-sh.el on Unix replaces the call to > tramp-drop-volume-letter with nothing. Perhaps the condition, viz. Yes, that is intended. tramp-drop-volume-letter is not needed on GNU/Linux. > (defalias 'tramp-drop-volume-letter > (if (memq system-type '(cygwin windows-nt)) <<<<<<<<<<<<<<<<<<< > (lambda (name) > "Cut off unnecessary drive letter from file NAME. > The functions `tramp-*-handle-expand-file-name' call `expand-file-name' > locally on a remote file name. When the local system is a W32 system > but the remote system is Unix, this introduces a superfluous drive > letter into the file name. This function removes it." > (save-match-data > (if (string-match "\\`[a-zA-Z]:/" name) > (replace-match "/" nil t name) > name))) > > 'identity)) > > is expanded at byte-compile time, instead of at run time? Looks like this, yes. > And I guess whatever has this effect was introduced between the > release of 24.2 and 24.3 (which was the trunk until 24.2 release). Yes, it was changed in bzr commit #105625. Does this mean, this declaration requests Tramp to be compiled on MS Windows? I have used the official distribution from . It reports In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' We shall repackage Emacs 24.3 for MS Windows then. Other packages might suffer from the same problem. Best regards, Michael.