diff options
Diffstat (limited to 'lisp/font-lock.el')
| -rw-r--r-- | lisp/font-lock.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 1b4e79a0c87..c2b8d7200da 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -281,12 +281,6 @@ If a number, only buffers greater than this size have fontification messages." | |||
| 281 | (other :tag "always" t) | 281 | (other :tag "always" t) |
| 282 | (integer :tag "size")) | 282 | (integer :tag "size")) |
| 283 | :group 'font-lock) | 283 | :group 'font-lock) |
| 284 | |||
| 285 | (defcustom font-lock-lines-before 0 | ||
| 286 | "*Number of lines before the changed text to include in refontification." | ||
| 287 | :type 'integer | ||
| 288 | :group 'font-lock | ||
| 289 | :version "22.1") | ||
| 290 | 284 | ||
| 291 | 285 | ||
| 292 | ;; Originally these variable values were face names such as `bold' etc. | 286 | ;; Originally these variable values were face names such as `bold' etc. |
| @@ -1098,9 +1092,8 @@ what properties to clear before refontifying a region.") | |||
| 1098 | ;; Fontify the region the major mode has specified. | 1092 | ;; Fontify the region the major mode has specified. |
| 1099 | (setq beg (car region) end (cdr region)) | 1093 | (setq beg (car region) end (cdr region)) |
| 1100 | ;; Fontify the whole lines which enclose the region. | 1094 | ;; Fontify the whole lines which enclose the region. |
| 1101 | (setq beg (progn (goto-char beg) | 1095 | (setq beg (progn (goto-char beg) (line-beginning-position)) |
| 1102 | (forward-line (- font-lock-lines-before))) | 1096 | end (progn (goto-char end) (line-beginning-position 2)))) |
| 1103 | end (progn (goto-char end) (forward-line 1) (point)))) | ||
| 1104 | (font-lock-fontify-region beg end))))) | 1097 | (font-lock-fontify-region beg end))))) |
| 1105 | 1098 | ||
| 1106 | (defun font-lock-fontify-block (&optional arg) | 1099 | (defun font-lock-fontify-block (&optional arg) |