Gnus development mailing list
 help / color / mirror / Atom feed
* [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2
@ 2003-01-09 23:07 Frank Schmitt
  2003-01-10 11:41 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Schmitt @ 2003-01-09 23:07 UTC (permalink / raw)


Henrik Enberg <henrik+news@enberg.org> writes:

> Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:
>
>> Yes, it is. it seems that mail-sources isn't initialized by Gnus when it
>> starts, so you need at least one (setq ...) before you can do
>> (add-to-list ...).
>
> Or wrap it in:
>
> (eval-after-load "mail-source"
>   '(add-to-list ...))

Done. Nevertheless Gnus should initialize the variable to nil when it
starts IMO.

-- 
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.



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

* Re: [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2
  2003-01-09 23:07 [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2 Frank Schmitt
@ 2003-01-10 11:41 ` Kai Großjohann
  2003-01-11 20:38   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2003-01-10 11:41 UTC (permalink / raw)


Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:

> Done. Nevertheless Gnus should initialize the variable to nil when it
> starts IMO.

The problem of undefined variables happens often.  Hm.  Does it make
sense to put an autoload marker on the variable?

What criteria do Emacs developers use to decide whether to mark a
variable to autoload?
-- 
Ambibibentists unite!



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

* Re: [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2
  2003-01-10 11:41 ` Kai Großjohann
@ 2003-01-11 20:38   ` Lars Magne Ingebrigtsen
  2003-01-12 14:15     ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-11 20:38 UTC (permalink / raw)


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

> The problem of undefined variables happens often.  Hm.  Does it make
> sense to put an autoload marker on the variable?

Yes, I think so...  I'm not 100% sure, though.

> What criteria do Emacs developers use to decide whether to mark a
> variable to autoload?

I guess if it's usual to alter the variable before you load the
package, then it should be autoloayded.  I'm not sure why the user
here isn't just setting the variable instead of using `add-to-list'
and the like.

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



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

* Re: [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2
  2003-01-11 20:38   ` Lars Magne Ingebrigtsen
@ 2003-01-12 14:15     ` Kai Großjohann
  2003-01-12 14:18       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2003-01-12 14:15 UTC (permalink / raw)


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

> I guess if it's usual to alter the variable before you load the
> package, then it should be autoloayded.  I'm not sure why the user
> here isn't just setting the variable instead of using `add-to-list'
> and the like.

It's my fault, maybe.  I like to advise people to use add-to-list for
lists, and mail-sources is a list.  The rationale is that people might
be using the default value, and then just setting it won't work
right: it will remove the default mail source.

Also, I think it's more consistent to teach them to use add-to-list
for lists (and add-hook for hooks) so that they don't get confused
too much.
-- 
Ambibibentists unite!



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

* Re: [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2
  2003-01-12 14:15     ` Kai Großjohann
@ 2003-01-12 14:18       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-12 14:18 UTC (permalink / raw)


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

> Also, I think it's more consistent to teach them to use add-to-list
> for lists (and add-hook for hooks) so that they don't get confused
> too much.

Yes, that's true.

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



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

end of thread, other threads:[~2003-01-12 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 23:07 [gnu.emacs.gnus] Re: [Gnus-FAQ] Draft 2 Frank Schmitt
2003-01-10 11:41 ` Kai Großjohann
2003-01-11 20:38   ` Lars Magne Ingebrigtsen
2003-01-12 14:15     ` Kai Großjohann
2003-01-12 14:18       ` 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).