From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Subject: define-minor-mode in lispref.
Date: Mon, 21 Feb 2005 16:17:18 +0100 [thread overview]
Message-ID: <87y8di7xj5.fsf@xs4all.nl> (raw)
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
next reply other threads:[~2005-02-21 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 15:17 Lute Kamstra [this message]
2005-02-22 18:11 ` define-minor-mode in lispref Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y8di7xj5.fsf@xs4all.nl \
--to=lute.kamstra.lists@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).