Changeset 3863 for trunk/lisp/font-lock.el
- Timestamp:
- 09/10/05 10:16:00 (3 years ago)
- Files:
-
- trunk/lisp/font-lock.el (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/font-lock.el
r3809 r3863 224 224 (defgroup font-lock-extra-types nil 225 225 "Extra mode-specific type names for highlighting declarations." 226 :group 'font-lock)227 228 ;; Define support mode groups here to impose `font-lock' group order.229 (defgroup fast-lock nil230 "Font Lock support mode to cache fontification."231 :load 'fast-lock232 :group 'font-lock)233 234 (defgroup lazy-lock nil235 "Font Lock support mode to fontify lazily."236 :load 'lazy-lock237 226 :group 'font-lock) 238 227 … … 294 283 :group 'font-lock) 295 284 296 (defcustom font-lock-lines-before 1285 (defcustom font-lock-lines-before 0 297 286 "*Number of lines before the changed text to include in refontification." 298 287 :type 'integer … … 858 847 "*Support mode for Font Lock mode. 859 848 Support modes speed up Font Lock mode by being choosy about when fontification 860 occurs. Known support modes are Fast Lock mode (symbol `fast-lock-mode'), 861 Lazy Lock mode (symbol `lazy-lock-mode'), and Just-in-time Lock mode (symbol 862 `jit-lock-mode'. See those modes for more info. 849 occurs. The default support mode, Just-in-time Lock mode (symbol 850 `jit-lock-mode'), is recommended. 851 852 Other, older support modes are Fast Lock mode (symbol `fast-lock-mode') and 853 Lazy Lock mode (symbol `lazy-lock-mode'). See those modes for more info. 854 However, they are no longer recommended, as Just-in-time Lock mode is better. 855 863 856 If nil, means support for Font Lock mode is never performed. 864 857 If a symbol, use that support mode. … … 1050 1043 (when font-lock-syntax-table 1051 1044 (set-syntax-table font-lock-syntax-table)) 1045 (goto-char beg) 1046 (setq beg (line-beginning-position (- 1 font-lock-lines-before))) 1052 1047 ;; check to see if we should expand the beg/end area for 1053 1048 ;; proper multiline matches … … 1106 1101 ;; Rescan between start of lines enclosing the region. 1107 1102 (font-lock-fontify-region 1108 (progn (goto-char beg) 1109 (forward-line (- font-lock-lines-before)) (point)) 1103 (progn (goto-char beg) (forward-line 0) (point)) 1110 1104 (progn (goto-char end) (forward-line 1) (point))))))) 1111 1105
