diff options
| author | Stefan Monnier | 2000-06-17 17:22:41 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-06-17 17:22:41 +0000 |
| commit | 13f0d185ef2a38152e9a7ccf11610e84eacd430a (patch) | |
| tree | 708dd95b891db66177d310a9df39762809975ce2 | |
| parent | 5a5987eb6c004aa8fb23b39581bdf150924fa404 (diff) | |
| download | emacs-13f0d185ef2a38152e9a7ccf11610e84eacd430a.tar.gz emacs-13f0d185ef2a38152e9a7ccf11610e84eacd430a.zip | |
(font-lock-after-fontify-buffer)
(font-lock-after-unfontify-buffer): No need to call back to jit-lock.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/font-lock.el | 16 |
2 files changed, 20 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b62884e10ab..80afd633151 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2000-06-17 Stefan Monnier <monnier@cs.yale.edu> | 1 | 2000-06-17 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 2 | ||
| 3 | * font-lock.el (font-lock-after-fontify-buffer) | ||
| 4 | (font-lock-after-unfontify-buffer): No need to call back to jit-lock. | ||
| 5 | |||
| 6 | * jit-lock.el (jit-lock-mode): Force jit-refontify when turned on. | ||
| 7 | Use consistent make-local-variable style for font-lock-fontified. | ||
| 8 | (jit-lock-fontify-buffer): | ||
| 9 | Don't bother checking for font-lock-mode and jit-lock-mode. | ||
| 10 | |||
| 3 | * time.el: Remove trailing ^M that prevent CVS-merging. | 11 | * time.el: Remove trailing ^M that prevent CVS-merging. |
| 4 | 12 | ||
| 5 | 2000-06-16 Stefan Monnier <monnier@cs.yale.edu> | 13 | 2000-06-16 Stefan Monnier <monnier@cs.yale.edu> |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index bb2aad830df..9bf9f8e0810 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -1098,16 +1098,23 @@ The value of this variable is used when Font Lock mode is turned on." | |||
| 1098 | (defun font-lock-after-fontify-buffer () | 1098 | (defun font-lock-after-fontify-buffer () |
| 1099 | (cond (fast-lock-mode | 1099 | (cond (fast-lock-mode |
| 1100 | (fast-lock-after-fontify-buffer)) | 1100 | (fast-lock-after-fontify-buffer)) |
| 1101 | (jit-lock-mode | 1101 | ;; Useless now that jit-lock intercepts font-lock-fontify-buffer. -sm |
| 1102 | (jit-lock-after-fontify-buffer)) | 1102 | ;; (jit-lock-mode |
| 1103 | ;; (jit-lock-after-fontify-buffer)) | ||
| 1103 | (lazy-lock-mode | 1104 | (lazy-lock-mode |
| 1104 | (lazy-lock-after-fontify-buffer)))) | 1105 | (lazy-lock-after-fontify-buffer)))) |
| 1105 | 1106 | ||
| 1106 | (defun font-lock-after-unfontify-buffer () | 1107 | (defun font-lock-after-unfontify-buffer () |
| 1107 | (cond (fast-lock-mode | 1108 | (cond (fast-lock-mode |
| 1108 | (fast-lock-after-unfontify-buffer)) | 1109 | (fast-lock-after-unfontify-buffer)) |
| 1109 | (jit-lock-mode | 1110 | ;; Useless as well. It's only called when: |
| 1110 | (jit-lock-after-unfontify-buffer)) | 1111 | ;; - turning off font-lock: it does not matter if we leave spurious |
| 1112 | ;; `fontified' text props around since jit-lock-mode is also off. | ||
| 1113 | ;; - font-lock-default-fontify-buffer fails: this is not run | ||
| 1114 | ;; any more anyway. -sm | ||
| 1115 | ;; | ||
| 1116 | ;; (jit-lock-mode | ||
| 1117 | ;; (jit-lock-after-unfontify-buffer)) | ||
| 1111 | (lazy-lock-mode | 1118 | (lazy-lock-mode |
| 1112 | (lazy-lock-after-unfontify-buffer)))) | 1119 | (lazy-lock-after-unfontify-buffer)))) |
| 1113 | 1120 | ||
| @@ -3163,6 +3170,7 @@ See also `java-font-lock-extra-types'.") | |||
| 3163 | 3170 | ||
| 3164 | ;; Install ourselves: | 3171 | ;; Install ourselves: |
| 3165 | 3172 | ||
| 3173 | ;; Useful for the popup-menu for mouse-3 on the modeline. | ||
| 3166 | (unless (assq 'font-lock-mode minor-mode-alist) | 3174 | (unless (assq 'font-lock-mode minor-mode-alist) |
| 3167 | (push '(font-lock-mode nil) minor-mode-alist)) | 3175 | (push '(font-lock-mode nil) minor-mode-alist)) |
| 3168 | 3176 | ||