]> git.eshelyaron.com Git - emacs.git/commitdiff
(font-lock-mode): Set change-major-mode-hook locally.
authorRichard M. Stallman <rms@gnu.org>
Mon, 19 Aug 2002 00:54:48 +0000 (00:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 19 Aug 2002 00:54:48 +0000 (00:54 +0000)
lisp/font-core.el

index 6becb967954be17a0cd2b715c02ff87c05056750..6b97afd3274dfa3001eea8f7137e7e268b781cbe 100644 (file)
@@ -209,8 +209,8 @@ your own function which is called when `font-lock-mode' is toggled via
   (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.