diff options
| author | Richard M. Stallman | 2005-05-29 08:40:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-29 08:40:37 +0000 |
| commit | 1f94ceaf650191262aaeaf0a9aaf9bd8e4ad5e1b (patch) | |
| tree | 1b62ca23ac6708f50ef2481077889e3e553daa1c /lisp | |
| parent | a1594703887d102b8f64f9672500ee3222a3fc0b (diff) | |
| download | emacs-1f94ceaf650191262aaeaf0a9aaf9bd8e4ad5e1b.tar.gz emacs-1f94ceaf650191262aaeaf0a9aaf9bd8e4ad5e1b.zip | |
(jit-lock-function, jit-lock-after-change): Do nothing if memory is full.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/jit-lock.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el index b34e26f74d4..ba2eed9f17e 100644 --- a/lisp/jit-lock.el +++ b/lisp/jit-lock.el | |||
| @@ -298,7 +298,7 @@ Only applies to the current buffer." | |||
| 298 | "Fontify current buffer starting at position START. | 298 | "Fontify current buffer starting at position START. |
| 299 | This function is added to `fontification-functions' when `jit-lock-mode' | 299 | This function is added to `fontification-functions' when `jit-lock-mode' |
| 300 | is active." | 300 | is active." |
| 301 | (when jit-lock-mode | 301 | (when (and jit-lock-mode (not (memory-full-p))) |
| 302 | (if (null jit-lock-defer-time) | 302 | (if (null jit-lock-defer-time) |
| 303 | ;; No deferral. | 303 | ;; No deferral. |
| 304 | (jit-lock-fontify-now start (+ start jit-lock-chunk-size)) | 304 | (jit-lock-fontify-now start (+ start jit-lock-chunk-size)) |
| @@ -540,7 +540,7 @@ is the pre-change length. | |||
| 540 | This function ensures that lines following the change will be refontified | 540 | This function ensures that lines following the change will be refontified |
| 541 | in case the syntax of those lines has changed. Refontification | 541 | in case the syntax of those lines has changed. Refontification |
| 542 | will take place when text is fontified stealthily." | 542 | will take place when text is fontified stealthily." |
| 543 | (when jit-lock-mode | 543 | (when (and jit-lock-mode (not (memory-full-p))) |
| 544 | (save-excursion | 544 | (save-excursion |
| 545 | (with-buffer-prepared-for-jit-lock | 545 | (with-buffer-prepared-for-jit-lock |
| 546 | ;; It's important that the `fontified' property be set from the | 546 | ;; It's important that the `fontified' property be set from the |