From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Parent of a derived mode's keymap.
Date: Fri, 10 Jun 2005 11:28:46 -0400 [thread overview]
Message-ID: <87hdg6b5d5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <878y1itins.fsf@xs4all.nl> (Lute Kamstra's message of "Fri, 10 Jun 2005 16:01:43 +0200")
> 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
next prev parent reply other threads:[~2005-06-10 15:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 14:01 Parent of a derived mode's keymap Lute Kamstra
2005-06-10 15:28 ` Stefan Monnier [this message]
2005-06-10 16:12 ` Lute Kamstra
2005-06-11 12:17 ` Richard Stallman
2005-06-12 16:57 ` Stefan Monnier
2005-06-12 18:45 ` David Kastrup
2005-06-12 21:02 ` Lute Kamstra
2005-06-12 21:56 ` David Kastrup
2005-06-12 23:24 ` Lute Kamstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hdg6b5d5.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).