bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

y-or-n-p-with-timeout fails when using dialog box input


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)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]