From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David.Kastrup@t-online.de (David Kastrup) Newsgroups: gmane.emacs.devel Subject: Re: Will default key bindings spell the death of Emacs? Date: 03 Jun 2003 00:05:21 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3ED67422.7060305@math.ku.dk> <20030529214728.GA24984@gnu.org> <200305300010.h4U0AiNY018227@rum.cs.yale.edu> <84r86hggd8.fsf@lucy.is.informatik.uni-duisburg.de> <3ED79506.5050604@yahoo.com> <848ysow6o7.fsf@lucy.is.informatik.uni-duisburg.de> <3EDBC154.40009@yahoo.com> Reply-To: dak@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054591614 28397 80.91.224.249 (2 Jun 2003 22:06:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 22:06:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 03 00:06:52 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MxS8-0007Nl-00 for ; Tue, 03 Jun 2003 00:06:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Mxiv-0004pm-00 for ; Tue, 03 Jun 2003 00:24:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MxSg-0005Ju-Ap for emacs-devel@quimby.gnus.org; Mon, 02 Jun 2003 18:07:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19MxRv-0004ob-I0 for emacs-devel@gnu.org; Mon, 02 Jun 2003 18:06:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MxRm-0004bX-3u for emacs-devel@gnu.org; Mon, 02 Jun 2003 18:06:30 -0400 Original-Received: from mailout11.sul.t-online.com ([194.25.134.85]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MxQn-0003xY-Kt for emacs-devel@gnu.org; Mon, 02 Jun 2003 18:05:29 -0400 Original-Received: from fwd11.aul.t-online.de by mailout11.sul.t-online.com with smtp id 19MxQl-0005dN-03; Tue, 03 Jun 2003 00:05:27 +0200 Original-Received: from localhost.localdomain (TtjQprZfgeu8TaXFXyte1Jx1DEtFCz+yoVKQoF5eo5HGBmcYPntJrB@[62.226.11.250]) by fwd11.sul.t-online.com with esmtp id 19MxQi-0G1VhY0; Tue, 3 Jun 2003 00:05:24 +0200 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h52M5MEL016180; Tue, 3 Jun 2003 00:05:23 +0200 Original-Received: (from dak@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id h52M5MH7016176; Tue, 3 Jun 2003 00:05:22 +0200 Original-To: Kevin Rodgers In-Reply-To: <3EDBC154.40009@yahoo.com> Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Seen: false X-ID: TtjQprZfgeu8TaXFXyte1Jx1DEtFCz+yoVKQoF5eo5HGBmcYPntJrB@t-dialin.net X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14600 Kevin Rodgers writes: > How about: > > > (kbd (read-string "Key (`kbd' format): ")) > > That seems to require the following patch; is this a known bug in `kbd'? > > *** emacs-21.3/lisp/subr.el.orig Fri Oct 18 19:21:10 2002 > --- emacs-21.3/lisp/subr.el Mon Jun 2 15:25:36 2003 > *************** > *** 438,444 **** > "Convert KEYS to the internal Emacs key representation. > KEYS should be a string constant in the format used for > saving keyboard macros (see `insert-kbd-macro')." > ! (read-kbd-macro keys)) > > (put 'keyboard-translate-table 'char-table-extra-slots 0) > > --- 438,444 ---- > "Convert KEYS to the internal Emacs key representation. > KEYS should be a string constant in the format used for > saving keyboard macros (see `insert-kbd-macro')." > ! `(read-kbd-macro ,keys)) > > (put 'keyboard-translate-table 'char-table-extra-slots 0) Well, what about "KEYS should be a string constant" don't you understand? It is documented right there in the piece you have quoted in the patch, and it is probably this way for efficiency reasons. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum