all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 6355@debbugs.gnu.org
Subject: bug#6355: 24.0.50; sit-for 0.0 returns nil without user input
Date: Sat, 5 Jun 2010 08:17:39 -0700	[thread overview]
Message-ID: <96D9702388274489BC359D8CD6629D00@us.oracle.com> (raw)

I see this problem systematically starting with Emacs 22 but never with
Emacs 20 or 21.
 
If the sit-for value is 0.0, then it can return nil even without user
input.  If the value is ever so slightly more than 0.0, e.g. 0.001, then
there is no problem.
 
This is using source code, not byte-compiled code, so it's not a
byte-compiler optimization that is causing the problem.
 
I do not have an emacs -Q recipe.  If you just eval (sit-for 0.0) it
returns t.  Executing some of the surrounding code I use also does not
reproduce the problem.  But in my setup (too much to reproduce) it
always returns nil for 0.0.
 
Dunno if maybe it's picking up some non-user event as if it were input.
I do know that without user input the return value is nil (in my
context).

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-05-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
 






             reply	other threads:[~2010-06-05 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-05 15:17 Drew Adams [this message]
2014-02-01  9:07 ` bug#6355: 24.0.50; sit-for 0.0 returns nil without user input Lars Ingebrigtsen
2015-12-25 23:05   ` Lars Ingebrigtsen
2015-12-25 23:12     ` Drew Adams

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=96D9702388274489BC359D8CD6629D00@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=6355@debbugs.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.