From: Christopher Dimech <dimech@gmx.com>
To: monnier@iro.umontreal.ca
Cc: help-gnu-emacs@gnu.org
Subject: Re: Allowing spaces in the regexp for outlines
Date: Wed, 27 Mar 2024 20:12:44 +0100 [thread overview]
Message-ID: <trinity-e4b5e1a0-8830-4b07-a17a-45ed4ce28a2d-1711566764523@3c-app-mailcom-bs13> (raw)
In-Reply-To: <jwvil1gb3zv.fsf-monnier+emacs@gnu.org>
> Sent: Thursday, March 21, 2024 at 4:32 PM
> From: "Stefan Monnier via Users list for the GNU Emacs text editor" <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Allowing spaces in the regexp for outlines
>
> > 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?
There is already the functionality for changing the font-lock for outline-minor-mode.
So why not ! It is not so easy to do though. Because managing outlines in a buffer
is valuable for almost everybody, it would help for there to me clear explanation
of what has to be done with actual examples. Good for this would be in the Introduction
to Emacs Lisp Programming.
> ELisp already has a set convention for outlining, where `;;;` is
> a top-level heading, then `;;;;` is a subheading, `;;;;;` is
> a subsubheading, etc...
>
>
> Stefan
>
>
>
next prev parent reply other threads:[~2024-03-27 19:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-20 19:24 Allowing spaces in the regexp for outlines Heime
2024-03-20 19:45 ` Emanuel Berg
2024-03-21 4:44 ` Heime
2024-03-21 4:59 ` Emanuel Berg
2024-03-21 5:08 ` Heime
2024-03-21 6:40 ` Heime
2024-03-21 19:52 ` Emanuel Berg
2024-03-21 4:32 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-03-21 4:49 ` Emanuel Berg
2024-03-22 12:56 ` Arash Esbati
2024-03-22 15:39 ` Heime
2024-03-27 19:12 ` Christopher Dimech [this message]
2024-03-27 19:32 ` Heime
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-e4b5e1a0-8830-4b07-a17a-45ed4ce28a2d-1711566764523@3c-app-mailcom-bs13 \
--to=dimech@gmx.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).