From: Colin Walters Date: Wed, 18 Sep 2002 16:47:48 +0000 (+0000) Subject: (calc-mode): Add font-lock-defontify to change-major-mode-hook. X-Git-Tag: ttn-vms-21-2-B4~13120 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=558f9ba1c1192fdc6680e21a0d75b1aeafb3f1a2;p=emacs.git (calc-mode): Add font-lock-defontify to change-major-mode-hook. --- diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 09614aa1faf..f119266ddf7 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -1049,6 +1049,7 @@ Notations: 3.14e6 3.14 * 10^6 (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)