GNU bug report logs -
#9311
23.3.50; Can't load some byte-compiled files on Windows
Previous Next
Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Date: Wed, 17 Aug 2011 00:28:02 UTC
Severity: normal
Found in version 23.3.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 <at> debbugs.gnu.org.
--
9311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9311
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> Date: Wed, 17 Aug 2011 09:24:43 +0900
> From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
>
> 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.
[Message part 3 (message/rfc822, inline)]
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
This bug report was last modified 13 years and 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.