From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: customizing key definitions with Customize Date: Mon, 12 May 2008 22:42:38 +0200 Message-ID: <4828ABBE.2090004@gmail.com> References: <000301c8b39e$ded16a50$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210625003 26769 80.91.229.12 (12 May 2008 20:43:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 20:43:23 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 22:43:59 2008 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 1Jves5-0002Oz-Ff for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 22:43:45 +0200 Original-Received: from localhost ([127.0.0.1]:51720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JverM-00088y-Kd for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 16:43:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JverI-00088t-Ne for emacs-devel@gnu.org; Mon, 12 May 2008 16:42:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JverH-00088N-2Y for emacs-devel@gnu.org; Mon, 12 May 2008 16:42:56 -0400 Original-Received: from [199.232.76.173] (port=56224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JverG-00088B-Rv for emacs-devel@gnu.org; Mon, 12 May 2008 16:42:54 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:60333) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JverB-0001qq-QN; Mon, 12 May 2008 16:42:50 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:65113 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Jver9-000245-5d; Mon, 12 May 2008 22:42:48 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080511-0, 2008-05-11), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1Jver9-000245-5d. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Jver9-000245-5d 8c4d7806a717e43d6e3e137fc457b42a X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:97048 Archived-At: Richard M Stallman wrote: > Using Customize to rebind keys would be a good feature to add; > but in order to make this fit in well with Emacs, it should > store the bindings in keymaps. For instance, if you customize > the bindings of Lisp mode, it should do that by altering > the bindings in lisp-mode-map. I think the unit of operation should be something like customize-sparse-keymap with a corresponing custom widget for sparse keymaps. As I wrote before Drew's widget code for key bindings is probably a good base for that code. There are some difficult things to master: - When should the customized keymaps be applied? - How to deal with current code that setup the keymaps? My suggestion would be to apply the customized keymaps at the end of the loading of the file that contains the definition of the keymaps. But I do not know if this is possible.