[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#788: menu indications of key bindings for remapped commands
From: |
Stefan Monnier |
Subject: |
bug#788: menu indications of key bindings for remapped commands |
Date: |
Mon, 16 Mar 2009 15:27:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
>> BTW, shouldn't this remap-handling be done in Fwhere_is_internal
>> rather than in parse_menu_item?
> So, the idea is for Fwhere_is_internal to extract the cache entry (which
> has the form [remap foo]), and follow the remapping before returning the
> value to its caller?
Well, the behavior equivalent to your current code would be to return
nil, but yes, it could also try to "reverse-remap" the command back to
a key binding (being careful to try and avoid infinite cycles).
> Yeah, that might work, though I don't know how much existing code
> depends on the current behavior.
Good point. Let's leave it in parse_menu_item for now, but revisit
it later.
Stefan
bug#788: menu indications of key bindings for remapped commands, Stefan Monnier, 2009/03/15