changeset 47539:663c306c80c6

(calc-mode): Add font-lock-defontify to change-major-mode-hook.
author Colin Walters <walters@gnu.org>
date Wed, 18 Sep 2002 16:47:48 +0000
parents 6c9a3367c114
children b825bae4a1ad
files lisp/calc/calc.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc.el	Wed Sep 18 16:47:25 2002 +0000
+++ b/lisp/calc/calc.el	Wed Sep 18 16:47:48 2002 +0000
@@ -1049,6 +1049,7 @@
   (mapcar (function (lambda (v) (make-local-variable v))) calc-local-var-list)
   (make-local-variable 'overlay-arrow-position)
   (make-local-variable 'overlay-arrow-string)
+  (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
   (setq truncate-lines t)
   (setq buffer-read-only t)
   (setq major-mode 'calc-mode)