emacs-pretest-bug
[Top][All Lists]
Advanced

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

Elisp manual doc of define-minor-mode is incorrect


From: Drew Adams
Subject: Elisp manual doc of define-minor-mode is incorrect
Date: Sat, 2 Sep 2006 17:30:37 -0700

(elisp) info node Defining Minor Modes starts this way:

"The macro `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."

The second sentence is incorrect. A few lines later, the doc correctly
says this:

"`:global GLOBAL'
          If non-`nil' specifies that the minor mode should be global.
          By default, minor modes are buffer-local."


In GNU Emacs 22.0.50.1 (i386-msvc-nt5.1.2600)
 of 2006-07-19 on BOS-CTHEWLAP2
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-h f d e f i n e - m i n o r - m o d e <return> C-x 
o C-x 1 C-h i <help-echo> <help-echo> <help-echo> <down-mouse-2> 
<mouse-2> s d e f i n e - m i n o r - m o d e <return> 
s <return> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Searching subfile elisp-15...
Searching subfile elisp-16...
Searching subfile elisp-17...
Searching subfile elisp-18...
Searching subfile elisp-19...
Searching subfile elisp-20...
Searching subfile elisp-21...
Searching subfile elisp-22...
Searching subfile elisp-23...
Loading emacsbug...done





reply via email to

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