From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Customizing key bindings Date: Mon, 09 Sep 2002 10:05:19 +0200 Organization: The Church of Emacs Sender: emacs-devel-admin@gnu.org Message-ID: References: <20020903130247.GA6318@gnu.org> <20020903173120.GA29981@gnu.org> <87ptvttnyo.fsf@emacswiki.org> <200209061736.g86HaDi00352@rum.cs.yale.edu> <874rd1ki2s.fsf_-_@emacswiki.org> <20020907234343.GC26845@gnu.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031558878 30915 127.0.0.1 (9 Sep 2002 08:07:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 08:07:58 +0000 (UTC) Cc: Alex Schroeder , 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 17oJaP-00082V-00 for ; Mon, 09 Sep 2002 10:07:57 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17oKAF-0003YE-00 for ; Mon, 09 Sep 2002 10:44:59 +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 17oJaQ-0006F0-00; Mon, 09 Sep 2002 04:07:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17oJYR-00060N-00 for emacs-devel@gnu.org; Mon, 09 Sep 2002 04:05:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17oJYP-00060A-00 for emacs-devel@gnu.org; Mon, 09 Sep 2002 04:05:55 -0400 Original-Received: from sheridan.dina.kvl.dk ([130.225.40.227]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oJYN-0005yW-00; Mon, 09 Sep 2002 04:05:51 -0400 Original-Received: from zuse.dina.kvl.dk (zuse.dina.kvl.dk [130.225.40.245]) by sheridan.dina.kvl.dk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id KAA17277; Mon, 9 Sep 2002 10:05:22 +0200 Original-Received: (from abraham@localhost) by zuse.dina.kvl.dk (8.9.3+Sun/8.9.3) id KAA26707; Mon, 9 Sep 2002 10:05:19 +0200 (MEST) X-Authentication-Warning: zuse.dina.kvl.dk: abraham set sender to abraham@dina.kvl.dk using -f Original-To: Miles Bader X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ In-Reply-To: <20020907234343.GC26845@gnu.org> (Miles Bader's message of "Sat, 7 Sep 2002 19:43:43 -0400") Original-Lines: 20 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) 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:7735 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7735 Miles Bader writes: > The above situation seems rather silly (and unlikely); if `foo-extra' screws > around like that, then I don't think we should expect custom to intuit what > the right thing to do is. Such packages are common for "global-map". > If a hook overrode the binding, on the other hand, > then I think restoring to A is the _right_ thing to do (the custom command is > probably `restore to original setting'). It will be timing dependent what the "remove user binding" command will restore. > ... which is a misnomer, since it's not really `100%', just 90% with a > different 10% cut out. As you pointed out, it would require a "when (interactive-p)" added to global-(un)set-key and local-(un)set-key to be a 100% solution.