From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: defcustom :type to use for a key sequence? Date: Tue, 20 Dec 2005 16:06:35 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135102007 6954 80.91.229.2 (20 Dec 2005 18:06:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 18:06:47 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 20 19:06:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eolpx-000241-Oy for ged-emacs-devel@m.gmane.org; Tue, 20 Dec 2005 19:03:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eolqs-0004TD-1U for ged-emacs-devel@m.gmane.org; Tue, 20 Dec 2005 13:04:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eoj5z-0007R6-Pi for emacs-devel@gnu.org; Tue, 20 Dec 2005 10:08:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eoj5x-0007Ok-AX for emacs-devel@gnu.org; Tue, 20 Dec 2005 10:08:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eoj5v-0007NW-3u for emacs-devel@gnu.org; Tue, 20 Dec 2005 10:08:03 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eoj93-0005Lj-Lz for emacs-devel@gnu.org; Tue, 20 Dec 2005 10:11:17 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id A423147FED0; Tue, 20 Dec 2005 16:07:05 +0100 (CET) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Thu, 15 Dec 2005 16:51:08 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:48095 Archived-At: "Drew Adams" writes: > Obviously, I'm not real clear on `kbd'. I don't find the Elisp manual too > helpful on that either. True. > If the external string (print) representation were used, as I think you > suggest, then users would need to know the various string representations. > That sounds like a good way to go. However, IMO, the presentation in the > Elisp manual would need to be a bit better, if we start expecting users to > use things like "" vs "S-TAB" to define bindings. With the patch I just sent, you can customize the-key by pressing C-q followed by the actual key chord. So if you press shift+tab, it inserts "the right thing" whether or "S-TAB" is needed. > > Also, would the Emacs (not just Elisp) manual then also need to describe the > string (print) representations? Maybe it's normal that only the Elisp manual > describes key-binding syntax, but if we expect Customize users to specify > key sequences using string (print) representations, then they will need to > know the syntax. They just need to know about C-q ... > I'd like to see a good, clear description of how to specify any and all > bindings with `kbd'. Me too... Let's hope someone volounteers to write it! -- Kim F. Storm http://www.cua.dk