[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
define-minor-mode in lispref.
From: |
Lute Kamstra |
Subject: |
define-minor-mode in lispref. |
Date: |
Mon, 21 Feb 2005 16:17:18 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
The node Defining Minor Modes in the Lisp Reference Manual states that
defining global minor modes using define-minor-mode is not possible.
Yet later on it explains how to use the keyword :global to do just
that. What about the following change?
Lute.
*** lispref/modes.texi 9 Feb 2005 15:50:36 -0000 1.88
--- lispref/modes.texi 21 Feb 2005 15:09:09 -0000
***************
*** 1,7 ****
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
! @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003, 2004
! @c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/modes
@node Modes, Documentation, Keymaps, Top
--- 1,7 ----
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
! @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999,
! @c 2003, 2004, 2005 Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/modes
@node Modes, Documentation, Keymaps, Top
***************
*** 1098,1105 ****
@subsection Defining Minor Modes
The macro @code{define-minor-mode} offers a convenient way of
! implementing a mode in one self-contained definition. It supports only
! buffer-local minor modes, not global ones.
@defmac define-minor-mode mode doc [init-value [lighter [keymap
keyword-args... body...]]]
@tindex define-minor-mode
--- 1098,1104 ----
@subsection Defining Minor Modes
The macro @code{define-minor-mode} offers a convenient way of
! implementing a mode in one self-contained definition.
@defmac define-minor-mode mode doc [init-value [lighter [keymap
keyword-args... body...]]]
@tindex define-minor-mode
- define-minor-mode in lispref.,
Lute Kamstra <=