help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: outline-minor-mode-prefix doen't work?


From: David Kastrup
Subject: Re: outline-minor-mode-prefix doen't work?
Date: Sun, 06 Nov 2005 13:50:39 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Zhang Wei <id.brep@gmail.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> Why do you need to (require 'outline)?
>
> If (setq outline-minor-mode-prefix "\C-o") is put before any statement involve
> outline mode, such as (setq default-major-mode 'outline), it will take effect,
> otherwise it won't.
>
> So (require 'outline) could _guarantee_
> (setq outline-minor-mode-prefix "\C-o") takes effect,

No.  If outline is loaded before the setting of
outline-minor-mode-prefix, (require 'outline) will not magically make
it become reloaded again.

If outline is not loaded before the setting of
outline-minor-mode-prefix, one does not need the (require 'outline) to
guarantee that it won't be loaded before the setting.

And requiring outline will not make the stuff work when it is already
loaded.

> though it's ugly, but it's better than talking about: "Put it as the
> first statement of your .emacs file, or you may suck."

No, it isn't better.  It is snake oil: it helps in absolutely no case
at all, and it causes additional startup delays for no conceivable
reason whatsoever.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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