Gnus development mailing list
 help / color / mirror / Atom feed
* message about errors in .newsrc.eld on startup
@ 2002-08-08  7:16 Steinar Bang
  2002-12-29 23:26 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Steinar Bang @ 2002-08-08  7:16 UTC (permalink / raw)


When I start up Gnus, I get the error message
	Error in /home/sb/.newsrc.eld; continue? (yes or no)

When I type "yes" and press RET, everything seems to work normally.
But the message is annoying.  Does anyone have a good trick to trace
it down and fix it manually?

Perhaps we need a .newsrc.eld well formedness/syntax checker?

Thanx!


- Steinar



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

* Re: message about errors in .newsrc.eld on startup
  2002-08-08  7:16 message about errors in .newsrc.eld on startup Steinar Bang
@ 2002-12-29 23:26 ` Lars Magne Ingebrigtsen
  2002-12-30 22:36   ` Steinar Bang
  2003-01-02 17:36   ` Simon Josefsson
  0 siblings, 2 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-12-29 23:26 UTC (permalink / raw)


Steinar Bang <sb@dod.no> writes:

> When I start up Gnus, I get the error message
> 	Error in /home/sb/.newsrc.eld; continue? (yes or no)
>
> When I type "yes" and press RET, everything seems to work normally.
> But the message is annoying.  Does anyone have a good trick to trace
> it down and fix it manually?
>
> Perhaps we need a .newsrc.eld well formedness/syntax checker?

Well, that's what you're seeing, basically.  :-)

These errors are usually the result of moving between different
X/Emacs versions that use different read syntaxaei.  The cruft is
usually at the end of the .newsrc.eld file.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: message about errors in .newsrc.eld on startup
  2002-12-29 23:26 ` Lars Magne Ingebrigtsen
@ 2002-12-30 22:36   ` Steinar Bang
  2002-12-30 22:53     ` Lars Magne Ingebrigtsen
  2003-01-02 17:36   ` Simon Josefsson
  1 sibling, 1 reply; 8+ messages in thread
From: Steinar Bang @ 2002-12-30 22:36 UTC (permalink / raw)


>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org>:

> Steinar Bang <sb@dod.no> writes:

>> Perhaps we need a .newsrc.eld well formedness/syntax checker?

> Well, that's what you're seeing, basically.  :-)

I was thinking of one that would write the line number of the syntax
error. 

> These errors are usually the result of moving between different
> X/Emacs versions that use different read syntaxaei.  The cruft is
> usually at the end of the .newsrc.eld file.

This happened when Gnus in GNU Emacs was reading a .newsrc.eld written
by XEmacs.  I was about to do a diff between .newsrc.eld saved by
XEmacs and GNU Emacs, when I discovered that the problem had gone away
in a CVS update sometime.



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

* Re: message about errors in .newsrc.eld on startup
  2002-12-30 22:36   ` Steinar Bang
@ 2002-12-30 22:53     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-12-30 22:53 UTC (permalink / raw)


Steinar Bang <sb@dod.no> writes:

> I was thinking of one that would write the line number of the syntax
> error. 

Gnus loads the file by doing a `load', and gives you an error message
if the `load' fails.  So Gnus has no knowledge about line numbers at
that point.

But I could write a `gnus-load' that evals form by form and errors
with a line number when we get an error.  I've now done that.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: message about errors in .newsrc.eld on startup
  2002-12-29 23:26 ` Lars Magne Ingebrigtsen
  2002-12-30 22:36   ` Steinar Bang
@ 2003-01-02 17:36   ` Simon Josefsson
  2003-01-02 18:43     ` Lars Magne Ingebrigtsen
  2003-01-03 15:43     ` Kai Großjohann
  1 sibling, 2 replies; 8+ messages in thread
From: Simon Josefsson @ 2003-01-02 17:36 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Steinar Bang <sb@dod.no> writes:
>
>> When I start up Gnus, I get the error message
>> 	Error in /home/sb/.newsrc.eld; continue? (yes or no)
>>
>> When I type "yes" and press RET, everything seems to work normally.
>> But the message is annoying.  Does anyone have a good trick to trace
>> it down and fix it manually?
>>
>> Perhaps we need a .newsrc.eld well formedness/syntax checker?
>
> Well, that's what you're seeing, basically.  :-)
>
> These errors are usually the result of moving between different
> X/Emacs versions that use different read syntaxaei.  The cruft is
> usually at the end of the .newsrc.eld file.

I always need to remove the `(setq gnus-format-specs ...)' line when
moving between emacses nowadays, because it contains byte compiled
stuff.  Has this changed?  Can't this be computed during startup
instead?  I can't spot anything in my .emacs related to this.




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

* Re: message about errors in .newsrc.eld on startup
  2003-01-02 17:36   ` Simon Josefsson
@ 2003-01-02 18:43     ` Lars Magne Ingebrigtsen
  2003-01-03 15:43     ` Kai Großjohann
  1 sibling, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-02 18:43 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> I always need to remove the `(setq gnus-format-specs ...)' line when
> moving between emacses nowadays, because it contains byte compiled
> stuff.  Has this changed?  Can't this be computed during startup
> instead?

It's supposed to speed stuff up -- loading the byte compiler on Gnus
startup seems a bit wasteful.

I thought about adding some error handling around the setting of
`gnus-format-specs' in particular, but that's difficult, since it
errors out while `read'-ing the file...  Hm...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: message about errors in .newsrc.eld on startup
  2003-01-02 17:36   ` Simon Josefsson
  2003-01-02 18:43     ` Lars Magne Ingebrigtsen
@ 2003-01-03 15:43     ` Kai Großjohann
  2003-01-04  2:06       ` Jesper Harder
  1 sibling, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2003-01-03 15:43 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> I always need to remove the `(setq gnus-format-specs ...)' line when
> moving between emacses nowadays, because it contains byte compiled
> stuff.

I don't have that line in .newsrc.eld anymore.  There was some
discussion previously where people told me that Gns now computes the
byte-code when it starts up.  Or something.
-- 
Ambibibentists unite!



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

* Re: message about errors in .newsrc.eld on startup
  2003-01-03 15:43     ` Kai Großjohann
@ 2003-01-04  2:06       ` Jesper Harder
  0 siblings, 0 replies; 8+ messages in thread
From: Jesper Harder @ 2003-01-04  2:06 UTC (permalink / raw)


kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> I always need to remove the `(setq gnus-format-specs ...)' line when
>> moving between emacses nowadays, because it contains byte compiled
>> stuff.
>
> I don't have that line in .newsrc.eld anymore.  There was some
> discussion previously where people told me that Gns now computes the
> byte-code when it starts up.

I think I was the one claiming that.  Don't believe it -- it's not
true :-)  I mixed up the global and buffer-local value of
`gnus-summary-line-format-spec'.

*But* byte-compiling the format-spec seems to have a very insignificant
influence on performance.  I can't measure any difference in the total
time, and timing the difference between 

  (with-temp-buffer
    (dotimes (i 100000)
      (eval gnus-summary-line-format-spec)))

with and without byte-compiling suggests that the difference for the
total time should be less than 1% ... at least for my summary-line.



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

end of thread, other threads:[~2003-01-04  2:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08  7:16 message about errors in .newsrc.eld on startup Steinar Bang
2002-12-29 23:26 ` Lars Magne Ingebrigtsen
2002-12-30 22:36   ` Steinar Bang
2002-12-30 22:53     ` Lars Magne Ingebrigtsen
2003-01-02 17:36   ` Simon Josefsson
2003-01-02 18:43     ` Lars Magne Ingebrigtsen
2003-01-03 15:43     ` Kai Großjohann
2003-01-04  2:06       ` Jesper Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).