From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Spurious shell/comint "shadowed bindings" in C-h m Date: Mon, 01 May 2006 00:20:30 -0400 Message-ID: References: <17493.6908.813917.579798@rgrjr.dyndns.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1146457321 32660 80.91.229.2 (1 May 2006 04:22:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 04:22:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 06:21:59 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 1FaPuz-0005P9-PN for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 06:21:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaPuz-0002Fs-6E for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 00:21:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaPtf-0001mI-PF for emacs-devel@gnu.org; Mon, 01 May 2006 00:20:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaPtf-0001lx-8A for emacs-devel@gnu.org; Mon, 01 May 2006 00:20:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaPtf-0001lr-4Y for emacs-devel@gnu.org; Mon, 01 May 2006 00:20:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FaPxO-0004ZS-P2 for emacs-devel@gnu.org; Mon, 01 May 2006 00:24:22 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FaPte-000496-AF; Mon, 01 May 2006 00:20:30 -0400 Original-To: Bob Rogers In-reply-to: <17493.6908.813917.579798@rgrjr.dyndns.org> (message from Bob Rogers on Sun, 30 Apr 2006 16:15:56 -0400) 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:53711 Archived-At: Examining shell-mode-map shows that the repeated commands do appear bound to the same keys twice via list sharing. You can see this for yourself by evaluating the following in *scratch*: (let ((print-circle t) (print-length nil) (standard-output (current-buffer))) (prin1 shell-mode-map)) This is normal--it is part of the keymap parent mechanism. shell-mode-map has comint-mode-map as its parent. So the sub-keymap for C-c in shell-mode-map must also have, as its parent, the sub-keymap for C-c in comint-mode-map. So the right fix here is to change the code that generates the table for C-h m so that it avoids generating duplicate output in cases like this. Would someone like to do that?