emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/modes.texi,v


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi,v
Date: Tue, 02 Jan 2007 20:57:30 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Richard M. Stallman <rms>       07/01/02 20:57:30

Index: modes.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/modes.texi,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -b -r1.160 -r1.161
--- modes.texi  11 Dec 2006 02:34:51 -0000      1.160
+++ modes.texi  2 Jan 2007 20:57:30 -0000       1.161
@@ -1480,12 +1480,15 @@
 @end smallexample
 
 @defmac define-global-minor-mode global-mode mode turn-on address@hidden
-This defines a global minor mode named @var{global-mode} whose meaning
-is to enable the buffer-local minor mode @var{mode} in every buffer.
-To turn on the minor mode in a buffer, it uses the function
+This defines a global toggle named @var{global-mode} whose meaning is
+to enable or disable the buffer-local minor mode @var{mode} in all
+buffers.  To turn on the minor mode in a buffer, it uses the function
 @var{turn-on}; to turn off the minor mode, it calls @code{mode} with
 @minus{}1 as argument.
 
+Globally enabling the mode also affects buffers subsequently created
+by visiting files, but not buffers subsequently created in other ways.
+
 Use @code{:group @var{group}} in @var{keyword-args} to specify the
 custom group for the mode variable of the global minor mode.
 @end defmac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]