[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scanning keymaps for keybindings
From: |
Pascal J. Bourguignon |
Subject: |
Re: Scanning keymaps for keybindings |
Date: |
Wed, 08 Dec 2010 15:35:15 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Elena <egarrulo@gmail.com> writes:
> I'd like to remap some keybindings in different contexts, for
> consistency.
>
> I've read the relevant section of the Elisp manual, but it seems there
> is no way to list all keymaps variables for a search. `current-active-
> maps' returns the value of keymaps, not keymaps' variables' names.
>
> I think I could list all variables and then pattern match them against
> ".*-map$". `describe-variable' lists variables, but I've not been
> able to extract the variable listing code.
>
> Any help? Thanks.
Keymaps are first class objects.
Somehow, I doubt you understand the implication of that sentence...
It means that there may exist a lot of keymaps that are not bound to any
variable, but that will nontheless be activated upon a mode change (and
then accessible via the current-active-maps function).
More over, a mode may very well compute its keymaps dynamically, when it
is activated or at some other time.
So there is no way to get an exhaustive list of keymaps with a static
analysis. All you can do is to try to collect some keymap objects at
some specific time. And perhaps try again later.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
- Re: Scanning keymaps for keybindings, (continued)
- Re: Scanning keymaps for keybindings, despen, 2010/12/08
- Re: Scanning keymaps for keybindings, Elena, 2010/12/08
- Re: Scanning keymaps for keybindings, despen, 2010/12/08
- Re: Scanning keymaps for keybindings, Elena, 2010/12/08
- Re: Scanning keymaps for keybindings, despen, 2010/12/08
- Re: Scanning keymaps for keybindings, Andreas Politz, 2010/12/08
- Re: Scanning keymaps for keybindings, Elena, 2010/12/08
- Re: Scanning keymaps for keybindings, Tim X, 2010/12/08
- Re: Scanning keymaps for keybindings, Elena, 2010/12/08
- Re: Scanning keymaps for keybindings, Tim X, 2010/12/08
Re: Scanning keymaps for keybindings,
Pascal J. Bourguignon <=
Re: Scanning keymaps for keybindings, Stefan Monnier, 2010/12/08