unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: rms@gnu.org
Subject: Re: alarm_signal_handler is called too frequently
Date: Thu, 04 Nov 2004 14:02:19 +0100	[thread overview]
Message-ID: <418A285B.4030206@swipnet.se> (raw)
In-Reply-To: <E1COzLD-0007tm-V8@fencepost.gnu.org>

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.

  parent reply	other threads:[~2004-11-04 13:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-13  1:15 alarm_signal_handler is called too frequently YAMAMOTO Mitsuharu
2004-10-13 14:43 ` Richard Stallman
2004-10-14  5:16   ` YAMAMOTO Mitsuharu
2004-10-17  9:36     ` YAMAMOTO Mitsuharu
2004-10-25 13:13       ` Richard Stallman
2004-10-25 14:38         ` Jan D.
2004-10-27 10:47           ` Richard Stallman
2004-10-28 18:02             ` Jan D.
2004-10-29  1:37               ` YAMAMOTO Mitsuharu
2004-10-29  7:00                 ` Jan D.
2004-10-29  8:24                   ` YAMAMOTO Mitsuharu
2004-11-01  7:24                   ` Richard Stallman
2004-11-01  9:06                     ` Jan D.
2004-11-01 12:21                       ` Jan D.
2004-11-02 14:08                       ` Richard Stallman
2004-11-02 21:56                         ` Jan D.
2004-11-03 17:04                           ` Richard Stallman
2004-11-03 17:26                             ` Jan D.
2004-11-04 20:42                               ` Richard Stallman
2004-11-04 22:41                             ` Jan D.
2004-11-05 12:36                               ` Kim F. Storm
2004-11-06  5:22                                 ` Richard Stallman
2004-11-04 13:02                         ` Jan D. [this message]
2004-10-31  9:42               ` Richard Stallman
2004-10-31 15:11                 ` Jan D.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=418A285B.4030206@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).