Subject: Overlay keymap and timers
From: Mihai Bazon <[email-masked]>
To: [email-masked]
Date: Sun, 9 Aug 2009 16:49:30 +0300

Actually, it seems it hasn't anything to do with overlays:

(defun my-set-keymap-with-timer ()
  (interactive)
  (run-with-timer 0.5 nil (lambda()
                            (use-local-map my-keymap)
                            (message "Done setting keymap"))))

If we eval the following and M-x my-set-keymap-with-timer, the keymap
will only be enforced after the first keypress (i.e. first press of M-n
says "M-n is undefined", but subsequently it works).

Found another thread about this issue here:

   http://www.mail-archive.com/[email-masked]/msg12003.html

Stallman says "we should consider that a serious problem". ;-)

Cheers,
-Mihai