diff options
| author | Kenichi Handa | 2006-02-21 10:45:21 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-02-21 10:45:21 +0000 |
| commit | 16d58d04aad8a9e4221a4b4b4dcf55f57532f634 (patch) | |
| tree | f5c9f19976b9db52c9bd9ea55c0f6f70e92d402a | |
| parent | 37707939812a5e6eedb474c85787e1c186f1c04e (diff) | |
| download | emacs-16d58d04aad8a9e4221a4b4b4dcf55f57532f634.tar.gz emacs-16d58d04aad8a9e4221a4b4b4dcf55f57532f634.zip | |
(auto-composition-mode): Add autoload cookie.
(global-auto-composition-mode): Likewise.
| -rw-r--r-- | lisp/composite.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/composite.el b/lisp/composite.el index 440e90a6b24..eb37eba1fa7 100644 --- a/lisp/composite.el +++ b/lisp/composite.el | |||
| @@ -472,6 +472,7 @@ This function is the default value of `auto-composition-function' (which see)." | |||
| 472 | 472 | ||
| 473 | (make-variable-buffer-local 'auto-composition-function) | 473 | (make-variable-buffer-local 'auto-composition-function) |
| 474 | 474 | ||
| 475 | ;;;###autoload | ||
| 475 | (define-minor-mode auto-composition-mode | 476 | (define-minor-mode auto-composition-mode |
| 476 | "Toggle Auto Compostion mode. | 477 | "Toggle Auto Compostion mode. |
| 477 | With arg, turn Auto Compostion mode off if and only if arg is a non-positive | 478 | With arg, turn Auto Compostion mode off if and only if arg is a non-positive |
| @@ -535,9 +536,9 @@ Auto Composition mode in all buffers (this is the default)." | |||
| 535 | (put-text-property start end 'auto-composed nil))))) | 536 | (put-text-property start end 'auto-composed nil))))) |
| 536 | 537 | ||
| 537 | (defun turn-on-auto-composition-if-enabled () | 538 | (defun turn-on-auto-composition-if-enabled () |
| 538 | (or auto-composition-mode | 539 | (auto-composition-mode 1)) |
| 539 | (auto-composition-mode))) | ||
| 540 | 540 | ||
| 541 | ;;;###autoload | ||
| 541 | (define-global-minor-mode global-auto-composition-mode | 542 | (define-global-minor-mode global-auto-composition-mode |
| 542 | auto-composition-mode turn-on-auto-composition-if-enabled | 543 | auto-composition-mode turn-on-auto-composition-if-enabled |
| 543 | :extra-args (dummy) | 544 | :extra-args (dummy) |