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


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi
Date: Sat, 14 May 2005 09:59:41 -0400

Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.100 emacs/lispref/modes.texi:1.101
*** emacs/lispref/modes.texi:1.100      Thu May 12 13:20:56 2005
--- emacs/lispref/modes.texi    Sat May 14 13:59:41 2005
***************
*** 1184,1191 ****
  Definitions}.
  
  @item :global @var{global}
! If address@hidden specifies that the minor mode should be global.
! By default, minor modes are buffer-local.
  
  @item :init-value @var{init-value}
  This is equivalent to specifying @var{init-value} positionally.
--- 1184,1192 ----
  Definitions}.
  
  @item :global @var{global}
! If address@hidden specifies that the minor mode should be global.  By
! default, minor modes defined with @code{define-minor-mode} are
! buffer-local.
  
  @item :init-value @var{init-value}
  This is equivalent to specifying @var{init-value} positionally.
***************
*** 1266,1271 ****
--- 1267,1283 ----
   :group 'hunger)
  @end smallexample
  
+ @defmac define-global-minor-mode global-mode mode turn-on keyword-args...
+ 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
+ @var{turn-on}; to turn off the minor mode, it calls @code{mode} with
+ @minus{}1 as argument.
+ 
+ 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
+ 
  @node Mode Line Format
  @section Mode-Line Format
  @cindex mode line




reply via email to

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