Replace fundamental-mode-hook with change-major-mode-after-body-hook.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 03:01:40 +0000 (11:01 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 03:01:40 +0000 (11:01 +0800)
commit15de15c66d96905aa21f1781861067eebd68b24b
treed85f77009ef850db328fa9db03ecf4a2a96e3ca8
parent657d08d30a63536174fe9ec60b7f2cb8de541eb5
Replace fundamental-mode-hook with change-major-mode-after-body-hook.

* lisp/simple.el (fundamental-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode): Revert 2010-04-28
change introducing fundamental-mode-hook.

* lisp/subr.el (change-major-mode-after-body-hook): New hook.
(run-mode-hooks): Run it.

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use
change-major-mode-before-body-hook.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/derived.el
lisp/emacs-lisp/easy-mmode.el
lisp/simple.el
lisp/subr.el