diff options
| -rw-r--r-- | lispref/modes.texi | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index 12e419e8e37..3f56179231c 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -3079,8 +3079,8 @@ While this works well most of the time, sometimes it doesn't---for | |||
| 3079 | example, when a buffer change has changed the syntactic meaning of text | 3079 | example, when a buffer change has changed the syntactic meaning of text |
| 3080 | on an earlier line. | 3080 | on an earlier line. |
| 3081 | 3081 | ||
| 3082 | You can enlarge (or even reduce) the region to fontify by setting either | 3082 | You can enlarge (or even reduce) the region to fontify by setting @c either of |
| 3083 | of the following variables: | 3083 | the following variables: |
| 3084 | 3084 | ||
| 3085 | @defvar font-lock-extend-region-function | 3085 | @defvar font-lock-extend-region-function |
| 3086 | This buffer-local variable is either @code{nil} or is a function that | 3086 | This buffer-local variable is either @code{nil} or is a function that |
| @@ -3091,10 +3091,9 @@ The function is given three parameters, the standard @var{beg}, | |||
| 3091 | @var{end}, and @var{old-len} from after-change-functions (@pxref{Change | 3091 | @var{end}, and @var{old-len} from after-change-functions (@pxref{Change |
| 3092 | Hooks}). It should return either a cons of the beginning and end buffer | 3092 | Hooks}). It should return either a cons of the beginning and end buffer |
| 3093 | positions (in that order) of the region to fontify, or @code{nil} (which | 3093 | positions (in that order) of the region to fontify, or @code{nil} (which |
| 3094 | directs the caller to fontify the default region). This function need | 3094 | directs the caller to fontify the default region). This function needs |
| 3095 | not preserve point or the match-data, but must preserve the current | 3095 | to preserve point, the match-data, and the current restriction. |
| 3096 | restriction. The region it returns may start or end in the middle of a | 3096 | The region it returns may start or end in the middle of a line. |
| 3097 | line. | ||
| 3098 | 3097 | ||
| 3099 | Since this function is called after every buffer change, it should be | 3098 | Since this function is called after every buffer change, it should be |
| 3100 | reasonably fast. | 3099 | reasonably fast. |