From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Customizing key bindings Date: Sun, 08 Sep 2002 20:21:37 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <87ofbji88u.fsf@emacswiki.org> <200209021705.g82H50d07442@rum.cs.yale.edu> <200209022324.g82NOoO08761@rum.cs.yale.edu> <20020903130247.GA6318@gnu.org> <20020903173120.GA29981@gnu.org> <87ptvttnyo.fsf@emacswiki.org> <200209061736.g86HaDi00352@rum.cs.yale.edu> <874rd1ki2s.fsf_-_@emacswiki.org> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031530978 17839 127.0.0.1 (9 Sep 2002 00:22:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 00:22:58 +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.35 #1 (Debian)) id 17oCKO-0004dZ-00 for ; Mon, 09 Sep 2002 02:22:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17oCu5-00011A-00 for ; Mon, 09 Sep 2002 02:59:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oCKQ-00027P-00; Sun, 08 Sep 2002 20:22:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17oCJ9-00023a-00 for emacs-devel@gnu.org; Sun, 08 Sep 2002 20:21:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17oCJ7-00023D-00 for emacs-devel@gnu.org; Sun, 08 Sep 2002 20:21:39 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oCJ7-000237-00 for emacs-devel@gnu.org; Sun, 08 Sep 2002 20:21:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17oCJ7-0002dw-00; Sun, 08 Sep 2002 20:21:37 -0400 Original-To: alex@emacswiki.org In-reply-to: <874rd1ki2s.fsf_-_@emacswiki.org> (message from Alex Schroeder on Sat, 07 Sep 2002 16:08:59 +0200) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7722 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7722 Hm, but while we are in the same session, potential bug remain (the ones that Per keeps talking about). 1. Load foo.el which uses defkeymap to create a keymap with binding A for one key. 2. Customize the keymap with binding B for the same key. The shadowed binding A is saved. 3. Load foo-extra or call a hook that uses define-key to change the binding for the same key to C. 4. Customize the keymap. I think it is ok to see binding C, because after all that is what happens to variables as well. The problem is that when the user removes the binding for that key, we revert to binding A, instead of B. I think my two-keymap solution, with a modified define-key, would handle this right. (It would also prevent C from being visible while the customization is in effect.)