all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5309: 23.1.91; Cannot load .emacs-history from savehist.el
@ 2010-01-04  1:48 ` Drew Adams
  2010-01-22  8:55   ` bug#5309: marked as done (23.1.91; Cannot load .emacs-history from savehist.el) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2010-01-04  1:48 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 2161 bytes --]

Sending this again, but with a much smaller attachment (46 KB), after having
pared down the file. I intended to send this new attachment as a reply to the
original bug report, but I never received that mail, so I couldn't reply to it.
I waited almost 7 hours.

I'm guessing that the original report was somehow lost or was perhaps rejected
because of the large (568 KB) attachment size (?). Dunno. (Seems like a
submitter should at least receive a rejection notice in that case, but I
received nothing.)

So, apologies for creating a new bug, but I have no bug number from the first
report attempt to reply to. Hopefully this time it will get through. If the
original bug does get opened, then we can delete that. The original message is
below, so you have all the info in this bug report.

HTH.

-----------------------------------------
From: Drew Adams Sent: Sunday, January 03, 2010 11:14 AM
To: 'emacs-pretest-bug@gnu.org'
Subject: 23.1.91; Cannot load .emacs-history from savehist.el

emacs -Q
Trying to load the attached file raises the error "End of file during
parsing: c:/.emacs-history".
 
There is no real end-of-file problem, however: This file was created by
savehist.el using Emacs 23.1, and it loads fine in all releases of Emacs
(20 through 23).  An error is raised only for the Emacs 23.1.91.1
pretest.

NOTE: I had to attach a copy of the original file, because Windows doesn't allow
me to attach a file named `.emacs-history'. But trying to load that copy,
`emacs-history', also raises the same error.

However, something weird is going on. If the file is in c:/ when I try to load
it, then the error is raised. If the file is in c:/mydir/ when I try to load it,
then it loads with no error. I do not understand this at all. Exactly the same
file, different behavior. And it doesn't matter whether I make the file copy
using Emacs C-x C-w or using Windows copy+paste.
 
Dunno if simply attaching the file will enable you to reproduce
the bug - hope so.

 
In GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600)
 of 2010-01-02 on PRETEST
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'


[-- Attachment #2: pared-hist --]
[-- Type: application/octet-stream, Size: 47092 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#5309: marked as done (23.1.91; Cannot load .emacs-history from savehist.el)
  2010-01-04  1:48 ` bug#5309: 23.1.91; Cannot load .emacs-history from savehist.el Drew Adams
@ 2010-01-22  8:55   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2010-01-22  8:55 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-bug-tracker

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

Your message dated Fri, 22 Jan 2010 10:54:42 +0200
with message-id <83k4va7c4t.fsf@gnu.org>
and subject line Re: bug#5303: 23.1.91; Cannot load .emacs-history from savehist.el
has caused the Emacs bug report #5303,
regarding 23.1.91; Cannot load .emacs-history from savehist.el
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact bug-gnu-emacs@gnu.org
immediately.)


-- 
5303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5303
Emacs Bug Tracking System
Contact bug-gnu-emacs@gnu.org with problems

[-- Attachment #2: Type: message/rfc822, Size: 55053 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 2161 bytes --]

Sending this again, but with a much smaller attachment (46 KB), after having
pared down the file. I intended to send this new attachment as a reply to the
original bug report, but I never received that mail, so I couldn't reply to it.
I waited almost 7 hours.

I'm guessing that the original report was somehow lost or was perhaps rejected
because of the large (568 KB) attachment size (?). Dunno. (Seems like a
submitter should at least receive a rejection notice in that case, but I
received nothing.)

So, apologies for creating a new bug, but I have no bug number from the first
report attempt to reply to. Hopefully this time it will get through. If the
original bug does get opened, then we can delete that. The original message is
below, so you have all the info in this bug report.

HTH.

-----------------------------------------
From: Drew Adams Sent: Sunday, January 03, 2010 11:14 AM
To: 'emacs-pretest-bug@gnu.org'
Subject: 23.1.91; Cannot load .emacs-history from savehist.el

emacs -Q
Trying to load the attached file raises the error "End of file during
parsing: c:/.emacs-history".
 
There is no real end-of-file problem, however: This file was created by
savehist.el using Emacs 23.1, and it loads fine in all releases of Emacs
(20 through 23).  An error is raised only for the Emacs 23.1.91.1
pretest.

NOTE: I had to attach a copy of the original file, because Windows doesn't allow
me to attach a file named `.emacs-history'. But trying to load that copy,
`emacs-history', also raises the same error.

However, something weird is going on. If the file is in c:/ when I try to load
it, then the error is raised. If the file is in c:/mydir/ when I try to load it,
then it loads with no error. I do not understand this at all. Exactly the same
file, different behavior. And it doesn't matter whether I make the file copy
using Emacs C-x C-w or using Windows copy+paste.
 
Dunno if simply attaching the file will enable you to reproduce
the bug - hope so.

 
In GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600)
 of 2010-01-02 on PRETEST
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'


[-- Attachment #2.1.2: pared-hist --]
[-- Type: application/octet-stream, Size: 47092 bytes --]

[-- Attachment #3: Type: message/rfc822, Size: 4372 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 5303-done@debbugs.gnu.org, michael.albinus@gmx.de, monnier@IRO.UMontreal.CA, rms@gnu.org
Subject: Re: bug#5303: 23.1.91; Cannot load .emacs-history from savehist.el
Date: Fri, 22 Jan 2010 10:54:42 +0200
Message-ID: <83k4va7c4t.fsf@gnu.org>

> From: Chong Yidong <cyd@stupidchicken.com>
> Cc: 5303@debbugs.gnu.org, michael.albinus@gmx.de,
>         Stefan Monnier <monnier@IRO.UMontreal.CA>,
>         Richard Stallman <rms@gnu.org>
> Date: Thu, 21 Jan 2010 15:41:06 -0500
> 
> Chong Yidong <cyd@stupidchicken.com> writes:
> 
> >>   . Was safe_to_load_p intended to return non-zero value for invalid
> >>     file descriptors such as -2?
> >
> > I think that is a bug.
> 
> Does it fix the bug if safe_to_load_p returns 0 when the call to
> emacs_read on line 895 returns a value <= 0?

It does, but I prefer not to call safe_to_load_p at all in that case.
I've installed a slightly different fix, see below.

(There's another, possibly similar bug: load-file fails for
C:/the-file.el.gz because jka-compr signals a wrong type argument
error.  But that problem existed with the original Fload as well.  I
will file a separate bug and see what I can find there.)

2010-01-22  Eli Zaretskii  <eliz@gnu.org>

	* lread.c (Fload): Don't treat files without .elc extension as
	byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
	them.  (bug#5303)

=== modified file 'src/lread.c'
--- src/lread.c	2010-01-13 08:35:10 +0000
+++ src/lread.c	2010-01-22 08:35:48 +0000
@@ -1155,7 +1155,7 @@ Return t if the file exists and loads su
 
   if (!bcmp (SDATA (found) + SBYTES (found) - 4,
 	     ".elc", 4)
-      || (version = safe_to_load_p (fd)) > 0)
+      || (fd >= 0 && (version = safe_to_load_p (fd)) > 0))
     /* Load .elc files directly, but not when they are
        remote and have no handler!  */
     {



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-22  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <83k4va7c4t.fsf@gnu.org>
2010-01-04  1:48 ` bug#5309: 23.1.91; Cannot load .emacs-history from savehist.el Drew Adams
2010-01-22  8:55   ` bug#5309: marked as done (23.1.91; Cannot load .emacs-history from savehist.el) Emacs bug Tracking System

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.