From: Richard M. Stallman Date: Wed, 15 Jun 1994 23:03:28 +0000 (+0000) Subject: (outline-mode): Make change-major-mode-hook buffer-local. X-Git-Tag: emacs-19.34~7934 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a46b893b1224c20931249a53266fedf94b04b0c3;p=emacs.git (outline-mode): Make change-major-mode-hook buffer-local. --- diff --git a/lisp/textmodes/ooutline.el b/lisp/textmodes/ooutline.el index 88271165366..0c60cfe30bd 100644 --- a/lisp/textmodes/ooutline.el +++ b/lisp/textmodes/ooutline.el @@ -179,6 +179,7 @@ Turning on outline mode calls the value of `text-mode-hook' and then of (make-local-variable 'paragraph-separate) (setq paragraph-separate (concat paragraph-separate "\\|^\\(" outline-regexp "\\)")) + (make-local-variable 'change-major-mode-hook) (add-hook 'change-major-mode-hook 'show-all) (run-hooks 'text-mode-hook 'outline-mode-hook))