Mercurial > emacs
comparison lisp/jit-lock.el @ 29288:dbb0996702bd
(jit-lock-mode): Add after change function to local hook.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 29 May 2000 15:48:14 +0000 |
parents | e564d806233e |
children | ce16b083b459 |
comparison
equal
deleted
inserted
replaced
29287:5fb859bdf5bd | 29288:dbb0996702bd |
---|---|
215 | 215 |
216 ;; Add a hook for deferred contectual fontification. | 216 ;; Add a hook for deferred contectual fontification. |
217 (when (or (eq jit-lock-defer-contextually 'always) | 217 (when (or (eq jit-lock-defer-contextually 'always) |
218 (and (not (eq jit-lock-defer-contextually 'never)) | 218 (and (not (eq jit-lock-defer-contextually 'never)) |
219 (null font-lock-keywords-only))) | 219 (null font-lock-keywords-only))) |
220 (add-hook 'after-change-functions 'jit-lock-after-change)) | 220 (add-hook 'after-change-functions 'jit-lock-after-change nil t)) |
221 | 221 |
222 ;; Install the fontification hook. | 222 ;; Install the fontification hook. |
223 (add-hook 'fontification-functions 'jit-lock-function)) | 223 (add-hook 'fontification-functions 'jit-lock-function)) |
224 | 224 |
225 ;; Turn Just-in-time Lock mode off. | 225 ;; Turn Just-in-time Lock mode off. |