From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: Fontification with a specific function
Date: Fri, 15 Oct 2004 14:42:24 +0200 [thread overview]
Message-ID: <uwtxs17bj.fsf@ID-87814.user.uni-berlin.de> (raw)
In-Reply-To: bjj7jpsp98b.fsf@termo1.fi.uib.no
Joakim Hove <hove@ift.uib.no> writes:
> joao17@mailinator.com (joao) writes:
>
>
>> I don't see where this "match data" is defined. Can anyone point me to
>> an example, in the emacs sources or in some package, of this usage of
>> fontification ?
>
> <Disclaimer: I have never done this myself>
>
> The match data is some global emacs variable/stack of the last regexp
> search results. Let us say you you wanted to fontify the word 'horse'
> then function could be like this:
>
[function using `re-search-forward'.]
> Hence, the match data is automatically set by the (re-search-forward
> ) function, you don't have to do that.
[...]
Note that you can also set the match-data explicetly with
`set-match-data'. See (info "(elisp)Entire Match Data").
Oliver
--
24 Vendémiaire an 213 de la Révolution
Liberté, Egalité, Fraternité!
next prev parent reply other threads:[~2004-10-15 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 10:00 Fontification with a specific function joao
2004-10-15 10:27 ` Joakim Hove
2004-10-15 12:42 ` Oliver Scholz [this message]
2004-10-16 20:27 ` joao
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=uwtxs17bj.fsf@ID-87814.user.uni-berlin.de \
--to=alkibiades@gmx.de \
/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).