From a46b893b1224c20931249a53266fedf94b04b0c3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 15 Jun 1994 23:03:28 +0000 Subject: [PATCH] (outline-mode): Make change-major-mode-hook buffer-local. --- lisp/textmodes/ooutline.el | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.5