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: menu-bar-map variable Date: Sun, 01 Apr 2007 17:42:18 -0400 Message-ID: References: <17932.46017.825959.576713@farnswood.snap.net.nz> <17933.64347.370845.146020@farnswood.snap.net.nz> <17935.30516.272171.376755@farnswood.snap.net.nz> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1175463884 26157 80.91.229.12 (1 Apr 2007 21:44:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2007 21:44:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 01 23:44:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HY7qo-0001EA-TB for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2007 23:44:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY7tm-0003Kj-1e for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2007 17:47:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HY7th-0003KB-Mh for emacs-devel@gnu.org; Sun, 01 Apr 2007 17:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HY7tg-0003Jx-NE for emacs-devel@gnu.org; Sun, 01 Apr 2007 17:47:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY7tg-0003Ju-Ht for emacs-devel@gnu.org; Sun, 01 Apr 2007 17:47:36 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HY7qi-0001C9-I0 for emacs-devel@gnu.org; Sun, 01 Apr 2007 17:44:32 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HY7oY-0002g3-8o; Sun, 01 Apr 2007 17:42:18 -0400 In-reply-to: <17935.30516.272171.376755@farnswood.snap.net.nz> (message from Nick Roberts on Sun, 1 Apr 2007 21:11:16 +1200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68901 Archived-At: (define-key lisp-interaction-mode-map [menu-bar edit] 'undefined) then I get: (local-key-binding [menu-bar]) (keymap (edit . undefined)) but tmm still thinks it's there because it's still in the global list (global-key-binding [menu-bar]): ...(edit "Edit" keymap (undo ... ^^^^ Well, that shows the bug. The definition as `undefined' in the local map should not just be discarded. It should be kept, so that it overrides the global binding. Only at the last moment should it be treated as no definition.