emacs-devel
[Top][All Lists]
Advanced

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

Re: alarm_signal_handler is called too frequently


From: Jan D.
Subject: Re: alarm_signal_handler is called too frequently
Date: Thu, 04 Nov 2004 14:02:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040916

Richard Stallman wrote:
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.

I think that is the case, there was a bug report on bug-gnu-emacs about it 4 days before the checkin,
http://lists.gnu.org/archive/html/bug-gnu-emacs/2002-12/msg00062.html:

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

        Jan D.




reply via email to

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