Mercurial > emacs
diff lisp/emacs-lisp/easy-mmode.el @ 90751:52a7f3f50b89
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 624-636)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 200-201)
- Merge from emacs--devo--0
- Update from CVS: lisp/nnweb.el (nnweb-google-parse-1): Update parser.
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-171
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 13 Feb 2007 12:14:16 +0000 |
parents | 95d0cdf160ea 39dd9f1dfbb0 |
children | e6fdae9180d4 |
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el Mon Feb 12 02:58:27 2007 +0000 +++ b/lisp/emacs-lisp/easy-mmode.el Tue Feb 13 12:14:16 2007 +0000 @@ -271,9 +271,11 @@ ;;; ;;;###autoload -(defalias 'easy-mmode-define-global-mode 'define-global-minor-mode) +(defalias 'easy-mmode-define-global-mode 'define-globalized-minor-mode) ;;;###autoload -(defmacro define-global-minor-mode (global-mode mode turn-on &rest keys) +(defalias 'define-global-minor-mode 'define-globalized-minor-mode) +;;;###autoload +(defmacro define-globalized-minor-mode (global-mode mode turn-on &rest keys) "Make a global mode GLOBAL-MODE corresponding to buffer-local minor MODE. TURN-ON is a function that will be called with no args in every buffer and that should try to turn MODE on if applicable for that buffer. @@ -283,7 +285,7 @@ which see. In particular, :group specifies the custom group. The most useful keywords are those that are passed on to the `defcustom'. It normally makes no sense to pass the :lighter - or :keymap keywords to `define-global-minor-mode', since these + or :keymap keywords to `define-globalized-minor-mode', since these are usually passed to the buffer-local version of the minor mode. If MODE's set-up depends on the major mode in effect when it was @@ -348,7 +350,7 @@ (with-current-buffer buf (if ,global-mode (,turn-on) (when ,mode (,mode -1)))))) - ;; Autoloading define-global-minor-mode autoloads everything + ;; Autoloading define-globalized-minor-mode autoloads everything ;; up-to-here. :autoload-end