Mercurial > emacs
comparison doc/lispref/modes.texi @ 99694:7d1d2a142ab5
(Other Font Lock Variables): Document jit-lock-register and
jit-lock-unregister.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 18 Nov 2008 18:09:32 +0000 |
parents | a0397c75f952 |
children | df75ffc11cac |
comparison
equal
deleted
inserted
replaced
99693:3c7c38bba785 | 99694:7d1d2a142ab5 |
---|---|
2828 Function to use for unfontifying a region. It should take two | 2828 Function to use for unfontifying a region. It should take two |
2829 arguments, the beginning and end of the region. The default value is | 2829 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 |
2843 | 2853 |
2844 Many major modes offer three different levels of fontification. You | 2854 Many major modes offer three different levels of fontification. You |