diff options
author | Chong Yidong <[email protected]> | 2011-10-27 11:01:40 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2011-10-27 11:01:40 +0800 |
commit | 15de15c66d96905aa21f1781861067eebd68b24b (patch) | |
tree | d85f77009ef850db328fa9db03ecf4a2a96e3ca8 /etc | |
parent | 657d08d30a63536174fe9ec60b7f2cb8de541eb5 (diff) |
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 'etc')
-rw-r--r-- | etc/NEWS | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -1218,15 +1218,22 @@ syntactic rules. ** frame-local variables cannot be let-bound any more. +** Major and minor mode changes +++ -** prog-mode is a new major-mode meant to be the parent of programming mode. -The prog-mode-hook it defines can be used to enable features for -programming modes. For example: -(add-hook 'prog-mode-hook 'flyspell-prog-mode) -enables on the fly spell checking for comments and strings for -programming modes. +*** `prog-mode' is a new major mode from which programming modes +should be derived. -** define-minor-mode accepts a new keyword :variable. +**** `prog-mode-hook' can be used to enable features for programming +modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable +on-the-fly spell checking for comments and strings. + +*** New hook `change-major-mode-after-body-hook', run by +`run-mode-hooks' just before any other mode hooks. + +*** Enabled globalized minor modes can be disabled in specific modes, +by running (FOO-mode-hook 0) via a mode hook. + +*** `define-minor-mode' accepts a new keyword :variable. +++ ** `delete-file' and `delete-directory' now accept optional arg TRASH. |