This doesn't work anymore with current 21.5:
;; Prevent accidentally killing emacs.
(global-set-key [(control x) (control c)]
'(lambda ()
(interactive)
(when (y-or-n-p-with-timeout "Do you really want to exit Emacs ? " 4 nil)
(save-buffers-kill-emacs))))
The timer is complaining that nothing is catching his timeout.
Did I miss something?
--
Fabrice