From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Tweak to key-description for menu bindings Date: Wed, 02 Mar 2005 00:36:18 +0100 Message-ID: References: <1814.220.255.78.196.1108996512.squirrel@220.255.78.196> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109720206 20819 80.91.229.2 (1 Mar 2005 23:36:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2005 23:36:46 +0000 (UTC) Cc: Chong Yidong , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 00:36:45 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6Gur-0001JF-9L for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 00:36:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6HDV-0003qZ-BA for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2005 18:55:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6H9F-0002qD-8P for emacs-devel@gnu.org; Tue, 01 Mar 2005 18:51:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6H92-0002hW-0b for emacs-devel@gnu.org; Tue, 01 Mar 2005 18:51:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6H91-0002hM-Kn for emacs-devel@gnu.org; Tue, 01 Mar 2005 18:51:15 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D6GuY-000651-Bs; Tue, 01 Mar 2005 18:36:18 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id E9CCB47FE05; Wed, 2 Mar 2005 00:36:12 +0100 (CET) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Mon, 28 Feb 2005 13:55:30 +0100") 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34015 David Kastrup writes: >> New: >> Options=>Mule (Multilingual Environment)=>Set Coding Systems=>For Next Command >> >> >> Shall I install this? > > My vote is "yes". So far, only two votes in favour -- and one against. > However, I would also want to suggest that such > pretty-printed key sequences can, as some sort of a general principle, > be passed to the kbd macro Would be nice, but it is very hard to do. Whereas kbd can easily parse into a vector [menu-bar bla bla bla], there is no easy way to parse Bla This=>Bla That=>Bla Bla into the same vector without actually looking up those strings in the keymaps -- and we don't currently have C-level functions to do that, so we would have to implement a lot of the keymap lookup code in Lisp to support that. > to make a target for define-key, so that > the developer can be spared having to switch on his brain as often as > possible. I don't know how feasible this is as kbd is a macro, and > the lookup could depend on the keymaps currently active or something. This is addressed in the patch I posted yesterday: If you enter C-h k <...select a menu item...> to look at a menu entry, the resulting *Help* buffer contains a line Menu binding: that the user-with-switched-off-brain can copy/paste into a kbd arg. -- Kim F. Storm http://www.cua.dk