Hrvoje Niksic <hniksic(a)srce.hr> writes:
> The behavior now may be correct, but that doesn't mean it
can't be
> improved. (I can think of several options: for example, defining a
> key to be 'undefined could override the value of
> retry-undefined-key-binding-unshifted, or the value of this variable
> could be "local" to each keymap.
Yes, that would be useful indeed. Like a "keymap property". Except
that it's non-trivial to do, because keymaps actually hold subkeymaps,
and the property should be propagated correctly.
What is wrong with the "if explicitly bound to 'undefined do not do
the lookup' solutions? It is even FSF compatible. On the face up it it
doesn't seem that difficult.
Just move the Qundefined -> Qnil mapping done in
process_event_binding_result in the call to event_binding, to somewhat
higher up. Maybe even add a an extra parameter to event_binding to
tell it whether to do the mapping, but that should bit.
Jan