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: defcustom :type to use for a key sequence? Date: Fri, 16 Dec 2005 12:46:18 -0500 Message-ID: References: <43A16BDF.6020608@student.lu.se> <43A1943C.804@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134767140 5401 80.91.229.2 (16 Dec 2005 21:05:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 21:05:40 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 22:05:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnMl3-00051h-4n for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2005 22:04:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnMc9-0000Cr-Sp for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2005 15:55:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EnJhD-0006hx-Hp for emacs-devel@gnu.org; Fri, 16 Dec 2005 12:48:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EnJhB-0006hO-Fp for emacs-devel@gnu.org; Fri, 16 Dec 2005 12:48:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnJh6-0006gg-Bw for emacs-devel@gnu.org; Fri, 16 Dec 2005 12:48:36 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnJjY-0002Xm-R1 for emacs-devel@gnu.org; Fri, 16 Dec 2005 12:51:08 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EnJes-0005yk-Vo; Fri, 16 Dec 2005 12:46:19 -0500 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:47888 Archived-At: I still think it would make a lot of sense to make :type key-sequence edit a string rather than a sexp. The actual value would still be a vector or string, but before editing it would be passed through "key-description" to give the string to edit, and after editing the string would be passed through "kbd" (aka "read-kbd-macro") to make the value to save in the variable. That could be a big improvement. Would you like to do it? This is a new feature (isn't it? please correct me if I'm wrong), so fixing it now to work well when first released is appropriate. It would be great if there was some way to actually press the keys to insert, rather than to have to spell them out -- is there some way to bind a key to have a special meaning while editing such a string? E.g. to add C-M-S-$ to the string, one could press e.g. C-u C-M-S-$ That could also be a big improvement, but how to reconcile these two features? It could appear as a string, with a box which you click on to enter a new key by typing it.