I can't say why the do_timer argument is different, the modification was made
by you almost 2 years ago:
Judging by the date when I made the change, I was probably looking at
bug reports saved up from the previous months. I didn't mail the
patch to anyone at the time.
Perhaps it has to do with y-or-n-p-with-timeout.
Can that operate with a dialog? If so, it now won't work
correctly; the timeout will be ignored. We could make
the timeout work once again using some other mechanism,
I guess.
From: Järneström Jonas
Subject: y-or-n-p-with-timeout fails when using dialog box input
Date: Mon, 16 Dec 2002 18:31:35 +0100 (MET)
In GNU Emacs 20.7.1 (sparc-sun-solaris2.8, X toolkit)
of Tue Jan 16 2001 on sunray8.era-a.ericsson.se
configured using `configure --prefix=/usr/bag/emacs/20.7
--datadir=/usr/bag/emacs/share'
See the funs below.
When I run the first one, timeout never happens.
When I run the second one, timeout works ok.
Why dont I get the timeout when using the dialog box input method?
Thanks,
Jonas Jarnestrom
(defun dialog-box-timeout-never-happens ()
(let* ((last-nonmenu-event nil))
(y-or-n-p-with-timeout "prompt" 3 'timeout)))
(defun minibuffer-timeout-works ()
(let* ((foo nil))
(y-or-n-p-with-timeout "prompt" 3 'timeout)))