emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: accessible-keymaps gives wrong result for autoloaded prefix keys


From: Stefan Monnier
Subject: Re: accessible-keymaps gives wrong result for autoloaded prefix keys
Date: Tue, 03 Oct 2006 13:29:03 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     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




reply via email to

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