comparison lisp/emacs-lisp/easy-mmode.el @ 74995:5faab2f9dd46

(define-global-minor-mode): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sat, 30 Dec 2006 21:34:14 +0000
parents e6443f563ae7
children 7a3f13e2dd57 bc10a33dd40b
comparison
equal deleted inserted replaced
74994:3f5116deed29 74995:5faab2f9dd46
272 272
273 ;;;###autoload 273 ;;;###autoload
274 (defalias 'easy-mmode-define-global-mode 'define-global-minor-mode) 274 (defalias 'easy-mmode-define-global-mode 'define-global-minor-mode)
275 ;;;###autoload 275 ;;;###autoload
276 (defmacro define-global-minor-mode (global-mode mode turn-on &rest keys) 276 (defmacro define-global-minor-mode (global-mode mode turn-on &rest keys)
277 "Make GLOBAL-MODE out of the buffer-local minor MODE. 277 "Make a global mode GLOBAL-MODE corresponding to buffer-local minor MODE.
278 TURN-ON is a function that will be called with no args in every buffer 278 TURN-ON is a function that will be called with no args in every buffer
279 and that should try to turn MODE on if applicable for that buffer. 279 and that should try to turn MODE on if applicable for that buffer.
280 KEYS is a list of CL-style keyword arguments. As the minor mode 280 KEYS is a list of CL-style keyword arguments. As the minor mode
281 defined by this function is always global, any :global keyword is 281 defined by this function is always global, any :global keyword is
282 ignored. Other keywords have the same meaning as in `define-minor-mode', 282 ignored. Other keywords have the same meaning as in `define-minor-mode',