emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newsticker-start: Recursive laod error


From: Thien-Thi Nguyen
Subject: Re: newsticker-start: Recursive laod error
Date: 12 Dec 2005 17:00:02 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Ulf Jasper <address@hidden> writes:

> `newsticker-running-p' is supposed to be a "public" function.
> (I remember that somebody was asking for that functionality.)
> It is autoloaded for convenience.  If it wasn't autoloaded you'd
> have to check whether newsticker is loaded before checking
> whether it is running.

as a predicate,

  (= 0 (length LIST)) === LIST

this means you can elide `newsticker-running-p' entirely,
and put an autoload cookie on the variable.  the value before
loading (i.e., default value) is nil.

this allows state to be checked (with consistent results ;-)
whether or not newsticker.el is loaded, and reduces the number
of trivial functions by one.  (incf elegance)!

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]