aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorStefan Monnier2006-08-03 07:14:39 +0000
committerStefan Monnier2006-08-03 07:14:39 +0000
commit05a1066ff0521af95b3761376c853d96312ca2f3 (patch)
tree93703b07c93c44847892aba80432bcbf59140834 /lispref
parentab0dd59ce73e9b13b44ffe52d9937a7a7221e000 (diff)
downloademacs-05a1066ff0521af95b3761376c853d96312ca2f3.tar.gz
emacs-05a1066ff0521af95b3761376c853d96312ca2f3.zip
(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')
-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
3044make the other also work. However, for reliable results you must 3044make the other also work. However, for reliable results you must
3045attend explicitly to both aspects. 3045attend explicitly to both aspects.
3046 3046
3047 There are two ways to ensure correct identification of multiline 3047 There are three ways to ensure correct identification of multiline
3048constructs: 3048constructs:
3049 3049
3050@itemize 3050@itemize
@@ -3055,6 +3055,10 @@ property on the construct when it is added to the buffer.
3055Use @code{font-lock-fontify-region-function} hook to extend the scan 3055Use @code{font-lock-fontify-region-function} hook to extend the scan
3056so that the scanned text never starts or ends in the middle of a 3056so that the scanned text never starts or ends in the middle of a
3057multiline construct. 3057multiline construct.
3058@item
3059Add a function to @code{font-lock-extend-region-functions} that does
3060the \emph{identification} and extends the scan so that the scanned
3061text never starts or ends in the middle of a multiline construct.
3058@end itemize 3062@end itemize
3059 3063
3060 There are three ways to do rehighlighting of multiline constructs: 3064 There are three ways to do rehighlighting of multiline constructs: