From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14030: 24.3; expand-file-name expands remote file name on Windows incorrectly Date: Mon, 25 Mar 2013 14:49:49 -0400 Message-ID: References: <83vc8j4e3d.fsf@gnu.org> <87li9e5n66.fsf@gmx.de> <83y5dd3lxk.fsf@gnu.org> <87ehf56bmb.fsf@gmx.de> <83r4j43hiz.fsf@gnu.org> <87620g67df.fsf@gmx.de> <83mwts3dm9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364237462 14862 80.91.229.3 (25 Mar 2013 18:51:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 18:51:02 +0000 (UTC) Cc: 14030@debbugs.gnu.org, Michael Albinus , vidagabor@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 19:51:26 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 1UKCUM-0006f2-9C for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 19:51:22 +0100 Original-Received: from localhost ([::1]:43232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKCTy-0008Is-Cc for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 14:50:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKCTq-0008GS-1O for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 14:50:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKCTo-0007K7-I7 for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 14:50:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKCTo-0007JZ-6L for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 14:50:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UKCVy-0007AV-1g for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2013 18:53:01 +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.136423752727494 (code B ref 14030); Mon, 25 Mar 2013 18:53:01 +0000 Original-Received: (at 14030) by debbugs.gnu.org; 25 Mar 2013 18:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:45026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKCV5-00079P-H1 for submit@debbugs.gnu.org; Mon, 25 Mar 2013 14:52:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:37462) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKCV2-00079F-UB for 14030@debbugs.gnu.org; Mon, 25 Mar 2013 14:52:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLSu/2dsb2JhbAA7Cb8OF3OCHgEBBAFWIxALNBIUGA0QAROIHgbBLY0Wg3QDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFxLSu/2dsb2JhbAA7Cb8OF3OCHgEBBAFWIxALNBIUGA0QAROIHgbBLY0Wg3QDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5744276" Original-Received: from 69-196-180-174.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Mar 2013 14:49:47 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1BCF267AC0; Mon, 25 Mar 2013 14:49:49 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Mon, 25 Mar 2013 10:28:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:72886 Archived-At: >> Sorry, but I think this is a grave bug. > Agreed, but it might be in the byte-compiler rather than in Tramp. > At least, nowhere does Tramp seem to request that > tramp-drop-volume-letter be inlined, so the call should stay in. I think I know what's going on: The byte-compiler now optimizes aliases to a function in the same way as that function (so if you alias `my-add' to `+', (my-add 5 6) can be optimized to 11 as well). So your alias to `identity' is optimized just like `identity', IOW it's compiled away. This was made on purpose, because it's annoyingly difficult to define such "optimized alias" without it. One way around it is to use (lambda (x) x) instead of `identity'. Stefan