diff options
author | Chong Yidong <cyd@gnu.org> | 2011-10-27 11:01:40 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2011-10-27 11:01:40 +0800 |
commit | 15de15c66d96905aa21f1781861067eebd68b24b (patch) | |
tree | d85f77009ef850db328fa9db03ecf4a2a96e3ca8 /lisp/emacs-lisp/derived.el | |
parent | 657d08d30a63536174fe9ec60b7f2cb8de541eb5 (diff) | |
download | emacs-15de15c66d96905aa21f1781861067eebd68b24b.tar.gz emacs-15de15c66d96905aa21f1781861067eebd68b24b.tar.bz2 emacs-15de15c66d96905aa21f1781861067eebd68b24b.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/derived.el')
-rw-r--r-- | lisp/emacs-lisp/derived.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index 81932f9940a..55ea102ed2a 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el @@ -230,7 +230,7 @@ No problems result if this variable is not bound. ; Run the parent. (delay-mode-hooks - (,(or parent 'fundamental-mode)) + (,(or parent 'kill-all-local-variables)) ; Identify the child mode. (setq major-mode (quote ,child)) (setq mode-name ,name) |