emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking up a submenu keymap in a menu keymap, when the submenu key i


From: Stefan Monnier
Subject: Re: looking up a submenu keymap in a menu keymap, when the submenu key is a string
Date: Mon, 09 Oct 2006 12:57:15 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I map over a keymap with `map-keymap', so I have the `event' and `binding'
> arguments. I build an alist of (name . binding) pairs, where `name' is a
> string that includes external names of the key and its command, or "..." for
> a prefix map - examples:

>  "C-a  =  beginning-of-line"
>  "C-x  = ..."

So that's why you rely crucially on read-kbd-macro being an exact inverse of
single-key-description?  Sounds like bad design.  Why not return an alist of
the form (name key binding) so you can always trivially recover the `key'
from the name, without even using read-kbd-macro?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]