From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14030: 24.3; expand-file-name expands remote file name on Windows incorrectly Date: Tue, 26 Mar 2013 08:11:03 +0200 Message-ID: <8338vi1yiw.fsf@gnu.org> 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> <83ehf31aq3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1364278319 20116 80.91.229.3 (26 Mar 2013 06:11:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 06:11:59 +0000 (UTC) Cc: 14030@debbugs.gnu.org, michael.albinus@gmx.de, vidagabor@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 07:12:24 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 1UKN7I-0008A2-5I for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 07:12:16 +0100 Original-Received: from localhost ([::1]:52388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKN6t-00086N-Ne for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 02:11:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKN6o-000866-4B for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 02:11:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKN6m-0005am-Sp for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 02:11:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKN6m-0005ai-PS for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 02:11:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UKN8z-0007iR-Sk for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 02:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2013 06:14: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.136427842329625 (code B ref 14030); Tue, 26 Mar 2013 06:14:01 +0000 Original-Received: (at 14030) by debbugs.gnu.org; 26 Mar 2013 06:13:43 +0000 Original-Received: from localhost ([127.0.0.1]:45477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKN8h-0007hm-Cw for submit@debbugs.gnu.org; Tue, 26 Mar 2013 02:13:43 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42575) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKN8e-0007hb-1M for 14030@debbugs.gnu.org; Tue, 26 Mar 2013 02:13:41 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MK9008007RT0G00@a-mtaout22.012.net.il> for 14030@debbugs.gnu.org; Tue, 26 Mar 2013 08:10:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MK9007OH7U3SV50@a-mtaout22.012.net.il>; Tue, 26 Mar 2013 08:10:51 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:72904 Archived-At: > From: Stefan Monnier > Cc: michael.albinus@gmx.de, vidagabor@gmail.com, 14030@debbugs.gnu.org > Date: Mon, 25 Mar 2013 20:23:41 -0400 > > >> So your alias to `identity' is optimized just like `identity', IOW it's > >> compiled away. > > Can the optimizer be taught not to optimize like that if the condition > > includes one of a list of known symbols? > > The byte-compiler does not look at the `defalias' expression, only at > the resulting value of (symbol-function 'tramp-drop-volume-letter), so > it would require significant changes to be able to keep track of the > corresponding info. Also, `defalias' is a function, so by the time it > is called it has no idea what expression was computed to get the > function definition. Too bad. Maybe there are other ways to avoid inadvertently producing platform-dependent byte code, or at least warn about its possibility. Otherwise, we are at the mercy of our less than perfect attention, and these incidents will surely happen again.