aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-04-26 05:33:11 +0000
committerStefan Monnier2006-04-26 05:33:11 +0000
commit50bfbe5fc0d39f79634f36cefd313a92d5fca7e0 (patch)
tree5e9022d38e97b38ebb1cdabf8af73bd9ee9dd5bf
parent0a206828d8892e97523c3eff5df41b8ea647d2a2 (diff)
downloademacs-50bfbe5fc0d39f79634f36cefd313a92d5fca7e0.tar.gz
emacs-50bfbe5fc0d39f79634f36cefd313a92d5fca7e0.zip
Minor tweaks.
-rw-r--r--lispref/modes.texi11
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
3079example, when a buffer change has changed the syntactic meaning of text 3079example, when a buffer change has changed the syntactic meaning of text
3080on an earlier line. 3080on an earlier line.
3081 3081
3082You can enlarge (or even reduce) the region to fontify by setting either 3082You can enlarge (or even reduce) the region to fontify by setting @c either of
3083of the following variables: 3083the following variables:
3084 3084
3085@defvar font-lock-extend-region-function 3085@defvar font-lock-extend-region-function
3086This buffer-local variable is either @code{nil} or is a function that 3086This 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
3092Hooks}). It should return either a cons of the beginning and end buffer 3092Hooks}). It should return either a cons of the beginning and end buffer
3093positions (in that order) of the region to fontify, or @code{nil} (which 3093positions (in that order) of the region to fontify, or @code{nil} (which
3094directs the caller to fontify the default region). This function need 3094directs the caller to fontify the default region). This function needs
3095not preserve point or the match-data, but must preserve the current 3095to preserve point, the match-data, and the current restriction.
3096restriction. The region it returns may start or end in the middle of a 3096The region it returns may start or end in the middle of a line.
3097line.
3098 3097
3099Since this function is called after every buffer change, it should be 3098Since this function is called after every buffer change, it should be
3100reasonably fast. 3099reasonably fast.