From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Q on shell-mode-map Date: Sat, 22 Jul 2006 11:15:18 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153592235 11376 80.91.229.2 (22 Jul 2006 18:17:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 18:17:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 20:17:12 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G4M2F-0006DU-SH for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 20:17:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G4M2F-00073M-9s for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 14:17:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G4M1y-00073G-Bd for emacs-devel@gnu.org; Sat, 22 Jul 2006 14:16:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G4M1w-00072y-J9 for emacs-devel@gnu.org; Sat, 22 Jul 2006 14:16:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G4M1w-00072p-AV for emacs-devel@gnu.org; Sat, 22 Jul 2006 14:16:48 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G4M2d-00049x-2d for emacs-devel@gnu.org; Sat, 22 Jul 2006 14:17:31 -0400 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k6M7OKZa013978 for ; Sat, 22 Jul 2006 12:16:46 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-153.vpn.oracle.com by rcsmt251.oracle.com with ESMTP id 1615509101153592122; Sat, 22 Jul 2006 12:15:22 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Whitelist: TRUE 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:57478 Archived-At: I have a question on shell-mode-map. Maybe I'm reading the code in shell.el wrong, and I'm also not real clear on how keymaps work with define-derived-mode. What I'd like to do is bind a key in comint-mode-map, and have it also bound in, say shell-mode-map (and the other modes derived from comint-mode), that is, for subsequent uses of shell-mode. It looks like shell-mode-map is defined at load time, however, based on comint-mode-map, so it wouldn't pick up my later addition of a key binding to comint-mode-map. Am I missing something here? Could someone please explain this to me, and let me know the right way to do what I want to do? Thx. Sending to emacs-devel instead of help-gnu-emacs, in the off chance that shell.el should be changed to pick up the comint-mode-map when shell-mode is run. Well, I see now that the nconc should make it so that shell-mode-map shares a tail with comint-mode-map, so I guess it should work OK. However, it doesn't seem to. Guess I'll have to test my code some more...