From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Parent of a derived mode's keymap. Date: Fri, 10 Jun 2005 11:28:46 -0400 Message-ID: <87hdg6b5d5.fsf-monnier+emacs@gnu.org> References: <878y1itins.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118418411 27844 80.91.229.2 (10 Jun 2005 15:46:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 15:46:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 10 17:46:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DglhQ-0005Hy-IO for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 17:45:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgloZ-0005rU-Tj for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 11:52:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DglmB-0004gI-PH for emacs-devel@gnu.org; Fri, 10 Jun 2005 11:50:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DglmA-0004es-Jm for emacs-devel@gnu.org; Fri, 10 Jun 2005 11:50:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgllX-00047s-Rj for emacs-devel@gnu.org; Fri, 10 Jun 2005 11:49:51 -0400 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DglRX-0002KB-W2 for emacs-devel@gnu.org; Fri, 10 Jun 2005 11:29:12 -0400 Original-Received: from alfajor ([70.48.82.205]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050610152846.LVNC21470.tomts22-srv.bellnexxia.net@alfajor>; Fri, 10 Jun 2005 11:28:46 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 4D5B0D73A3; Fri, 10 Jun 2005 11:28:46 -0400 (EDT) Original-To: Lute Kamstra In-Reply-To: <878y1itins.fsf@xs4all.nl> (Lute Kamstra's message of "Fri, 10 Jun 2005 16:01:43 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38526 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38526 > 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 -mode-map name for its keymap. - IIRC there was one more reason, but I can't think of it right now. Stefan