From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2011 00:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9311@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13135408257021 (code B ref -1); Wed, 17 Aug 2011 00:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2011 00:27:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtTyL-0001pC-HQ for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:27:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtTyH-0001om-8Z for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtTwT-0005g5-JW for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:25:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:50023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwT-0005fz-GH for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:25:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwS-0005sI-Jn for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtTwR-0005fF-GM for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:08 -0400 Received: from msa101.auone-net.jp ([61.117.18.161]:46115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwR-0005aR-7S for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:07 -0400 Received: from GUNGNIR.med.osaka-cu.ac.jp (121-87-117-132f1.nar1.eonet.ne.jp [121.87.117.132]) by msa101.auone-net.jp (au one net msa) with ESMTP id 0B68A1E0043; Wed, 17 Aug 2011 09:24:56 +0900 (JST) Date: Wed, 17 Aug 2011 09:24:43 +0900 From: Kazuhiro Ito User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/23.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20110817002457.0B68A1E0043@msa101.auone-net.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.2 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) I wrote c:/test.el as below and byte-compiled it. (defun test () (let ((l 1)) (dotimes (i 100) nil))) When I load it by load function with absolute path as below, I can't load it and below message is displayed. But it doesn't raise error. (load "c:/test") -> End of file during parsing: c:/test.elc It doesn't occur with relative path from home directory or Linux environment. I confirmed it occurs with Windows environment and absolute path, and it depends on the content of .el file (i.e. not all .elc files can't be read). It also occurs with pre-compiled binary (*1). (*1) http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-23.3-bin-i386.zip -- Kazuhiro Ito From unknown Sun Jun 22 11:40:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kazuhiro Ito Subject: bug#9311: closed (Re: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows) Message-ID: References: <83zkj8s9hh.fsf@gnu.org> <20110817002457.0B68A1E0043@msa101.auone-net.jp> X-Gnu-PR-Message: they-closed 9311 X-Gnu-PR-Package: emacs Reply-To: 9311@debbugs.gnu.org Date: Wed, 17 Aug 2011 08:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1313571542-18036-1" This is a multi-part message in MIME format... ------------=_1313571542-18036-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9311: 23.3.50; Can't load some byte-compiled files on Windows which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9311@debbugs.gnu.org. --=20 9311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9311 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1313571542-18036-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9311-done) by debbugs.gnu.org; 17 Aug 2011 08:58:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qtbwq-0004fm-Bd for submit@debbugs.gnu.org; Wed, 17 Aug 2011 04:58:04 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qtbwm-0004fK-Jd for 9311-done@debbugs.gnu.org; Wed, 17 Aug 2011 04:58:02 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQ200E00E110M00@a-mtaout20.012.net.il> for 9311-done@debbugs.gnu.org; Wed, 17 Aug 2011 11:55:26 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.0.3]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQ200CLDE4A5AG0@a-mtaout20.012.net.il>; Wed, 17 Aug 2011 11:55:24 +0300 (IDT) Date: Wed, 17 Aug 2011 11:55:22 +0300 From: Eli Zaretskii Subject: Re: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows In-reply-to: <20110817002457.0B68A1E0043@msa101.auone-net.jp> X-012-Sender: halo1@inter.net.il To: Kazuhiro Ito , Michael Albinus Message-id: <83zkj8s9hh.fsf@gnu.org> References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 9311-done Cc: 9311-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 17 Aug 2011 09:24:43 +0900 > From: Kazuhiro Ito > > I wrote c:/test.el as below and byte-compiled it. > > (defun test () > (let ((l 1)) > (dotimes (i 100) > nil))) > > When I load it by load function with absolute path as below, I can't > load it and below message is displayed. But it doesn't raise error. > > (load "c:/test") > -> End of file during parsing: c:/test.elc This happens because Emacs thinks this file is remote. It is almost a duplicate of bug#5303, except that 5303 talked about files without an extension, while this one is specific to .elc files. I fixed this in revision 105479 on the trunk, by handling the DOS_NT specific situation where `openp' returns -2, but there's no `load' handler for the file. ------------=_1313571542-18036-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Aug 2011 00:27:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtTyL-0001pC-HQ for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:27:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtTyH-0001om-8Z for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtTwT-0005g5-JW for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:25:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:50023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwT-0005fz-GH for submit@debbugs.gnu.org; Tue, 16 Aug 2011 20:25:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwS-0005sI-Jn for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtTwR-0005fF-GM for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:08 -0400 Received: from msa101.auone-net.jp ([61.117.18.161]:46115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtTwR-0005aR-7S for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2011 20:25:07 -0400 Received: from GUNGNIR.med.osaka-cu.ac.jp (121-87-117-132f1.nar1.eonet.ne.jp [121.87.117.132]) by msa101.auone-net.jp (au one net msa) with ESMTP id 0B68A1E0043; Wed, 17 Aug 2011 09:24:56 +0900 (JST) Date: Wed, 17 Aug 2011 09:24:43 +0900 From: Kazuhiro Ito To: bug-gnu-emacs@gnu.org Subject: 23.3.50; Can't load some byte-compiled files on Windows User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/23.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20110817002457.0B68A1E0043@msa101.auone-net.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) I wrote c:/test.el as below and byte-compiled it. (defun test () (let ((l 1)) (dotimes (i 100) nil))) When I load it by load function with absolute path as below, I can't load it and below message is displayed. But it doesn't raise error. (load "c:/test") -> End of file during parsing: c:/test.elc It doesn't occur with relative path from home directory or Linux environment. I confirmed it occurs with Windows environment and absolute path, and it depends on the content of .el file (i.e. not all .elc files can't be read). It also occurs with pre-compiled binary (*1). (*1) http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-23.3-bin-i386.zip -- Kazuhiro Ito ------------=_1313571542-18036-1-- From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> In-Reply-To: <20110817002457.0B68A1E0043@msa101.auone-net.jp> Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Aug 2011 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Kazuhiro Ito Cc: Michael Albinus , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131375697329210 (code B ref 9311); Fri, 19 Aug 2011 12:30:02 +0000 Received: (at 9311) by debbugs.gnu.org; 19 Aug 2011 12:29:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuOCb-0007b4-LH for submit@debbugs.gnu.org; Fri, 19 Aug 2011 08:29:33 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QuOCa-0007ay-Es for 9311@debbugs.gnu.org; Fri, 19 Aug 2011 08:29:33 -0400 Received: (qmail invoked by alias); 19 Aug 2011 12:27:25 -0000 Received: from tmo-106-94.customers.d1-online.com (EHLO 10.151.196.63) [80.187.106.94] by mail.gmx.net (mp069) with SMTP; 19 Aug 2011 14:27:25 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+HbhZJMHyHXuojKjP4HG8TLTBbT4RGWIeX8ASxHn iJE9vvQBzcvEI1 Date: Wed, 17 Aug 2011 14:50:31 +0200 Message-ID: From: Michael Albinus MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Y-GMX-Trusted: 0 X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.4 (-) SGkgRWxpLAoKSSdtIG9uIGEgYmlrZSB0b3VyIHRoZXNlIGRheXMsIGJlaW5nIGJhY2sgZW5kIG9m IG5leHQgd2Vlay4gSSdsbCBoYXZlIGEgbG9vayBvbiB0aGlzIHRoZW4uCgpDOi90ZXN0IHNob3Vs ZG4ndCBiZSByZWdhcmRlZCBhcyByZW1vdGUuIAoKQmVzdCByZWdhcmRzLCAgTWljaGFlbC4= From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Kazuhiro Ito , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131471213631355 (code B ref 9311); Tue, 30 Aug 2011 13:49:02 +0000 Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 13:48:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyOgR-00089f-1l for submit@debbugs.gnu.org; Tue, 30 Aug 2011 09:48:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QyOgO-00089X-6G for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 09:48:53 -0400 Received: (qmail invoked by alias); 30 Aug 2011 13:45:43 -0000 Received: from p57BB98DA.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.218] by mail.gmx.net (mp007) with SMTP; 30 Aug 2011 15:45:43 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18fhQciUmgf0flLUUCbqI2fLIXdC9lSl9FDU7kGH3 Vd5raNbfBPeCVe From: Michael Albinus In-Reply-To: <83zkj8s9hh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Aug 2011 11:55:22 +0300") References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Tue, 30 Aug 2011 15:45:40 +0200 Message-ID: <87zkirnhbv.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Eli Zaretskii writes: > This happens because Emacs thinks this file is remote. It is almost a > duplicate of bug#5303, except that 5303 talked about files without an > extension, while this one is specific to .elc files. In the discussion of bug#5303 there was the proposal to remove the volume letter from `tramp-completion-file-name-regexp'. This was postponed, because we were in pretest phase. But we haven't done it after that release. Shall we try it now? Somehow, we are still before a pretest ... Best regards, Michael. From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 14:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: Eli Zaretskii , Kazuhiro Ito , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131471504211000 (code B ref 9311); Tue, 30 Aug 2011 14:38:01 +0000 Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 14:37:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyPRJ-0002rM-S2 for submit@debbugs.gnu.org; Tue, 30 Aug 2011 10:37:22 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyPRH-0002rB-Pm for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 10:37:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAHL0XE64rwMJ/2dsb2JhbABCqBV4gUABAQQBViMQCzQSFBgNJIgFuFaGTQSgCIQ9 X-IronPort-AV: E=Sophos;i="4.68,302,1312171200"; d="scan'208";a="133525185" Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Aug 2011 10:34:08 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 09A6D66108; Tue, 30 Aug 2011 10:33:56 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> Date: Tue, 30 Aug 2011 10:33:55 -0400 In-Reply-To: <87zkirnhbv.fsf@gmx.de> (Michael Albinus's message of "Tue, 30 Aug 2011 15:45:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >> This happens because Emacs thinks this file is remote. It is almost a >> duplicate of bug#5303, except that 5303 talked about files without an >> extension, while this one is specific to .elc files. > In the discussion of bug#5303 there was the proposal to remove the > volume letter from `tramp-completion-file-name-regexp'. This was > postponed, because we were in pretest phase. > But we haven't done it after that release. > Shall we try it now? Somehow, we are still before a pretest ... Coulf you post a sample patch, together with a discussion of the impact? Stefan From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Kazuhiro Ito , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131471819523524 (code B ref 9311); Tue, 30 Aug 2011 15:30:03 +0000 Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 15:29:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyQGA-00067M-LU for submit@debbugs.gnu.org; Tue, 30 Aug 2011 11:29:55 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QyQG8-00067D-8Y for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 11:29:53 -0400 Received: (qmail invoked by alias); 30 Aug 2011 15:26:41 -0000 Received: from p57BB98DA.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.218] by mail.gmx.net (mp058) with SMTP; 30 Aug 2011 17:26:41 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+S7MYNhPuScC7xbVg56FfLAOIIyHPRpC58ZauxPu 0WGvcrI+wYwNaV From: Michael Albinus References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> Date: Tue, 30 Aug 2011 17:26:38 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 30 Aug 2011 10:33:55 -0400") Message-ID: <87r542or81.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: >> In the discussion of bug#5303 there was the proposal to remove the >> volume letter from `tramp-completion-file-name-regexp'. This was >> postponed, because we were in pretest phase. >> But we haven't done it after that release. >> Shall we try it now? Somehow, we are still before a pretest ... > > Coulf you post a sample patch, together with a discussion of the impact? Sometimes (I cannot reproduce it persistently), there are situations that `expand-file-name' prefixes a remote file name by a volume letter. Happens on win32 only, of course, and confuses Tramp. In order to let Tramp continue its work, we have accepted remote file names with a leading volume letter, which are removed by Tramp then. This worked almost OK, except such cases as discussed in the current (and earlier) bug reports. Eli did suggest to remove this hack from Tramp, and to see during the test where the unexpected volume letter prefix happens. Problems shall be fixed there. The following patch does it, in its final version there could be some additional minor polishing. --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/tramp/lisp/tramp.el.~2.843~ 2011-08-30 17:10:16.058151065 +0200 --- /home/albinus/src/tramp/lisp/tramp.el 2011-08-30 17:07:38.841961797 +0200 *************** *** 861,873 **** Also see `tramp-file-name-structure'.") ;;;###autoload ! (defconst tramp-root-regexp ! (if (memq system-type '(cygwin windows-nt)) ! "\\`\\([a-zA-Z]:\\)?/" ! "\\`/") ! "Beginning of an incomplete Tramp file name. ! Usually, it is just \"\\\\`/\". On W32 systems, there might be a ! volume letter, which will be removed by `tramp-drop-volume-letter'.") ;;;###autoload (defconst tramp-completion-file-name-regexp-unified --- 861,868 ---- Also see `tramp-file-name-structure'.") ;;;###autoload ! (defconst tramp-root-regexp "\\`/" ! "Beginning of an incomplete Tramp file name.") ;;;###autoload (defconst tramp-completion-file-name-regexp-unified *************** *** 1503,1509 **** 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 tramp-root-regexp name) (replace-match "/" nil t name) name))) --- 1498,1504 ---- 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))) --8<---------------cut here---------------end--------------->8--- > Stefan Best regards, Michael. From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: Eli Zaretskii , Kazuhiro Ito , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.13147220589813 (code B ref 9311); Tue, 30 Aug 2011 16:35:02 +0000 Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 16:34:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyRGU-0002YD-9c for submit@debbugs.gnu.org; Tue, 30 Aug 2011 12:34:18 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyRGR-0002Y5-B7 for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 12:34:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGYPXU64rwMJ/2dsb2JhbAA5CagieIFAAQEEAVYjBQsLNBIUGA0kiAW5VIMpgyQEoAiEPQ X-IronPort-AV: E=Sophos;i="4.68,303,1312171200"; d="scan'208";a="133549248" Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Aug 2011 12:31:05 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 2F59566108; Tue, 30 Aug 2011 12:31:05 -0400 (EDT) From: Stefan Monnier Message-ID: References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> <87r542or81.fsf@gmx.de> Date: Tue, 30 Aug 2011 12:31:05 -0400 In-Reply-To: <87r542or81.fsf@gmx.de> (Michael Albinus's message of "Tue, 30 Aug 2011 17:26:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > In order to let Tramp continue its work, we have accepted remote file > names with a leading volume letter, which are removed by Tramp > then. This worked almost OK, except such cases as discussed in the > current (and earlier) bug reports. > Eli did suggest to remove this hack from Tramp, and to see during the > test where the unexpected volume letter prefix happens. Problems shall > be fixed there. Sounds good. We should fix it right instead of using the current workaround. > @@ -861,13 +861,8 @@ > Also see `tramp-file-name-structure'.") > ;;;###autoload > -(defconst tramp-root-regexp > - (if (memq system-type '(cygwin windows-nt)) > - "\\`\\([a-zA-Z]:\\)?/" > - "\\`/") > - "Beginning of an incomplete Tramp file name. > -Usually, it is just \"\\\\`/\". On W32 systems, there might be a > -volume letter, which will be removed by `tramp-drop-volume-letter'.") > +(defconst tramp-root-regexp "\\`/" > + "Beginning of an incomplete Tramp file name.") Looks OK. > @@ -1503,7 +1498,7 @@ > 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 tramp-root-regexp name) > + (if (string-match "\\`[a-zA-Z]:/" name) > (replace-match "/" nil t name) > name))) Shouldn't tramp-drop-volume-letter disappear completely? Stefan PS: by the way, here's a tiny informational patch about common subexpression elimination and about how to silence the compiler without a hack. === modified file 'lisp/net/tramp.el' --- lisp/net/tramp.el 2011-07-24 14:57:37 +0000 +++ lisp/net/tramp.el 2011-08-30 16:27:59 +0000 @@ -871,9 +871,8 @@ ;;;###autoload (defconst tramp-completion-file-name-regexp-unified - (if (memq system-type '(cygwin windows-nt)) - (concat tramp-root-regexp "[^/]\\{2,\\}\\'") - (concat tramp-root-regexp "[^/]*\\'")) + (concat tramp-root-regexp (if (memq system-type '(cygwin windows-nt)) + "[^/]\\{2,\\}\\'" "[^/]*\\'")) "Value for `tramp-completion-file-name-regexp' for unified remoting. GNU Emacs uses a unified filename syntax for Tramp and Ange-FTP. See `tramp-file-name-structure' for more explanations. @@ -1494,9 +1493,9 @@ (tramp-compat-font-lock-add-keywords 'emacs-lisp-mode '("\\")) -(eval-and-compile ;; Silence compiler. +(defalias 'tramp-drop-volume-letter (if (memq system-type '(cygwin windows-nt)) - (defun tramp-drop-volume-letter (name) + (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 @@ -1506,8 +1505,7 @@ (if (string-match tramp-root-regexp name) (replace-match "/" nil t name) name))) - - (defalias 'tramp-drop-volume-letter 'identity))) + #'identity)) ;;; Config Manipulation Functions: From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 17:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: kzhr@d1.dion.ne.jp, 9311@debbugs.gnu.org, monnier@iro.umontreal.ca Reply-To: Eli Zaretskii Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131472710230555 (code B ref 9311); Tue, 30 Aug 2011 17:59:01 +0000 Received: (at 9311) by debbugs.gnu.org; 30 Aug 2011 17:58:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QySZp-0007wl-In for submit@debbugs.gnu.org; Tue, 30 Aug 2011 13:58:21 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QySZl-0007wa-9N for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 13:58:19 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQR006005O2D900@a-mtaout20.012.net.il> for 9311@debbugs.gnu.org; Tue, 30 Aug 2011 20:54:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.83.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQR005G55QHNED0@a-mtaout20.012.net.il>; Tue, 30 Aug 2011 20:54:19 +0300 (IDT) Date: Tue, 30 Aug 2011 20:54:18 +0300 From: Eli Zaretskii In-reply-to: <87r542or81.fsf@gmx.de> X-012-Sender: halo1@inter.net.il Message-id: <8339gig4z9.fsf@gnu.org> References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> <87r542or81.fsf@gmx.de> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Michael Albinus > Cc: Eli Zaretskii , Kazuhiro Ito , 9311@debbugs.gnu.org > Date: Tue, 30 Aug 2011 17:26:38 +0200 > > The following patch does it, in its final version there could be some > additional minor polishing. > > --8<---------------cut here---------------start------------->8--- > *** /home/albinus/src/tramp/lisp/tramp.el.~2.843~ 2011-08-30 17:10:16.058151065 +0200 > --- /home/albinus/src/tramp/lisp/tramp.el 2011-08-30 17:07:38.841961797 +0200 > *************** > *** 861,873 **** > Also see `tramp-file-name-structure'.") > > ;;;###autoload > ! (defconst tramp-root-regexp > ! (if (memq system-type '(cygwin windows-nt)) > ! "\\`\\([a-zA-Z]:\\)?/" > ! "\\`/") > ! "Beginning of an incomplete Tramp file name. > ! Usually, it is just \"\\\\`/\". On W32 systems, there might be a > ! volume letter, which will be removed by `tramp-drop-volume-letter'.") > > ;;;###autoload > (defconst tramp-completion-file-name-regexp-unified > --- 861,868 ---- > Also see `tramp-file-name-structure'.") > > ;;;###autoload > ! (defconst tramp-root-regexp "\\`/" > ! "Beginning of an incomplete Tramp file name.") > > ;;;###autoload > (defconst tramp-completion-file-name-regexp-unified > *************** > *** 1503,1509 **** > 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 tramp-root-regexp name) > (replace-match "/" nil t name) > name))) > > --- 1498,1504 ---- > 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))) > > --8<---------------cut here---------------end--------------->8--- Thanks, this looks good to me. From unknown Sun Jun 22 11:40:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9311: 23.3.50; Can't load some byte-compiled files on Windows Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Aug 2011 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Kazuhiro Ito , 9311@debbugs.gnu.org Received: via spool by 9311-submit@debbugs.gnu.org id=B9311.131478477814205 (code B ref 9311); Wed, 31 Aug 2011 10:00:02 +0000 Received: (at 9311) by debbugs.gnu.org; 31 Aug 2011 09:59:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qyha5-0003h4-Rk for submit@debbugs.gnu.org; Wed, 31 Aug 2011 05:59:38 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qyha4-0003gx-5u for 9311@debbugs.gnu.org; Wed, 31 Aug 2011 05:59:37 -0400 Received: (qmail invoked by alias); 31 Aug 2011 09:56:22 -0000 Received: from p57BB99E8.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.232] by mail.gmx.net (mp048) with SMTP; 31 Aug 2011 11:56:22 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+LkndcXUqLrqOOtFOpqOKSewtG21/MBGU3IZylFb iwPtT8x7eVJvtr From: Michael Albinus References: <20110817002457.0B68A1E0043@msa101.auone-net.jp> <83zkj8s9hh.fsf@gnu.org> <87zkirnhbv.fsf@gmx.de> <87r542or81.fsf@gmx.de> Date: Wed, 31 Aug 2011 11:56:18 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 30 Aug 2011 12:31:05 -0400") Message-ID: <87ippd6h19.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Stefan Monnier writes: >> Eli did suggest to remove this hack from Tramp, and to see during the >> test where the unexpected volume letter prefix happens. Problems shall >> be fixed there. > > Sounds good. We should fix it right instead of using the current workaround. I've committed the patch (slightly polished, as said). Let's see how it goes on. I cannot test anything myself, I don't use Windows machines. > Shouldn't tramp-drop-volume-letter disappear completely? Unfortunately, not. In tramp-*-handle-expand-file-name, expand-file-name is called for the local part of a remote file name in order to handle "./" and "../". On Windows, this prefixes the result with the volume letter, which must be removed afterwards. > Stefan > > PS: by the way, here's a tiny informational patch about common > subexpression elimination and about how to silence the compiler > without a hack. Thanks, applied. Best regards, Michael.