From: Gerd Moellmann Date: Thu, 11 Oct 2001 19:25:47 +0000 (+0000) Subject: (master-mode): Use define-minor-mode instead X-Git-Tag: ttn-vms-21-2-B4~19571 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a5be8a9aaccf1734531a51464ae75020f848d8e1;p=emacs.git (master-mode): Use define-minor-mode instead of easy-mmode-define-minor-mode. Add autload cookie. (Coomentary): Remove the line showing how to auload master-mode, since it's always autoloaded. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab33861128d..7d992d979f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,10 @@ 2001-10-11 Gerd Moellmann + * master.el (master-mode): Use define-minor-mode instead of + easy-mmode-define-minor-mode. Add autload cookie. + (Coomentary): Remove the line showing how to autoload master-mode, + since it's always autoloaded. + * master.el: New file. 2001-10-11 Dave Love diff --git a/lisp/master.el b/lisp/master.el index 157cfee13e0..b61885e329e 100644 --- a/lisp/master.el +++ b/lisp/master.el @@ -38,7 +38,6 @@ ;; sql-buffer contains the slave buffer. It is a local variable in the ;; SQL buffer. ;; -;; (autoload 'master-mode "master" "Master mode minor mode." t) ;; (add-hook 'sql-mode-hook ;; (function (lambda () ;; (master-mode t) @@ -51,9 +50,6 @@ ;; ;; Rob Riepel - - - ;;; History: ;; @@ -72,7 +68,8 @@ You can set this variable using `master-set-slave'.") ;;; Define master mode. -(easy-mmode-define-minor-mode master-mode +;;;###autoload +(define-minor-mode master-mode "Toggle Master mode. With no argument, this command toggles the mode. Non-null prefix argument turns on the mode.