Subject: Re: bug#4093: Overlay keymap and timers

From: Stefan Monnier <[email-masked]>
Date: Thu, 13 Aug 2009 13:33:24 -0400

> Indeed, that function looks frightening.

I hoped you'd find it challenging.  Oh well!

> It's worth noting that XEmacs doesn't have this problem.

IIRC XEmacs's equivalent function restarts the whole work after every
event, so they look up the keymaps anew, and look them all up anew
(kind of like always jumping back to replay_sequence except that it
additionally recomputes the active keymaps).

> But the code differs drastically..

Yes, the algorithm is completely different.
I have a feeling it's related to the "frightening" above... nah!

        Stefan