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: Re: Parent of a derived mode's keymap. Date: Fri, 10 Jun 2005 18:12:18 +0200 Message-ID: <87wtp2qjh9.fsf@xs4all.nl> References: <878y1itins.fsf@xs4all.nl> <87hdg6b5d5.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118420216 3232 80.91.229.2 (10 Jun 2005 16:16:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 16:16:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 10 18:16:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgmB3-0002l1-Gz for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 18:16:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgmID-0002zm-0R for ged-emacs-devel@m.gmane.org; Fri, 10 Jun 2005 12:23:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgmFk-0008N7-AN for emacs-devel@gnu.org; Fri, 10 Jun 2005 12:21:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgmFf-0008HU-Gp for emacs-devel@gnu.org; Fri, 10 Jun 2005 12:21:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgmFb-0008DL-5F for emacs-devel@gnu.org; Fri, 10 Jun 2005 12:20:55 -0400 Original-Received: from [194.109.24.28] (helo=smtp-vbr8.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dgm7i-0005eJ-3I for emacs-devel@gnu.org; Fri, 10 Jun 2005 12:12:46 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5AGCJIW001912; Fri, 10 Jun 2005 18:12:20 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Dgm7G-0006uy-00; Fri, 10 Jun 2005 18:12:18 +0200 Original-To: Stefan Monnier In-Reply-To: <87hdg6b5d5.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 10 Jun 2005 11:28:46 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 20 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:38529 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38529 Stefan Monnier 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 -mode-map name for > its keymap. > - IIRC there was one more reason, but I can't think of it right now. Thanks, Lute.