changeset 46932:3596af2b741c

(font-lock-mode): Set change-major-mode-hook locally.
author Richard M. Stallman <rms@gnu.org>
date Mon, 19 Aug 2002 00:54:48 +0000
parents 741192ed03e7
children efe136f74b89
files lisp/font-core.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-core.el	Sun Aug 18 21:17:54 2002 +0000
+++ b/lisp/font-core.el	Mon Aug 19 00:54:48 2002 +0000
@@ -209,8 +209,8 @@
   (funcall font-lock-function font-lock-mode)
   ;; Arrange to unfontify this buffer if we change major mode later.
   (if font-lock-mode
-      (add-hook 'change-major-mode-hook 'font-lock-unfontify-buffer)
-    (remove-hook 'change-major-mode-hook 'font-lock-unfontify-buffer)))
+      (add-hook 'change-major-mode-hook 'font-lock-unfontify-buffer nil t)
+    (remove-hook 'change-major-mode-hook 'font-lock-unfontify-buffer t)))
 
 (defun font-lock-default-function (font-lock-mode)
   ;; Turn on Font Lock mode.