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: Fri, 06 Sep 2002 13:36:13 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200209061736.g86HaDi00352@rum.cs.yale.edu> 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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031333774 13801 127.0.0.1 (6 Sep 2002 17:36:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 17:36:14 +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 17nN1h-0003aT-00 for ; Fri, 06 Sep 2002 19:36:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17nNby-0006Nh-00 for ; Fri, 06 Sep 2002 20:13:42 +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 17nN3M-0005cC-00; Fri, 06 Sep 2002 13:37:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nN1m-0005TA-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 13:36:18 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nN1k-0005S2-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 13:36:18 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nN1k-0005Ry-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 13:36:16 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g86HaDi00352; Fri, 6 Sep 2002 13:36:13 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Per Abrahamsen 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:7634 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7634 > > Generally I feel like taking the pragmatic approach: Let us use the > > solution that fits 80% of the problems. This will give us users, and > > these will in turn contribute to hopefully fix the remaining problems. > > Since two keymaps 100% solution is not an option, I believe we should > just use your code as is. We might get a 90% solution by various > hacks, but I think this would just make the rules more confusing. > > With your code, the rules are simle: If you change a keymap with > customize, all other changes are lost. This doesn't have to be the case. The custom info can simply keep track of "what the user added with custom" and "what the user removed with custom" and custom-set-variable would simply take the current map and add/remove the corresponding entries. So changes made outside of custom would only be clobbered if they conflict, which I think is not too confusing and even somewhat intuitive. I don't think creating a whole new map is a good idea anyway since the map might already be used somewhere and updating the variable will not update the already active major-mode maps. Stefan