diff options
| author | Chong Yidong | 2007-02-03 17:26:28 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-02-03 17:26:28 +0000 |
| commit | 275e4f4ca5612f00aa83aab00f1d8d4ced0ae552 (patch) | |
| tree | 3664af976d75650c6beed7b97a1c136dfd57d4a9 | |
| parent | 98007d8383e016577b8752deac29abf3b8c5d68d (diff) | |
| download | emacs-275e4f4ca5612f00aa83aab00f1d8d4ced0ae552.tar.gz emacs-275e4f4ca5612f00aa83aab00f1d8d4ced0ae552.zip | |
(define-globalized-minor-mode): Rename from define-global-minor-mode.
| -rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 7c6a26e59d6..8b8dc6ba09d 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el | |||
| @@ -271,9 +271,11 @@ With zero or negative ARG turn mode off. | |||
| 271 | ;;; | 271 | ;;; |
| 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-globalized-minor-mode) |
| 275 | ;;;###autoload | 275 | ;;;###autoload |
| 276 | (defmacro define-global-minor-mode (global-mode mode turn-on &rest keys) | 276 | (defalias 'define-global-minor-mode 'define-globalized-minor-mode) |
| 277 | ;;;###autoload | ||
| 278 | (defmacro define-globalized-minor-mode (global-mode mode turn-on &rest keys) | ||
| 277 | "Make a global mode GLOBAL-MODE corresponding to buffer-local minor MODE. | 279 | "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 | 280 | 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. | 281 | and that should try to turn MODE on if applicable for that buffer. |
| @@ -283,7 +285,7 @@ KEYS is a list of CL-style keyword arguments. As the minor mode | |||
| 283 | which see. In particular, :group specifies the custom group. | 285 | which see. In particular, :group specifies the custom group. |
| 284 | The most useful keywords are those that are passed on to the | 286 | The most useful keywords are those that are passed on to the |
| 285 | `defcustom'. It normally makes no sense to pass the :lighter | 287 | `defcustom'. It normally makes no sense to pass the :lighter |
| 286 | or :keymap keywords to `define-global-minor-mode', since these | 288 | or :keymap keywords to `define-globalized-minor-mode', since these |
| 287 | are usually passed to the buffer-local version of the minor mode. | 289 | are usually passed to the buffer-local version of the minor mode. |
| 288 | 290 | ||
| 289 | If MODE's set-up depends on the major mode in effect when it was | 291 | If MODE's set-up depends on the major mode in effect when it was |
| @@ -348,7 +350,7 @@ in which `%s' turns it on." | |||
| 348 | (with-current-buffer buf | 350 | (with-current-buffer buf |
| 349 | (if ,global-mode (,turn-on) (when ,mode (,mode -1)))))) | 351 | (if ,global-mode (,turn-on) (when ,mode (,mode -1)))))) |
| 350 | 352 | ||
| 351 | ;; Autoloading define-global-minor-mode autoloads everything | 353 | ;; Autoloading define-globalized-minor-mode autoloads everything |
| 352 | ;; up-to-here. | 354 | ;; up-to-here. |
| 353 | :autoload-end | 355 | :autoload-end |
| 354 | 356 | ||