aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-09-10 16:44:58 +0000
committerRichard M. Stallman <[email protected]>2002-09-10 16:44:58 +0000
commit3dd4c1c5af3cdf77ba98b7255ec4034051107c6f (patch)
tree042e0a6adc431597db314dbd6a06ec463cd4769e /lisp
parent3d12b3310ae14d61aaffefcc69f054f0f272118b (diff)
(comint-mode): Add font-lock-defontify to change-major-mode-hook.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/comint.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 8eb7fa776e..af5033b41d 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))