1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
Chong Yidong
1063efe807 * emacs-lisp/timer.el (timer-set-idle-time, run-with-idle-timer):
Accept internal time format for SECS arg.
	(timer-relative-time): Doc fix.

	* jit-lock.el: "Stealth fontification by requeuing timers" patch,
	adapted from Martin Rudalics.
	(jit-lock-stealth-repeat-timer, jit-lock-stealth-buffers): New vars.
	(jit-lock-mode): Create jit-lock-stealth-repeat-timer.
	(jit-lock-stealth-fontify): Reschedule as a idle timer instead of
	using sit-for.
2006-08-24 23:40:00 +00:00
Stefan Monnier
9fd762b063 (jit-lock-fontify-now): Protect the modified status of the right buffer. 2006-08-17 15:10:21 +00:00
Stefan Monnier
6b2fcbb546 (jit-lock-fontify-now): Preserve the buffer's
modification status when forcing the second redisplay.
2006-08-03 03:35:45 +00:00
Stefan Monnier
663e16604c (jit-lock-fontify-now): Cause a second redisplay if needed.
(jit-lock-start, jit-lock-end): New dynamic scoped vars.
(jit-lock-after-change-extend-region-functions): New hook.
(jit-lock-after-change): Use it instead of hard-coding font-lock code.
2006-08-01 19:01:24 +00:00
Stefan Monnier
0902822d85 (jit-lock-function): Check for the actual defer-timer rather than just
defer-time, in case defer-time has been changed but the timer isn't running yet.
(jit-lock-deferred-fontify): Correspondingly let-bind defer-timer.
2006-03-20 07:52:03 +00:00
Stefan Monnier
4ffc92c2d8 * font-lock.el (font-lock-lines-before): Delete variable, subsumed by
the new extend-region feature.
(font-lock-after-change-function): Update correspondingly.
* jit-lock.el (jit-lock-after-change): Update correspondingly.
* progmodes/grep.el (font-lock-lines-before): Don't disable.
* modes.texi (Region to Fontify): Remove font-lock-lines-before.
2006-03-15 22:26:09 +00:00
Alan Mackenzie
ef0083218d * font-core.el: New function/variable
font-lock-extend-region\(-function\)?.

* font-lock.el (font-lock-after-change-function): Call
font-lock-extend-region.  Obey font-lock-lines-before.
(font-lock-default-fontify-region): Remove reference to
font-lock-lines-before.

* jit-lock.el (jit-lock-after-change): Call
font-lock-extend-region.  Obey font-lock-lines-before.
2006-03-14 18:23:47 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Eli Zaretskii
45cb4c9656 (jit-lock-chunk-size): Doc fix. 2005-12-30 13:20:23 +00:00
Dan Nicolaescu
c94f08ff7a * loadup.el: Load emacs-lisp/syntax, font-lock and jit-lock so
that global-font-lock-mode can be enabled by default.

* font-lock.el (font-lock-keywords, font-lock-mode-internal)
(font-lock-add-keywords, font-lock-remove-keywords)
(font-lock-fontify-buffer): Remove autoload cookies.

* jit-lock.el (jit-lock-register): Likewise.

* emacs-lisp/syntax.el (syntax-ppss): Likewise.

* puresize.h (BASE_PURESIZE): Increment to 1170000.
2005-10-31 16:41:15 +00:00
Richard M. Stallman
74614ac6c0 (jit-lock-function, jit-lock-stealth-fontify)
(jit-lock-deferred-fontify, jit-lock-context-fontify)
(jit-lock-after-change): Test memory-full.
2005-10-29 19:45:40 +00:00
Stefan Monnier
7aaf6f174f (jit-lock-fontify-now): Be careful not to skip multiline
regions when moving the jit-lock-context-unfontify-pos boundary.
2005-10-25 15:26:41 +00:00
Stefan Monnier
9036e92f79 (jit-lock-fontify-now): Fix copy/paste mess up in last change. 2005-10-17 17:39:57 +00:00
Stefan Monnier
c4ac63d085 (jit-lock-fontify-now): Move jit-lock-context-unfontify-pos. 2005-10-17 15:15:31 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
1f94ceaf65 (jit-lock-function, jit-lock-after-change): Do nothing if memory is full. 2005-05-29 08:40:37 +00:00
Juanma Barranquero
f530778210 Specify missing group (and type, if simple) in defcustom. 2005-05-19 19:06:19 +00:00
Eli Zaretskii
4739237ddf (jit-lock-stealth-time): Change default value to 16.
(jit-lock-stealth-nice): Change default value to 0.5.
2005-04-23 12:41:24 +00:00
Richard M. Stallman
2e0a74c6e8 (jit-lock-stealth-fontify): When calling sit-for,
make sure the current buffer is the expected one.
2005-03-06 18:31:36 +00:00
Juri Linkov
ead147301f * jit-lock.el (jit-lock): Remove links to removed Support Modes
Info node.
2004-03-25 10:47:17 +00:00
Stefan Monnier
7b4d9d3bb7 (jit-lock-context-time, jit-lock-context-timer): New var.
(with-buffer-unmodified, with-buffer-prepared-for-jit-lock):
Add edebug info.
(jit-lock-mode): Setup/cancel the new timer.
(jit-lock-context-fontify): New fun.  Extracted from
context fontification code of jit-lock-stealth-fontify.
(jit-lock-stealth-fontify): Don't do context fontification any more.
2004-01-30 00:20:46 +00:00
Stefan Monnier
f415f2d726 (jit-lock-stealth-fontify): Allow quit.
(jit-lock-fontify-now): Handle the `quit' case.
(jit-lock-contextually): Rename from jit-lock-defer-contextually.
2004-01-30 00:08:38 +00:00
Stefan Monnier
623a122684 (jit-lock): Move group declaration from font-lock.el.
(jit-lock-context-unfontify-pos): Rename from jit-lock-first-unfontify-pos.
(jit-lock-defer-buffers): Rename from jit-lock-buffers.
2004-01-26 22:56:09 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Stefan Monnier
c9cf2e67e8 (jit-lock-fontify-now): Don't widen.
Let the jit-lock-functions do it if they want to.
2002-10-01 16:54:42 +00:00
Eli Zaretskii
8e069ce28d Modify a commented-out non-nil value of jit-lock-defer-time, to
make it consistent with the lazy-lock-defer-time's default value.
2001-11-25 18:02:45 +00:00
Stefan Monnier
b743187d51 (jit-lock-defer-time): New var.
(jit-lock-defer-timer, jit-lock-buffers): New vars.
(jit-lock-mode): Initialize them.  Cancel the timers more carefully.
(jit-lock-function): Defer fontification if requested.
(jit-lock-stealth-chunk-start): Pay attention to the new non-nil value.
(jit-lock-stealth-fontify): Check the new `jit-lock-defer-multiline'
text property.
(jit-lock-deferred-fontify): New fun.
2001-11-21 01:30:35 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Stefan Monnier
df22166e16 (jit-lock-after-change): Check the font-lock-multiline
text-property after moving to the beginning of line and regardless
of the value of font-lock-multiline.
2001-05-17 13:29:44 +00:00
Gerd Moellmann
9724173bef (jit-lock-fontify-now): Don't bind
font-lock-beginning-of-syntax-function to nil.
2001-01-19 16:19:07 +00:00
Gerd Moellmann
cd9b540f67 Update copyright. 2001-01-19 13:30:01 +00:00
Gerd Moellmann
9932797454 (jit-lock-after-change): If font-lock-multiline
is nil, don't check the `font-lock-multiline' text property.
2001-01-19 13:29:05 +00:00
Gerd Moellmann
f86292a9e9 (jit-lock-stealth-time): Doc fix. 2000-10-17 12:47:29 +00:00
Gerd Moellmann
7a1e3cece9 (jit-lock-after-change): If we're in text that
matches a multi-line font-lock pattern, make sure the whole text
will be redisplayed.
2000-10-16 13:04:34 +00:00
Stefan Monnier
8b7707e1be (jit-lock-fontify-buffer): Remove. 2000-10-15 04:54:20 +00:00
Stefan Monnier
a62e3c6f35 Don't require font-lock any more.
(jit-lock-functions): Make buffer-local.
(jit-lock-saved-fontify-buffer-function): Remove.
(jit-lock-mode): Remove autoload cookie.
Remove font-lock specific code.
(jit-lock-unregister): Don't bother handling complex hooks any more.
(jit-lock-refontify): New function.
(jit-lock-fontify-buffer): Use it.
(jit-lock-function-1): Replaced by jit-lock-fontify-now.
(jit-lock-fontify-now): Renamed from jit-lock-function-1.
Add optional args START and END.
Never call font-lock-fontify-region directly.
(jit-lock-function, jit-lock-stealth-fontify): Use it.
2000-10-08 19:01:17 +00:00
Stefan Monnier
c94d5f40fc (jit-lock-mode): Use jit-lock-defer-contextually
consistently with its docstring.
Set jit-lock-first-unfontify-pos in an idempotent way.
(jit-lock-register): Autoload and add arg CONTEXTUAL.
2000-10-05 21:30:02 +00:00
Stefan Monnier
8a677d4fdd (jit-lock-register, jit-lock-unregister): Docstring fix. 2000-10-05 02:17:22 +00:00
Stefan Monnier
f8bacc70b5 (jit-lock-register, jit-lock-unregister): New functions. 2000-10-05 02:13:25 +00:00
Stefan Monnier
be390cb3d8 (with-buffer-unmodified): Use unwind-protect.
(jit-lock-mode): Make sure font-lock-keywords-only is bound before use.
(jit-lock-functions): New var.
(jit-lock-function-1): Use it if non-nil.
Don't switch the syntax-table.  Don't set parse-sexp-lookup-properties.
Set the `fontified' property before doing the fontification to avoid
repeatedly going through the same error.
Don't turn errors into messages.
2000-10-05 01:27:55 +00:00
Stefan Monnier
d9330f43f4 (jit-lock-after-change): Don't assume point is at START. 2000-06-20 23:59:05 +00:00
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