diff options
| author | Richard M. Stallman | 2001-12-11 06:10:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-11 06:10:32 +0000 |
| commit | 07f7b41c2fdb4ac23903f415469d2bbe5e20ec04 (patch) | |
| tree | 4a843c634e796fd3743e2dfea8c45ffb69af4753 /lispref | |
| parent | 4b12215e3e0119b8ecfababd84b712515809874a (diff) | |
| download | emacs-07f7b41c2fdb4ac23903f415469d2bbe5e20ec04.tar.gz emacs-07f7b41c2fdb4ac23903f415469d2bbe5e20ec04.zip | |
Improve doc of font-lock-keywords.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/modes.texi | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index bbeb08409ed..4ea2e6d25aa 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -1824,8 +1824,15 @@ Find text by calling @var{function}, and highlight the matches | |||
| 1824 | it finds using @code{font-lock-keyword-face}. | 1824 | it finds using @code{font-lock-keyword-face}. |
| 1825 | 1825 | ||
| 1826 | When @var{function} is called, it receives one argument, the limit of | 1826 | When @var{function} is called, it receives one argument, the limit of |
| 1827 | the search. It should return non-@code{nil} if it succeeds, and set the | 1827 | the search; it should searching at point, and not search beyond the |
| 1828 | match data to describe the match that was found. | 1828 | limit. It should return non-@code{nil} if it succeeds, and set the |
| 1829 | match data to describe the match that was found. Returning @code{nil} | ||
| 1830 | indicates failure of the search. | ||
| 1831 | |||
| 1832 | Fontification will call @var{function} repeatedly with the same limit, | ||
| 1833 | and with point where the previous invocation left it, until | ||
| 1834 | @var{function} fails. On failure, @var{function} need not reset point | ||
| 1835 | in any particular way. | ||
| 1829 | 1836 | ||
| 1830 | @item (@var{matcher} . @var{match}) | 1837 | @item (@var{matcher} . @var{match}) |
| 1831 | In this kind of element, @var{matcher} is either a regular | 1838 | In this kind of element, @var{matcher} is either a regular |