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: [CVS] f7, f8 bound.. Date: Mon, 02 Sep 2002 19:24:50 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200209022324.g82NOoO08761@rum.cs.yale.edu> References: <200208271621.g7RGLNm30516@rum.cs.yale.edu> <5xhehfe3aj.fsf@kfs2.cua.dk> <874rdfaytt.fsf@pot.cnuce.cnr.it> <5xvg5sh06u.fsf@kfs2.cua.dk> <20020830235528.GA13207@gnu.org> <87ofbji88u.fsf@emacswiki.org> <200209021705.g82H50d07442@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031009096 7092 127.0.0.1 (2 Sep 2002 23:24:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2002 23:24:56 +0000 (UTC) Cc: "Stefan Monnier" , Per Abrahamsen , 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 17m0Yx-0001qH-00 for ; Tue, 03 Sep 2002 01:24:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17m17O-0004Ix-00 for ; Tue, 03 Sep 2002 02:00:30 +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 17m0aT-00084n-00; Mon, 02 Sep 2002 19:26:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17m0Z1-0007z8-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 19:24:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17m0Yz-0007yp-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 19:24:59 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17m0Yz-0007yk-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 19:24:57 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g82NOoO08761; Mon, 2 Sep 2002 19:24:50 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) 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:7350 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7350 > > And most likely, it'll be important to do the diff-list kind of trick > > so that users can enter (and save) additions and removals rather > > than editing/saving the whole keymap which will quickly lead > > to undesired effects when upgrading (where the user won't ses the > > new bindings). > > Another approach could be to have Emacs look for keybindings in > global-user-map before looking in global-map. I.e. increase the code-size and thus maintenance cost while only providing a solution for global-map but not for any other map ? And of course all the code will not to be checked for cases where it has to be changed to consult global-user-map as well. > Btw, what is the plan about the diff-list trick? It seems that > Customize could be augmented to implement this, or numerous places in > Emacs could be changed so that the diff-list trick is not needed: for > each foo-hook, introduce another foo-user-hook variable defaulting to > nil. Similar for other variables which are lists, such as load-path. Sounds like a lot of trouble, compared to solving the problem once and for all in a centralized place (i.e. where it belongs: in the customization code). I think that Alex's diff-list trick is *much* better. Stefan