From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: strange keymap bugs Date: Sun, 19 May 2002 19:28:04 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205192328.g4JNS4b24826@rum.cs.yale.edu> References: <1021787375.16292.2653.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021852944 11443 127.0.0.1 (20 May 2002 00:02:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 00:02:24 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 179ad6-0002yS-00 for ; Mon, 20 May 2002 02:02:24 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179aqm-0006Dd-00 for ; Mon, 20 May 2002 02:16:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179a7z-0004Ii-00; Sun, 19 May 2002 19:30:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179a5u-0004EJ-00 for ; Sun, 19 May 2002 19:28:06 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4JNS4b24826; Sun, 19 May 2002 19:28:04 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Colin Walters Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4148 > I'm hoping a keymap guru can track this one down for me: > > emacs -q --no-site-file > M-x ibuffer > > Then go to the "Operate" menu. On my system, the option which should be > labeled "Kill" (`ibuffer-do-delete') is instead labeled "Apply Patch". I cannot reproduce this here. > And, even stranger, move point up to the "[ Default ]" filter group > name, and pull down the "Operate" menu again. On my system, the > toplevel "Operate", "View", and "Mark" menus now each contain themselves > as two submenus! > > The "[ Default ]" filter group name *does* have a `keymap' property; but > this is just supposed to override those specific entries in the buffer's > local map, correct? Emacs does not really know how to merge two menus that way. What you have to do instead is have your text-local map hide the buffer-local menu and replace it with another one (which has the same name but another binding). This is a limitation of the current code in keyboard.c, AFAIK. Stefan