all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: sit-for
Date: Mon, 31 Jul 2006 00:36:43 +0200	[thread overview]
Message-ID: <m33bci4t50.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <87vepgii8m.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 29 Jul 2006 10:43:53 -0400")

Chong Yidong <cyd@stupidchicken.com> writes:

> The other possibility is some kind of bad timer interaction, in which
> a timer is called during sit-for, but that timer itself contains a
> sit-for, so each sit-for never returns.  But that kind of bug would
> probably have affected the old sit-for implementation too, so this
> seems unlikely.

I don't know if it is related, but from time to time, the cursor
disappears completely (with blinking cursor).  I have not been able to
reproduce this in any reliable way.  This is an old bug, discussed on
the list 1-2 years ago. It still happens with the new sit-for ...


Since wait_read_process_output now has an end_time rather than a
duration, it seems possible to make a check on reentry to
wait_read_process_output whether an "outer" call has an end_time
BEFORE the end_time of the current call ... and do something sensible,
e.g.  modify the current end_time to the same as the outer end_time.

In that way, nested sit-for calls would never make emacs wait longer
than "allowed" by an outer sit-for call.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2006-07-30 22:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-28 21:06 sit-for David Kastrup
2006-07-28 21:48 ` sit-for Chong Yidong
2006-07-29  7:15   ` sit-for David Kastrup
2006-07-29  8:40     ` sit-for David Kastrup
2006-07-29 14:43       ` sit-for Chong Yidong
2006-07-30 22:36         ` Kim F. Storm [this message]
2006-07-31 18:29           ` sit-for Richard Stallman
2006-07-29 23:34       ` sit-for Richard Stallman
2006-07-29 23:34     ` sit-for Richard Stallman
2006-08-02  0:05     ` sit-for Chong Yidong
2006-08-02  6:09       ` sit-for David Kastrup
2006-08-01 16:38 ` sit-for Chong Yidong
2006-08-01 23:24   ` sit-for Kim F. Storm
2006-08-01 23:52     ` sit-for Chong Yidong
2006-08-02  6:06     ` sit-for David Kastrup
2006-08-03 15:50     ` sit-for Richard Stallman

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

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

  git send-email \
    --in-reply-to=m33bci4t50.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.