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
87cd38d6
Commit
87cd38d6
authored
Jan 18, 1994
by
Richard M. Stallman
Browse files
(font-lock-mode): Set after-revert-hook
to refontify after revert.
parent
fb6208a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/font-lock.el
lisp/font-lock.el
+4
-1
No files found.
lisp/font-lock.el
View file @
87cd38d6
...
...
@@ -365,14 +365,17 @@ can use \\[font-lock-fontify-buffer]."
(
set
(
make-local-variable
'font-lock-mode
)
on-p
)
(
cond
(
on-p
(
font-lock-set-defaults
)
(
make-local-variable
'after-revert-hook
)
;;if buffer is reverted, must repeat fontification.
(
setq
after-revert-hook
'font-lock-fontify-buffer
)
(
run-hooks
'font-lock-mode-hook
)
(
or
font-lock-fontified
(
font-lock-fontify-buffer
)))
(
font-lock-fontified
(
setq
font-lock-fontified
nil
)
(
setq
after-revert-hook
nil
)
(
font-lock-unfontify-region
(
point-min
)
(
point-max
))))
(
force-mode-line-update
)))
(
defun
font-lock-fontify-buffer
()
"Fontify the current buffer the way `font-lock-mode' would:
...
...
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