diff options
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 14 |
2 files changed, 14 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index e1631105aa0..9ba0aa33f8c 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-12-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * modes.texi (Font Lock Basics): Fix level description. (Bug#1534) | ||
| 4 | (Levels of Font Lock): Refer to font-lock-maximum-decoration. | ||
| 5 | |||
| 1 | 2008-12-12 Glenn Morris <rgm@gnu.org> | 6 | 2008-12-12 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * debugging.texi (Error Debugging): Refer forwards to | 8 | * debugging.texi (Error Debugging): Refer forwards to |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 8760109ecdd..0f47606d3c2 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2429,8 +2429,11 @@ The first element, @var{keywords}, indirectly specifies the value of | |||
| 2429 | It can be a symbol, a variable or a function whose value is the list | 2429 | It can be a symbol, a variable or a function whose value is the list |
| 2430 | to use for @code{font-lock-keywords}. It can also be a list of | 2430 | to use for @code{font-lock-keywords}. It can also be a list of |
| 2431 | several such symbols, one for each possible level of fontification. | 2431 | several such symbols, one for each possible level of fontification. |
| 2432 | The first symbol specifies how to do level 1 fontification, the second | 2432 | The first symbol specifies the @samp{mode default} level of |
| 2433 | symbol how to do level 2, and so on. @xref{Levels of Font Lock}. | 2433 | fontification, the next symbol level 1 fontification, the next level 2, |
| 2434 | and so on. The @samp{mode default} level is normally the same as level | ||
| 2435 | 1. It is used when @code{font-lock-maximum-decoration} has a @code{nil} | ||
| 2436 | value. @xref{Levels of Font Lock}. | ||
| 2434 | 2437 | ||
| 2435 | The second element, @var{keywords-only}, specifies the value of the | 2438 | The second element, @var{keywords-only}, specifies the value of the |
| 2436 | variable @code{font-lock-keywords-only}. If this is omitted or | 2439 | variable @code{font-lock-keywords-only}. If this is omitted or |
| @@ -2854,9 +2857,10 @@ function using @code{jit-lock-register}, this function unregisters it. | |||
| 2854 | Many major modes offer three different levels of fontification. You | 2857 | Many major modes offer three different levels of fontification. You |
| 2855 | can define multiple levels by using a list of symbols for @var{keywords} | 2858 | can define multiple levels by using a list of symbols for @var{keywords} |
| 2856 | in @code{font-lock-defaults}. Each symbol specifies one level of | 2859 | in @code{font-lock-defaults}. Each symbol specifies one level of |
| 2857 | fontification; it is up to the user to choose one of these levels. The | 2860 | fontification; it is up to the user to choose one of these levels, |
| 2858 | chosen level's symbol value is used to initialize | 2861 | normally by setting @code{font-lock-maximum-decoration} (@pxref{Font |
| 2859 | @code{font-lock-keywords}. | 2862 | Lock,,, emacs, the GNU Emacs Manual}). The chosen level's symbol |
| 2863 | value is used to initialize @code{font-lock-keywords}. | ||
| 2860 | 2864 | ||
| 2861 | Here are the conventions for how to define the levels of | 2865 | Here are the conventions for how to define the levels of |
| 2862 | fontification: | 2866 | fontification: |