From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Auto-discovery of multi-line font-lock regexps
Date: Tue, 06 May 2008 21:08:33 -0400 [thread overview]
Message-ID: <jwvmyn3j5e0.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <200805062335.59206.bruno@clisp.org> (Bruno Haible's message of "Tue, 6 May 2008 23:35:59 +0200")
While reading the "regexp does not work as documented" thread, an idea
came to me: we could have an idle task that takes the font-lock regexps
and instead of applying them directly, only uses them to find matches
that span multiple lines and mark them with the
`font-lock-multiline' property.
The idea is that the font-lock-multiline works OK to preserve multiline
matches, so the real difficulty is in making sure we discover
them correctly. Sometimes we do by happenstance, sometimes we do
because the major-mode was careful to make it work (which is far from
trivial), but often we just don't. Having such a background loop would
be very helpful. Its job can easily be stopped at any time, so it
shouldn't introduce long latencies.
Stefan
next prev parent reply other threads:[~2008-05-07 1:08 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 4:20 regexp does not work as documented Chong Yidong
2008-05-06 11:35 ` Bruno Haible
2008-05-06 12:12 ` martin rudalics
2008-05-10 19:18 ` David Koppelman
2008-05-10 20:13 ` David Koppelman
2008-05-11 7:40 ` bug#192: " martin rudalics
2008-05-11 7:40 ` martin rudalics
2008-05-11 14:27 ` bug#192: " Chong Yidong
2008-05-11 14:27 ` Chong Yidong
2008-05-11 15:36 ` bug#192: " David Koppelman
2008-05-11 15:36 ` David Koppelman
2008-05-11 18:44 ` bug#192: " Stefan Monnier
2008-05-11 18:44 ` Stefan Monnier
2008-05-11 19:09 ` David Koppelman
2008-05-12 1:28 ` Stefan Monnier
2008-05-12 15:03 ` David Koppelman
2008-05-12 16:29 ` Stefan Monnier
2008-05-12 17:04 ` David Koppelman
2008-05-12 17:04 ` bug#192: " David Koppelman
2008-05-12 16:29 ` Stefan Monnier
2008-05-12 15:03 ` David Koppelman
2008-05-12 1:28 ` Stefan Monnier
2008-05-11 19:09 ` David Koppelman
2008-05-11 18:44 ` Stefan Monnier
2008-05-11 20:03 ` Thomas Lord
2008-05-12 1:43 ` bug#192: " Stefan Monnier
2008-05-12 1:43 ` Stefan Monnier
2008-05-12 3:30 ` Thomas Lord
2008-05-12 13:43 ` bug#192: " Stefan Monnier
2008-05-12 13:43 ` Stefan Monnier
2008-05-12 15:55 ` Thomas Lord
2008-05-12 16:18 ` tomas
2008-05-12 16:18 ` bug#192: " tomas
2008-05-12 15:55 ` Thomas Lord
2008-05-12 3:30 ` Thomas Lord
2008-05-11 20:03 ` Thomas Lord
2008-05-11 18:44 ` Stefan Monnier
2008-05-10 20:13 ` David Koppelman
2008-05-10 19:18 ` David Koppelman
2008-05-06 15:35 ` Stefan Monnier
2008-05-06 21:29 ` Bruno Haible
2008-05-10 20:04 ` Bruno Haible
2008-05-10 20:04 ` bug#192: " Bruno Haible
2008-05-06 15:00 ` David Koppelman
2008-05-06 21:35 ` Bruno Haible
2008-05-07 1:04 ` Stefan Monnier
2008-05-07 1:08 ` Stefan Monnier [this message]
2008-05-07 3:46 ` Auto-discovery of multi-line font-lock regexps Chong Yidong
2008-05-07 4:21 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmyn3j5e0.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.