Restart font-lock after local editing in different mode.

This commit is contained in:
Carsten Dominik 2008-07-24 17:23:41 -07:00
parent 68fcc0b493
commit b8b821336e
1 changed files with 2 additions and 1 deletions

View File

@ -5513,7 +5513,8 @@ the language, a switch telling of the content should be in a single line."
(when font-lock-mode
(font-lock-unfontify-region (point-min) (point-max)))
(put-text-property (point-min) (point-max) 'font-lock-fontified t))
(kill-buffer (current-buffer)))
(kill-buffer (current-buffer))
(and (org-mode-p) (org-restart-font-lock)))
;;;; Plain list items, including checkboxes