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: Sat, 23 Mar 2013 22:37:48 +0100 Message-ID: <87ehf56bmb.fsf@gmx.de> References: <83vc8j4e3d.fsf@gnu.org> <87li9e5n66.fsf@gmx.de> <83y5dd3lxk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364074687 12533 80.91.229.3 (23 Mar 2013 21:38:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2013 21:38: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 Sat Mar 23 22:38:29 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 1UJW8y-0003cn-WC for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2013 22:38:29 +0100 Original-Received: from localhost ([::1]:47485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJW8b-00085y-Dd for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2013 17:38:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJW8X-00085r-8C for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 17:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJW8W-0002RF-1E for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 17:38:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJW8V-0002RA-U2 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 17:37:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UJWAV-0006sS-0r for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 17:40:03 -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: Sat, 23 Mar 2013 21:40: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.136407480126425 (code B ref 14030); Sat, 23 Mar 2013 21:40:02 +0000 Original-Received: (at 14030) by debbugs.gnu.org; 23 Mar 2013 21:40:01 +0000 Original-Received: from localhost ([127.0.0.1]:42565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJWAS-0006s9-U0 for submit@debbugs.gnu.org; Sat, 23 Mar 2013 17:40:01 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50747) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJWAQ-0006s2-MQ for 14030@debbugs.gnu.org; Sat, 23 Mar 2013 17:40:00 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.16]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LgbkJ-1V5DLI1D6L-00ny30 for <14030@debbugs.gnu.org>; Sat, 23 Mar 2013 22:37:53 +0100 Original-Received: (qmail invoked by alias); 23 Mar 2013 21:37:52 -0000 Original-Received: from p57BB8044.dip0.t-ipconnect.de (EHLO arthur.gmx.de) [87.187.128.68] by mail.gmx.net (mp016) with SMTP; 23 Mar 2013 22:37:52 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18yxZ9FT4QyeZce5Jc1cSluKpO00N6UzQvcwPWy+D Nfy+fg3HpDOopJ In-Reply-To: <83y5dd3lxk.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Mar 2013 22:23:19 +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:72844 Archived-At: Eli Zaretskii writes: >> From: Michael Albinus >> Cc: Vida G=C3=A1bor , >> 14030@debbugs.gnu.org >> Date: Sat, 23 Mar 2013 13:13:37 +0100 >>=20 >> This is competely strange. In `tramp-sh-handle-expand-file-name', there >> is the following code at the very end: >>=20 >> (let ((directory-sep-char ?/) >> (default-directory (tramp-compat-temporary-file-directory))) >> (tramp-make-tramp-file-name >> method user host >> (tramp-drop-volume-letter >> (tramp-run-real-handler >> 'expand-file-name (list localname))) >> hop))))) >>=20 >> In Emacs 24.3, `tramp-drop-volume-letter' is not executed: >>=20 >> | | | | 5 -> tramp-run-real-handler: operation=3Dexpand-file-name >> | | | | args=3D("/root/") >> | | | | 5 <- tramp-run-real-handler: "c:/root/" >> | | | | 5 -> tramp-make-tramp-file-name: method=3D"plink" user=3Dnil >> | | | | host=3D"ford" localname=3D"c:/root/" hop=3Dnil >> | | | | 5 <- tramp-make-tramp-file-name: "/plink:ford:c:/root/" >>=20 >> When I use Emacs 24.3.50, the latest snapshot, that function is >> executed: >>=20 >> | | | | 5 -> (tramp-run-real-handler expand-file-name ("/root/")) >> | | | | 5 <- tramp-run-real-handler: "c:/root/" >> | | | | 5 -> (tramp-drop-volume-letter "c:/root/") >> | | | | 5 <- tramp-drop-volume-letter: "/root/" >> | | | | 5 -> (tramp-make-tramp-file-name "plink" nil "ford" "/root/" nil) >> | | | | 5 <- tramp-make-tramp-file-name: "/plink:ford:/root/" >>=20 >> I have no idea, what prevents `tramp-drop-volume-letter' to be called. > > Since tramp-drop-volume-letter is not a function, it's a defalias, so > maybe it somehow doesn't get registered in the trace? But it is visible in the traces of Emacs 24.3.50. > Or maybe it somehow takes the 'identity route? No. (tramp-drop-volume-letter "c:/root/") =3D> "/root/" Best regards, Michael.