Gnus development mailing list
 help / color / mirror / Atom feed
* my total-expire annoyance: shadowing
@ 1998-12-23 22:08 Justin Sheehy
  1998-12-24 15:24 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Justin Sheehy @ 1998-12-23 22:08 UTC (permalink / raw)


So, I recently posted about how total-expiry was just doing nothing at
all for me.  I discovered what the problem was:

I had an old copy of make-regexp.el in my load-path, which defines the
function (time-since), among other things.  This was shadowing the
copy of this function in time-date.el and being used by
(nnmail-expired-article-p) in Gnus' expiry process.  The version in
make-regexp.el expects a totally different sort of argument than the
one defined in time-date.el, which would normally have caused an error
to be thrown.  This would have alerted me to the problem much earlier.

However, (nnmail-expired-article-p) calls this function inside a
condition-case, so it simply returned nil instead of throwing an
error.  This resulted in Gnus never thinking that articles were old
enough to expire.  Ugh.

The functionality that I liked from make-regexp.el has long been
superseded by regexp-opt, so I simply got rid of the library.  Once
nnmail started calling the right (time-since), everything was fine.

That was rather annoying.  Why is that condition-case there?

-Justin


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

* Re: my total-expire annoyance: shadowing
  1998-12-23 22:08 my total-expire annoyance: shadowing Justin Sheehy
@ 1998-12-24 15:24 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-12-24 15:24 UTC (permalink / raw)


Justin Sheehy <justin@linus.mitre.org> writes:

> That was rather annoying.  Why is that condition-case there?

Because the parameter to time-since can be a malformed date string,
which will (in some cases) throw an error of some sort.

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


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

end of thread, other threads:[~1998-12-24 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-23 22:08 my total-expire annoyance: shadowing Justin Sheehy
1998-12-24 15:24 ` Lars Magne Ingebrigtsen

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).