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

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

Re: Allowing spaces in the regexp for outlines


From: Emanuel Berg
Subject: Re: Allowing spaces in the regexp for outlines
Date: Thu, 21 Mar 2024 05:49:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> Have made a regexp for outlines to use ';;;' followed by
>> 'H' and a number.
>>
>> I would like to allow any number of spaces between the
>> ';;;' and the letter 'H'. How can I change the regexp to
>> allow such a capability ?
>
> Why?

Right, but isn't the question never "why", but "how"?

> ELisp already has a set convention for outlining, where
> `;;;` is a top-level heading, then `;;;;` is a subheading,
> `;;;;;` is a subsubheading, etc...

I remember from LaTeX they had came to the conclusion that
three levels were enough. So when I wanted four levels I had
to bring in some stuff or solve that in some other way for it
to happen.

Maybe they are right that more than three levels is a sign of
poor disposition, but I still like the Lisp way more where it
is up to whoever to just use the same syntax to get as many
sublevels as desired.

And for tech documents like manuals one can easily think of
huge catalogs where individual items (e.g. function names in
programming) end up at the forth floor, basement level.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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