>     I don't understand why you need accessible-keymaps at all, then.
>     E.g. before C-x is entered, you don't need to know that there's another
>     prefix on C-x v.

> Yes, it's true that I only need to know one level at a time. (That's why I
> said that ([f2] . 2C-comand) would be enough for me. When the user chooses
> that completion candidate, keymap `2C-command' is used, and so on.)

> I don't know a function that will give me that one-level info, however;
> `accessible-keymaps' seems to be the only thing of that kind, even if it's
> perhaps overkill here. Suggestions welcome.

(let ((maps nil))
  (map-keymap (lambda (key map)
                (if (keymapp map) (push (cons key map) maps)))
              <foo>)
  maps)


        Stefan


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to