diff options
| author | Stefan Monnier | 2006-11-23 18:36:22 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-11-23 18:36:22 +0000 |
| commit | 6b28caea07879860836a5194a4e7aad769b1f5d6 (patch) | |
| tree | f48437e84c182eb518a13009224d4147f47569ab | |
| parent | 312d24fbde1d80e5ea823de511eb362f16bac582 (diff) | |
| download | emacs-6b28caea07879860836a5194a4e7aad769b1f5d6.tar.gz emacs-6b28caea07879860836a5194a4e7aad769b1f5d6.zip | |
(Multiline Font Lock): Rephrase some parts for clarity.
| -rw-r--r-- | lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/modes.texi | 21 |
2 files changed, 16 insertions, 9 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 9f87f71416b..f07016138f8 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-11-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * modes.texi (Multiline Font Lock): Rephrase some parts for clarity. | ||
| 4 | |||
| 1 | 2006-11-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 5 | 2006-11-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * frames.texi (Window System Selections): Remove clipboard from | 7 | * frames.texi (Window System Selections): Remove clipboard from |
diff --git a/lispref/modes.texi b/lispref/modes.texi index d6af11434b9..4f68bb5064b 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -3067,16 +3067,19 @@ will rehighlight the whole construct if any part of it is changed. In | |||
| 3067 | some cases you can do this automatically by setting the | 3067 | some cases you can do this automatically by setting the |
| 3068 | @code{font-lock-multiline} variable, which see. | 3068 | @code{font-lock-multiline} variable, which see. |
| 3069 | @item | 3069 | @item |
| 3070 | Rely on @code{jit-lock-contextually}. This will only rehighlight the part | 3070 | Make sure @code{jit-lock-contextually} is set and rely on it doing its |
| 3071 | of the construct that follows the actual change, and will do it after | 3071 | job. This will only rehighlight the part of the construct that |
| 3072 | a short delay. This only works if the highlighting of the various | 3072 | follows the actual change, and will do it after a short delay. |
| 3073 | parts of your multiline construct never depends on text in subsequent | 3073 | This only works if the highlighting of the various parts of your |
| 3074 | lines. Since @code{jit-lock-contextually} is activated by default, | 3074 | multiline construct never depends on text in subsequent lines. |
| 3075 | this can be an attractive solution. | 3075 | Since @code{jit-lock-contextually} is activated by default, this can |
| 3076 | be an attractive solution. | ||
| 3076 | @item | 3077 | @item |
| 3077 | Place a @code{jit-lock-defer-multiline} property on the construct. | 3078 | Place a @code{jit-lock-defer-multiline} property on the construct. |
| 3078 | This works only if @code{jit-lock-contextually} is used, but it can | 3079 | This works only if @code{jit-lock-contextually} is used, and with the |
| 3079 | handle the case where highlighting depends on subsequent lines. | 3080 | same delay before rehighlighting, but like @code{font-lock-multiline}, |
| 3081 | it also handles the case where highlighting depends on | ||
| 3082 | subsequent lines. | ||
| 3080 | @end itemize | 3083 | @end itemize |
| 3081 | 3084 | ||
| 3082 | @menu | 3085 | @menu |
| @@ -3089,7 +3092,7 @@ handle the case where highlighting depends on subsequent lines. | |||
| 3089 | @subsubsection Font Lock Multiline | 3092 | @subsubsection Font Lock Multiline |
| 3090 | 3093 | ||
| 3091 | One way to ensure reliable rehighlighting of multiline Font Lock | 3094 | One way to ensure reliable rehighlighting of multiline Font Lock |
| 3092 | constructs is to put on the text property @code{font-lock-multiline}. | 3095 | constructs is to put on them the text property @code{font-lock-multiline}. |
| 3093 | It should be present and non-@code{nil} for text that is part of a | 3096 | It should be present and non-@code{nil} for text that is part of a |
| 3094 | multiline construct. | 3097 | multiline construct. |
| 3095 | 3098 | ||