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
6b2fcbb5
Commit
6b2fcbb5
authored
Aug 03, 2006
by
Stefan Monnier
Browse files
(jit-lock-fontify-now): Preserve the buffer's
modification status when forcing the second redisplay.
parent
12008438
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/jit-lock.el
lisp/jit-lock.el
+10
-4
No files found.
lisp/ChangeLog
View file @
6b2fcbb5
2006-08-02 Stefan Monnier <monnier@iro.umontreal.ca>
* jit-lock.el (jit-lock-fontify-now): Preserve the buffer's
modification status when forcing the second redisplay.
2006-08-03 Kim F. Storm <storm@cua.dk>
* edmacro.el (edmacro-fix-menu-commands): Ignore switch-frame.
...
...
lisp/jit-lock.el
View file @
6b2fcbb5
...
...
@@ -31,6 +31,8 @@
(
eval-when-compile
(
require
'cl
)
(
defmacro
with-buffer-unmodified
(
&rest
body
)
"Eval BODY, preserving the current buffer's modified state."
(
declare
(
debug
t
))
...
...
@@ -384,10 +386,14 @@ Defaults to the whole buffer. END can be out of bounds."
;; eagerly extend the refontified region with
;; jit-lock-after-change-extend-region-functions.
(
when
(
<
start
orig-start
)
(
run-with-timer
0
nil
`
(
lambda
()
(
put-text-property
',start
',orig-start
'fontified
t
',
(
current-buffer
)))))
(
lexical-let
((
start
start
)
(
orig-start
orig-start
)
(
buf
(
current-buffer
)))
(
run-with-timer
0
nil
(
lambda
()
(
with-buffer-prepared-for-jit-lock
(
put-text-property
start
orig-start
'fontified
t
buf
))))))
;; Find the start of the next chunk, if any.
(
setq
start
(
text-property-any
next
end
'fontified
nil
))))))))
...
...
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