diff options
| author | Chong Yidong | 2008-11-18 18:09:32 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-18 18:09:32 +0000 |
| commit | e070558d7b8f436c23a436acc094e186a8d757be (patch) | |
| tree | 7b1b5434cd7141c766cb99e615a67f002906f184 | |
| parent | 38b1d3469c1b53d1c1d264713a36b3944daeba03 (diff) | |
| download | emacs-e070558d7b8f436c23a436acc094e186a8d757be.tar.gz emacs-e070558d7b8f436c23a436acc094e186a8d757be.zip | |
(Other Font Lock Variables): Document jit-lock-register and
jit-lock-unregister.
| -rw-r--r-- | doc/lispref/modes.texi | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 3227aa3bdc3..71db5cc7fd0 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2830,13 +2830,23 @@ arguments, the beginning and end of the region. The default value is | |||
| 2830 | @code{font-lock-default-unfontify-region}. | 2830 | @code{font-lock-default-unfontify-region}. |
| 2831 | @end defvar | 2831 | @end defvar |
| 2832 | 2832 | ||
| 2833 | @ignore | 2833 | @defun jit-lock-register function &optional contextual |
| 2834 | @defvar font-lock-inhibit-thing-lock | 2834 | This function tells Font Lock mode to run the Lisp function |
| 2835 | List of Font Lock mode related modes that should not be turned on. | 2835 | @var{function} any time it has to fontify or refontify part of the |
| 2836 | Currently, valid mode names are @code{fast-lock-mode}, | 2836 | current buffer. It calls @var{function} before calling the default |
| 2837 | @code{jit-lock-mode} and @code{lazy-lock-mode}. | 2837 | fontification functions, and gives it two arguments, @var{start} and |
| 2838 | @end defvar | 2838 | @var{end}, which specify the region to be fontified or refontified. |
| 2839 | @end ignore | 2839 | |
| 2840 | The optional argument @var{contextual}, if non-@code{nil}, forces Font | ||
| 2841 | Lock mode to always refontify a syntactically relevant part of the | ||
| 2842 | buffer, and not just the modified lines. This argument can usually be | ||
| 2843 | omitted. | ||
| 2844 | @end defun | ||
| 2845 | |||
| 2846 | @defun jit-lock-unregister function | ||
| 2847 | If @var{function} was previously registered as a fontification | ||
| 2848 | function using @code{jit-lock-register}, this function unregisters it. | ||
| 2849 | @end defun | ||
| 2840 | 2850 | ||
| 2841 | @node Levels of Font Lock | 2851 | @node Levels of Font Lock |
| 2842 | @subsection Levels of Font Lock | 2852 | @subsection Levels of Font Lock |