From b8b821336e0e1e2558adb70211d9bdb2a58ccaee Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 24 Jul 2008 17:23:41 -0700 Subject: [PATCH] Restart font-lock after local editing in different mode. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 7a5be1f08..cfa5e9b24 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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 -- 2.11.4.GIT