[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fontification with a specific function
From: |
Oliver Scholz |
Subject: |
Re: Fontification with a specific function |
Date: |
Fri, 15 Oct 2004 14:42:24 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) |
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é!