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

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

[debbugs-tracker] bug#9819: closed (24.0.50; Docstring of `define-minor-


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#9819: closed (24.0.50; Docstring of `define-minor-mode' and KEYMAP)
Date: Mon, 24 Oct 2011 17:40:02 +0000

Your message dated Mon, 24 Oct 2011 13:37:28 -0400
with message-id <address@hidden>
and subject line Re: bug#9819: 24.0.50; Docstring of `define-minor-mode' and 
KEYMAP
has caused the debbugs.gnu.org bug report #9819,
regarding 24.0.50; Docstring of `define-minor-mode' and KEYMAP
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
9819: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9819
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.0.50; Docstring of `define-minor-mode' and KEYMAP Date: Fri, 21 Oct 2011 00:57:49 +0200
I read in the docstring of `define-minor-mode':

<quote>
Optional KEYMAP is the default keymap bound to the mode keymap.
  If non-nil, it should be a variable name (whose value is a keymap),
  or an expression that returns either a keymap or a list of
  arguments for `easy-mmode-define-keymap'.  If KEYMAP is not a symbol,
  this also defines the variable MODE-map.

  [...]

:keymap MAP     Same as the KEYMAP argument.
</quote>

The way I interpret that is: if I don't pass a KEYMAP argument, it will
define a variable named `MODE-map'.  However, this doesn't happen when I
use this code:

<quote>
(define-minor-mode helo-track-minor-mode
  "Global minor mode for tracking activity in helo buffers."
  :init-value nil
  :lighter ""
  :global t
  :group 'helo
  [...]
</quote>

Am I misunderstanding the docstring or is this a bug?

Deniz



--- End Message ---
--- Begin Message --- Subject: Re: bug#9819: 24.0.50; Docstring of `define-minor-mode' and KEYMAP Date: Mon, 24 Oct 2011 13:37:28 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.0.91

I have tried to clarify the doc-string.


--- End Message ---

reply via email to

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