From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Function for deleting a key binding in a sparse keymap - bug in menus? Date: Fri, 09 Dec 2005 00:14:37 +0100 Message-ID: <4398BE5D.3040106@student.lu.se> References: <3cc04a73cc1b1a.3cc1b1a3cc04a7@net.lu.se> <43987D21.4070200@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134083844 9992 80.91.229.2 (8 Dec 2005 23:17:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 23:17:24 +0000 (UTC) Cc: "Kim F. Storm" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 09 00:17:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkUzV-0000ao-Ny for ged-emacs-devel@m.gmane.org; Fri, 09 Dec 2005 00:15:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkUzo-0001Gi-Na for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 18:16:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkUyv-0000uY-Ut for emacs-devel@gnu.org; Thu, 08 Dec 2005 18:15:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkUyt-0000tZ-9t for emacs-devel@gnu.org; Thu, 08 Dec 2005 18:15:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkUyt-0000tU-2Q for emacs-devel@gnu.org; Thu, 08 Dec 2005 18:15:19 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkUzy-0005QN-Kf for emacs-devel@gnu.org; Thu, 08 Dec 2005 18:16:27 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 43960D0D000B4F96; Fri, 9 Dec 2005 00:14:40 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: <43987D21.4070200@student.lu.se> 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:47263 Archived-At: Lennart Borgman wrote: > Stefan Monnier wrote: > >>> Because in this case it is a temporary minor mode that exists just >>> during >>> a few keystrokes. I actually put the keymap first in >>> emulation-mode-map-alists to avoid any problem. Nearly all keys except >>> those for using the mode are bound to a function that exits the >>> temporary mode. >>> >> >> >> Any reason not to use overriding-(terminal-)local-map like isearch does? >> >> >> Stefan >> > Me. I did not know about it. Seems like what I want to use. I did change to use `overriding-terminal-local-map'. However there are some side effects of this and maybe a bug. Since the minor and major mode maps are overriden they disappear from the menus too. That is rather ok. But the keyboard bindings in overriding-terminal-local-map is not reflected in the menu that is set up by the keymap. That looks like a bug to me. More precisely: The menu setup by the keymap looks ok except that the keyboard bindings are not mentioned in the menus as they use to be.