From: Richard M. Stallman Date: Tue, 10 Sep 2002 16:44:58 +0000 (+0000) Subject: (comint-mode): Add font-lock-defontify to change-major-mode-hook. X-Git-Tag: ttn-vms-21-2-B4~13262 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3dd4c1c5af3cdf77ba98b7255ec4034051107c6f;p=emacs.git (comint-mode): Add font-lock-defontify to change-major-mode-hook. --- diff --git a/lisp/comint.el b/lisp/comint.el index 8eb7fa776ef..af5033b41d3 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -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))