1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Stefan Monnier
bcacade9c2 (with-buffer-prepared-for-jit-lock):
Renamed from with-buffer-prepared-for-font-lock and use
inhibit-modification-hooks rather than setting *-change-functions.
Update all functions to use the new name.
(jit-lock-first-unfontify-pos): New semantics (and doc).
(jit-lock-mode): Make non-interactive.
Don't automatically turn on font-lock.
Set jit-lock-first-unfontify-pos to indicate deferred-contextual mode.
Always use jit-lock-after-change.
Remove and restore font-lock-after-change-function.
(turn-on-jit-lock, jit-lock-after-fontify-buffer)
(jit-lock-after-unfontify-buffer): Remove.
(jit-lock-stealth-fontify):
Reset jit-lock-first-unfontify-pos to point-max rather than to nil.
(jit-lock-after-change): Set the `fontified' text-prop to nil.
2000-06-20 16:24:04 +00:00
Stefan Monnier
5a5987eb6c (jit-lock-mode): Force jit-refontify when turned on.
Use consistent make-local-variable style for font-lock-fontified.
(jit-lock-fontify-buffer):
Don't bother checking for font-lock-mode and jit-lock-mode.
2000-06-17 17:17:35 +00:00
Stefan Monnier
02b420eb35 (jit-lock-saved-fontify-buffer-function): New var.
(jit-lock-fontify-buffer): New function for JIT refontification.
(jit-lock-mode): Fix docstring.
Use jit-lock-fontify-buffer for font-lock-fontify-buffer-function.
Remove jit-lock-after-change from the _local_ hook.
(jit-lock-function-1): Fix docstring.
2000-06-05 03:08:50 +00:00
Gerd Moellmann
659451a2e9 (jit-lock-mode): Add after change function to local hook. 2000-05-29 15:48:14 +00:00
Gerd Moellmann
25fbf2c48a (with-buffer-unmodified): Fix bug introduced by `)'
at the wrong place.
2000-04-10 10:52:46 +00:00
Gerd Moellmann
9f1a8fb4af (with-buffer-unmodified): Use
restore-buffer-modified-p.
(with-buffer-prepared-for-font-lock): Use with-buffer-unmodified.
(jit-lock-function, jit-lock-stealth-fontify): Don't use
with-buffer-unmodified.
2000-04-09 10:58:27 +00:00
Gerd Moellmann
60bffb784f (with-buffer-unmodified): New macro.
(with-buffer-prepared-for-font-lock): Don't preserve buffer's
modified state.
(jit-lock-function-1): Extracted from jit-lock-function; not
preserving buffer's modified state.
(jit-lock-function, jit-lock-stealth-fontify): Call
jit-lock-function-1.
2000-04-04 21:00:36 +00:00
Gerd Moellmann
7ff02969b8 (with-buffer-prepared-for-font-lock): Add comment
about behavior of set-buffer-modified-p wrt redisplay.
2000-03-20 12:30:55 +00:00
Gerd Moellmann
8c887c51c1 (jit-lock-function): Widen before calculating end
position.
(jit-lock-stealth-chunk-start): Rewritten.
2000-01-31 19:47:38 +00:00
Gerd Moellmann
b342430659 (jit-lock-function): Extend the fontified range
to the beginning of the line containing the range start and
the beginning of the line following the range end.
1999-08-25 13:03:22 +00:00
Gerd Moellmann
a4bda243d2 (jit-lock-function): Use line-beginning-position.
Don't unwind-protect font-lock-fontify-region.
1999-08-21 19:27:28 +00:00
Gerd Moellmann
7840ced199 New file. 1999-07-21 21:43:52 +00:00