summaryrefslogtreecommitdiff
path: root/lispref/modes.texi
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2006-08-03 07:14:39 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2006-08-03 07:14:39 +0000
commitcae60fed21ad4bad36455ec46a925930252d6973 (patch)
tree12b7320a9dee20c7c83994c30fb932773a6ee7da /lispref/modes.texi
parent2a1b31ece91224efc9a188d2575bcc025756df04 (diff)
downloademacs-cae60fed21ad4bad36455ec46a925930252d6973.tar.gz
(font-lock-beg, font-lock-end, font-lock-extend-region-functions): New vars.
(font-lock-extend-region-multiline) (font-lock-extend-region-wholelines): New functions. (font-lock-default-fontify-region): Use them. (font-lock-extend-jit-lock-region-after-change): Only round up if font-lock-default-fontify-region will do it as well.
Diffstat (limited to 'lispref/modes.texi')
-rw-r--r--lispref/modes.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi
index 7ca8764a0a8..38227633c6b 100644
--- a/lispref/modes.texi
+++ b/lispref/modes.texi
@@ -3044,7 +3044,7 @@ closely related, and often getting one of them to work will appear to
make the other also work. However, for reliable results you must
attend explicitly to both aspects.
- There are two ways to ensure correct identification of multiline
+ There are three ways to ensure correct identification of multiline
constructs:
@itemize
@@ -3055,6 +3055,10 @@ property on the construct when it is added to the buffer.
Use @code{font-lock-fontify-region-function} hook to extend the scan
so that the scanned text never starts or ends in the middle of a
multiline construct.
+@item
+Add a function to @code{font-lock-extend-region-functions} that does
+the \emph{identification} and extends the scan so that the scanned
+text never starts or ends in the middle of a multiline construct.
@end itemize
There are three ways to do rehighlighting of multiline constructs: