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: Lute Kamstra
Subject: Re: Parent of a derived mode's keymap.
Date: Fri, 10 Jun 2005 18:12:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> 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).

Ah, yes.  Should have thought of that.

> - 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.

Thanks,

  Lute.




reply via email to

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