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:48 +0200 Message-ID: <4828ABC8.5030201@gmail.com> References: <000301c8b39e$ded16a50$0200a8c0@us.oracle.com><48276D10.6070701@gmail.com><001201c8b3b6$5aa2af10$0200a8c0@us.oracle.com><482775D8.20704@gmail.com><001501c8b3bb$0e33c830$0200a8c0@us.oracle.com> <48277CB7.9080003@gmail.com> <001601c8b3bd$7fb4df10$0200a8c0@us.oracle.com> <48277FD4.9060806@gmail.com> <001701c8b3bf$a05f3a60$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210625046 26929 80.91.229.12 (12 May 2008 20:44:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 20:44:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 22:44:43 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 1Jveso-0002gr-Fs for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 22:44:30 +0200 Original-Received: from localhost ([127.0.0.1]:52112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jves5-00008q-C4 for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 16:43:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JverN-0008AK-8L for emacs-devel@gnu.org; Mon, 12 May 2008 16:43:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JverL-00089k-Tj for emacs-devel@gnu.org; Mon, 12 May 2008 16:43:00 -0400 Original-Received: from [199.232.76.173] (port=56225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JverL-00089g-L6 for emacs-devel@gnu.org; Mon, 12 May 2008 16:42:59 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:48577) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JverL-00022C-An for emacs-devel@gnu.org; Mon, 12 May 2008 16:42:59 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:64817 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JverD-0007pB-81; Mon, 12 May 2008 22:42:51 +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: <001701c8b3bf$a05f3a60$0200a8c0@us.oracle.com> 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 1JverD-0007pB-81. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JverD-0007pB-81 8b8b55d2673728ce0043fb9c634df75e 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:97049 Archived-At: Drew Adams wrote: >>> Only the object of customization can be reverted to its >>> default value, just as only that object can be set or >>> saved. Pieces of the object are not individually >>> subject to these operations. To be able to set, save, or >>> revert a single key description, it would need to have >>> its own defcustom. AFAIK. >> Can't this be handled by saving the original key binding >> together with the new binding? Can't a widget have invisible >> properties to handle this in the custom buffer? > > I really don't know. As I said, I'm no widget wizard. > > I suppose anything is possible. But has anything like that ever been done for > other types of collections? Is it really something we want to get into? > > It doesn't seem to me a big deal to revert all of the edited (or edited and set) > bindings in order to revert a single change you might have made. What it really > comes down to is setting (or saving, depending on the kind of reverting you want > to do) the option each time you change one of the collection members (in this > case, key definitions), before you change another. If you have set (or saved) > the option just before you edit a single member, then reverting will, in effect, > revert only that member. AFAIK. > > I don't know anything about implementing what you mention, but I guess I'm also > questioning whether much would be gained by it. You have a point there. It is much better to concentrate on getting customize-sparse-keymap to work at all.