From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: customizing key definitions with Customize Date: Thu, 15 May 2008 13:39:59 -0400 Message-ID: References: <000301c8b39e$ded16a50$0200a8c0@us.oracle.com><003701c8b438$9d6e9f20$0200a8c0@us.oracle.com> <005b01c8b582$a65874d0$0200a8c0@us.oracle.com> <002601c8b645$3c715c80$0200a8c0@us.oracle.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1210873284 30357 80.91.229.12 (15 May 2008 17:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 17:41:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 15 19:42:01 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 1JwhSq-0006BQ-SB for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 19:42:01 +0200 Original-Received: from localhost ([127.0.0.1]:47694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwhS7-0007gM-CJ for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 13:41:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwhRy-0007Zp-DK for emacs-devel@gnu.org; Thu, 15 May 2008 13:41:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwhRw-0007Wt-It for emacs-devel@gnu.org; Thu, 15 May 2008 13:41:05 -0400 Original-Received: from [199.232.76.173] (port=46823 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwhRw-0007WZ-9b for emacs-devel@gnu.org; Thu, 15 May 2008 13:41:04 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:37053) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwhRv-0007Ls-Kg for emacs-devel@gnu.org; Thu, 15 May 2008 13:41:03 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JwhQt-0005KH-Fc; Thu, 15 May 2008 13:39:59 -0400 In-reply-to: <002601c8b645$3c715c80$0200a8c0@us.oracle.com> (drew.adams@oracle.com) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:97222 Archived-At: Command `custom-create-keymap-option' creates a user option of the same = name as its keymap argument, but with `-defs' appended. E.g., M-x custom-create-keymap-option RET bookmark-map We should not ask _users_ to type any commands to make a map customizable. Rather, all the keymaps that Emacs knows about should be known to Custom as well. So anything that has to be done in order to make a keymap known to Custom should be done in the Lisp code. It would make sense to have a command `customize-keymap' as a user interface for running Custom to customize one particular keymap. But we also should be able to include keymaps in custom groups. Unlike faces, keymaps, apart from keymap-valued variables, do not have names, so the approach I suggested makes sense: customize keymap variables, not "first-class" keymap objects. If that works out conveniently, I am not against it. It would be nice if the macros for defining major modes were connected to this, so that all the keymaps were customizable.