diff options
| author | Stefan Monnier | 2006-08-03 07:14:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-08-03 07:14:39 +0000 |
| commit | 05a1066ff0521af95b3761376c853d96312ca2f3 (patch) | |
| tree | 93703b07c93c44847892aba80432bcbf59140834 /lispref | |
| parent | ab0dd59ce73e9b13b44ffe52d9937a7a7221e000 (diff) | |
| download | emacs-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.texi | 6 |
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 | |||
| 3044 | make the other also work. However, for reliable results you must | 3044 | make the other also work. However, for reliable results you must |
| 3045 | attend explicitly to both aspects. | 3045 | attend 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 |
| 3048 | constructs: | 3048 | constructs: |
| 3049 | 3049 | ||
| 3050 | @itemize | 3050 | @itemize |
| @@ -3055,6 +3055,10 @@ property on the construct when it is added to the buffer. | |||
| 3055 | Use @code{font-lock-fontify-region-function} hook to extend the scan | 3055 | Use @code{font-lock-fontify-region-function} hook to extend the scan |
| 3056 | so that the scanned text never starts or ends in the middle of a | 3056 | so that the scanned text never starts or ends in the middle of a |
| 3057 | multiline construct. | 3057 | multiline construct. |
| 3058 | @item | ||
| 3059 | Add a function to @code{font-lock-extend-region-functions} that does | ||
| 3060 | the \emph{identification} and extends the scan so that the scanned | ||
| 3061 | text 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: |