[ESS] outline-minor-mode

Heinz Tuechler tuechler at gmx.at
Sat Feb 4 11:18:21 CET 2006

Thanks to Seth Falcon, Stephen Eglen, Tony Rossini for your helpful
answers. I will try it and see what I like most.


At 10:49 04.02.2006 +0100, A.J. Rossini wrote:
>Stephen's approach is what I do to use allout mode (require
>To test, set the header lead string to "###" (there's a menu
>to set this as one of the options).
2/4/06, Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk> wrote:
>>  >
>>  > maybe
I missed some ESS functionality, but I considere to use
>>  >
outline-minor-mode in R syntax buffers. I would like to use the comment
> lines as headings. The problem I don't know to solve is that in R
>>  > comments starting with ### are considered as higher level
than comments
>>  > starting with ## or #.
>> yes, and that follows the
elisp convention for comments.
>>  > As far as I understood outline-mode
would treat them the other way round i.e.
>>  > # comment would be
considered as top level, ## comment as second,
>>  and so on.
>> Yes.
outline-regexp is a variable that controls what regexp is used to
>> find
headers at the start of a line. So, three hashes would be taken
>> as a
level 3 heading, deeper than one hash (level one).  I just took a
>> quick
look in the elisp, and couldn't see a way to specify the level
separately from the regexp.
>> Furthermore, if you use ESS's indenting,
you'd see that comments with
>> either one or two hashes won't be found at
the start of the line,
>> which might mess things up.
>> Possibly the
solution would be to use three hashes followed by some
>> variable number
of asterisks to denote your header:
>> ### * Init code
>> ### ** New
>> Stephen
>> ______________________________________________
ESS-help at stat.math.ethz.ch mailing list
lindglobe at gmail.com
>Muttenz, Switzerland.
>"Commit early,commit often, and
commit in a repository from which we can easily
>roll-back your mistakes"
(AJR, 4Jan05).

More information about the ESS-help mailing list