emacs-devel
[Top][All Lists]
Advanced

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

Re: Parent of a derived mode's keymap.


From: Stefan Monnier
Subject: Re: Parent of a derived mode's keymap.
Date: Fri, 10 Jun 2005 11:28:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Currently, the parent of a derived mode's keymap is set by the mode
> function.  This means that if the docstring of a derived mode shows
> the keybindings of its keymap, the bindings of the parent keymap are
> not shown until the mode function is first called.  Why not set the
> parent keymap at top-level, right after the defvar of the keymap
> variable?

- it may not yet be loaded (that's a pretty common occurrence).
- the parent mode may not use the standard <foo>-mode-map name for
  its keymap.
- IIRC there was one more reason, but I can't think of it right now.


        Stefan




reply via email to

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