Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1f94ceaf
Commit
1f94ceaf
authored
May 29, 2005
by
Richard M. Stallman
Browse files
(jit-lock-function, jit-lock-after-change): Do nothing if memory is full.
parent
a1594703
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/jit-lock.el
lisp/jit-lock.el
+2
-2
No files found.
lisp/jit-lock.el
View file @
1f94ceaf
...
...
@@ -298,7 +298,7 @@ Only applies to the current buffer."
"Fontify current buffer starting at position START.
This function is added to `fontification-functions' when `jit-lock-mode'
is active."
(
when
jit-lock-mode
(
when
(
and
jit-lock-mode
(
not
(
memory-full-p
)))
(
if
(
null
jit-lock-defer-time
)
;; No deferral.
(
jit-lock-fontify-now
start
(
+
start
jit-lock-chunk-size
))
...
...
@@ -540,7 +540,7 @@ is the pre-change length.
This function ensures that lines following the change will be refontified
in case the syntax of those lines has changed. Refontification
will take place when text is fontified stealthily."
(
when
jit-lock-mode
(
when
(
and
jit-lock-mode
(
not
(
memory-full-p
)))
(
save-excursion
(
with-buffer-prepared-for-jit-lock
;; It's important that the `fontified' property be set from the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment