changeset 90307:a2899387f787

(auto-composition-mode): Add autoload cookie. (global-auto-composition-mode): Likewise.
author Kenichi Handa <handa@m17n.org>
date Tue, 21 Feb 2006 10:45:21 +0000
parents 696f125c3c6a
children 5b7fa3a2f66c
files lisp/composite.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/composite.el	Tue Feb 21 10:15:48 2006 +0000
+++ b/lisp/composite.el	Tue Feb 21 10:45:21 2006 +0000
@@ -472,6 +472,7 @@
 
 (make-variable-buffer-local 'auto-composition-function)
 
+;;;###autoload
 (define-minor-mode auto-composition-mode
   "Toggle Auto Compostion mode.
 With arg, turn Auto Compostion mode off if and only if arg is a non-positive
@@ -535,9 +536,9 @@
 	  (put-text-property start end 'auto-composed nil)))))
 
 (defun turn-on-auto-composition-if-enabled ()
-  (or auto-composition-mode
-      (auto-composition-mode)))
+  (auto-composition-mode 1))
 
+;;;###autoload
 (define-global-minor-mode global-auto-composition-mode
   auto-composition-mode turn-on-auto-composition-if-enabled
   :extra-args (dummy)