aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/jit-lock.el
Commit message (Collapse)AuthorAgeFilesLines
* Modify a commented-out non-nil value of jit-lock-defer-time, toEli Zaretskii2001-11-251-1/+1
| | | | make it consistent with the lazy-lock-defer-time's default value.
* (jit-lock-defer-time): New var.Stefan Monnier2001-11-211-26/+105
| | | | | | | | | | (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.
* Some fixes to follow coding conventions.Pavel Janík2001-07-161-2/+2
|
* (jit-lock-after-change): Check the font-lock-multilineStefan Monnier2001-05-171-8/+7
| | | | | text-property after moving to the beginning of line and regardless of the value of font-lock-multiline.
* (jit-lock-fontify-now): Don't bindGerd Moellmann2001-01-191-2/+9
| | | | font-lock-beginning-of-syntax-function to nil.
* Update copyright.Gerd Moellmann2001-01-191-2/+1
|
* (jit-lock-after-change): If font-lock-multilineGerd Moellmann2001-01-191-1/+2
| | | | is nil, don't check the `font-lock-multiline' text property.
* (jit-lock-stealth-time): Doc fix.Gerd Moellmann2000-10-171-1/+1
|
* (jit-lock-after-change): If we're in text thatGerd Moellmann2000-10-161-0/+8
| | | | | matches a multi-line font-lock pattern, make sure the whole text will be redisplayed.
* (jit-lock-fontify-buffer): Remove.Stefan Monnier2000-10-151-1/+0
|
* Don't require font-lock any more.Stefan Monnier2000-10-081-64/+27
| | | | | | | | | | | | | | | (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.
* (jit-lock-mode): Use jit-lock-defer-contextuallyStefan Monnier2000-10-051-7/+11
| | | | | | consistently with its docstring. Set jit-lock-first-unfontify-pos in an idempotent way. (jit-lock-register): Autoload and add arg CONTEXTUAL.
* (jit-lock-register, jit-lock-unregister): Docstring fix.Stefan Monnier2000-10-051-3/+4
|
* (jit-lock-register, jit-lock-unregister): New functions.Stefan Monnier2000-10-051-0/+14
|
* (with-buffer-unmodified): Use unwind-protect.Stefan Monnier2000-10-051-38/+36
| | | | | | | | | | (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.
* (jit-lock-after-change): Don't assume point is at START.Stefan Monnier2000-06-201-14/+16
|
* (with-buffer-prepared-for-jit-lock):Stefan Monnier2000-06-201-58/+40
| | | | | | | | | | | | | | | | | 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.
* (jit-lock-mode): Force jit-refontify when turned on.Stefan Monnier2000-06-171-8/+9
| | | | | | 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.
* (jit-lock-saved-fontify-buffer-function): New var.Stefan Monnier2000-06-051-7/+31
| | | | | | | | (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.
* (jit-lock-mode): Add after change function to local hook.Gerd Moellmann2000-05-291-1/+1
|
* (with-buffer-unmodified): Fix bug introduced by `)'Gerd Moellmann2000-04-101-2/+2
| | | | at the wrong place.
* (with-buffer-unmodified): UseGerd Moellmann2000-04-091-38/+41
| | | | | | | 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.
* (with-buffer-unmodified): New macro.Gerd Moellmann2000-04-041-69/+84
| | | | | | | | | (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.
* (with-buffer-prepared-for-font-lock): Add commentGerd Moellmann2000-03-201-0/+2
| | | | about behavior of set-buffer-modified-p wrt redisplay.
* (jit-lock-function): Widen before calculating endGerd Moellmann2000-01-311-51/+55
| | | | | position. (jit-lock-stealth-chunk-start): Rewritten.
* (jit-lock-function): Extend the fontified rangeGerd Moellmann1999-08-251-9/+12
| | | | | to the beginning of the line containing the range start and the beginning of the line following the range end.
* (jit-lock-function): Use line-beginning-position.Gerd Moellmann1999-08-211-10/+2
| | | | Don't unwind-protect font-lock-fontify-region.
* New file.Gerd Moellmann1999-07-211-0/+433