From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: (kbd) for key bindings Date: Thu, 18 Feb 2010 16:18:48 +0900 Message-ID: References: <87fx50fcc7.fsf@thinkpad.tsdh.de> <20100218032947.GB21339@srevilak.net> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266477547 23640 80.91.229.12 (18 Feb 2010 07:19:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 07:19:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Steve Revilak Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 18 08:19:03 2010 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.69) (envelope-from ) id 1Ni0f6-0006Ok-QJ for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2010 08:19:01 +0100 Original-Received: from localhost ([127.0.0.1]:60729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni0f5-0000yU-Qs for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2010 02:18:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni0ez-0000yP-9C for emacs-devel@gnu.org; Thu, 18 Feb 2010 02:18:53 -0500 Original-Received: from [140.186.70.92] (port=44851 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni0ey-0000yH-7O for emacs-devel@gnu.org; Thu, 18 Feb 2010 02:18:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni0ex-0004d9-90 for emacs-devel@gnu.org; Thu, 18 Feb 2010 02:18:51 -0500 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:41469) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni0ew-0004d1-Qc; Thu, 18 Feb 2010 02:18:51 -0500 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id o1I7Im14001363; Thu, 18 Feb 2010 16:18:48 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Thu, 18 Feb 2010 16:18:48 +0900 Original-Received: from dhlpc061 ([10.114.112.73] [10.114.112.73]) by relay11.aps.necel.com with ESMTP; Thu, 18 Feb 2010 16:18:48 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 6626C52E1F2; Thu, 18 Feb 2010 16:18:48 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: <20100218032947.GB21339@srevilak.net> (Steve Revilak's message of "Wed, 17 Feb 2010 22:29:48 -0500") Original-Lines: 19 X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) 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:121184 Archived-At: Steve Revilak writes: > I'd never heard of (kbd) before, but I like that representation a lot. > It's the same syntax that describe-key outputs, and it's also the same > syntax that people use when writing about emacs key bindings (e.g., > the emacs tutorial). If you understand what "C-x C-f" means, then you > basically know how to supply arguments to kbd. I'm not sure kbd is really the best "universal solution" though. The fact that it's a macro can be annoying and surprising (you can't funcall it, for instance) and its key syntax seems worryingly ad-hoc -- the "output format" that kbd purports to parse is meant for easy human readability, not unambiguous machine parsing. -Miles -- Happiness, n. An agreeable sensation arising from contemplating the misery of another.