changeset 47377:5ce6684c420c

(comint-mode): Add font-lock-defontify to change-major-mode-hook.
author Richard M. Stallman <rms@gnu.org>
date Tue, 10 Sep 2002 16:44:58 +0000
parents 05b10b9cd8bb
children 84e278f2225f
files lisp/comint.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Tue Sep 10 16:44:37 2002 +0000
+++ b/lisp/comint.el	Tue Sep 10 16:44:58 2002 +0000
@@ -507,6 +507,7 @@
   (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))