From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Parent of a derived mode's keymap. Date: Fri, 10 Jun 2005 16:01:43 +0200 Message-ID: <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 1118412319 5075 80.91.229.2 (10 Jun 2005 14:05:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 14:05:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 10 16:05:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dgk4a-00012x-Vl for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 16:01:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgkBj-0005wt-AW for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 10:08:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dgk90-0004GQ-9w for emacs-devel@gnu.org; Fri, 10 Jun 2005 10:05:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dgk8y-0004F2-4j for emacs-devel@gnu.org; Fri, 10 Jun 2005 10:05:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dgk8x-0004Cd-TI for emacs-devel@gnu.org; Fri, 10 Jun 2005 10:05:55 -0400 Original-Received: from [194.109.24.30] (helo=smtp-vbr10.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dgk5J-0002gM-Dc for emacs-devel@gnu.org; Fri, 10 Jun 2005 10:02:09 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5AE1iSn026909 for ; Fri, 10 Jun 2005 16:01:44 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Dgk4t-000401-00 for ; Fri, 10 Jun 2005 16:01:43 +0200 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 8 X-Virus-Scanned: by XS4ALL Virus Scanner 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:38518 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38518 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? Lute.