From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: define-minor-mode in lispref. Date: Mon, 21 Feb 2005 16:17:18 +0100 Message-ID: <87y8di7xj5.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109000532 21536 80.91.229.2 (21 Feb 2005 15:42:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 15:42:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 21 16:42:12 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3FhA-0002CY-96 for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 16:42:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3Fy8-0004yL-CA for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 10:59:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3Fuc-0003e0-GN for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:55:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3FuO-0003Wz-11 for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:55:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3FuN-0003OK-7u for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:55:39 -0500 Original-Received: from [194.109.24.21] (helo=smtp-vbr1.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3FJH-0005Xk-N1 for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:17:20 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with ESMTP id j1LFHJ0b091096 for ; Mon, 21 Feb 2005 16:17:19 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1D3FJG-0001Z6-00 for ; Mon, 21 Feb 2005 16:17:18 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 45 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33675 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33675 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