]> git.eshelyaron.com Git - emacs.git/commitdiff
(comint-mode): Add font-lock-defontify to change-major-mode-hook.
authorRichard M. Stallman <rms@gnu.org>
Tue, 10 Sep 2002 16:44:58 +0000 (16:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 10 Sep 2002 16:44:58 +0000 (16:44 +0000)
lisp/comint.el

index 8eb7fa776ef0d8d2ac265eab508cb7da2783424e..af5033b41d306861a98eb69a979372be8b9b6835 100644 (file)
@@ -507,6 +507,7 @@ Entry to this mode runs the hooks on `comint-mode-hook'."
   (make-local-variable 'comint-file-name-chars)
   (make-local-variable 'comint-file-name-quote-list)
   (set (make-local-variable 'comint-accum-marker) (make-marker))
+  (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
   ;; This behavior is not useful in comint buffers, and is annoying
   (set (make-local-variable 'next-line-add-newlines) nil))