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

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

Re: Open Outline-mode file in collapsed state


From: Bastien
Subject: Re: Open Outline-mode file in collapsed state
Date: Sat, 29 Mar 2008 17:12:10 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Evans Winner <thorne@timbral.net> writes:

> `hide-sublevels' used non-interactively actually does take
> one argument[1].  

Missed that, sorry.

So the right solution is the one you already mentioned:

  (add-hook 'outline-mode-hook '(lambda () (hide-sublevels 1)))


Just out of curiosity: using both an (interactive) form and a mandatory
argument looks unclean to me.  I would expect an (interactive "s") form
when the first argument is not optional (and is expected to be a string)
or only optional arguments when (interactive) is used.  

Is there any clean way to decide on this?

-- 
Bastien




reply via email to

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