From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: read-event and unexpected buffer changes
Date: Thu, 23 May 2013 13:31:59 -0400 [thread overview]
Message-ID: <jwvvc69fvtk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zjwigzg6.fsf@dex.adm.naquadah.org> (Julien Danjou's message of "Sun, 28 Apr 2013 22:41:45 +0200")
> (let ((event (let (unread-command-events) (read-event nil nil 0.1))))
> (when (and event (not (ignore-errors (dbus-check-event event))))
> (setq unread-command-events
> (append unread-command-events (list event)))))))
Why not use sit-for?
> But because of this `read-event' call, the buffer is "recentered to the
> top" and I finally see this instead:
The only expected side-effect is a redisplay (which could also trigger
things like jit-lock).
> Hint?
Sorry,
Stefan
next prev parent reply other threads:[~2013-05-23 17:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-28 20:41 read-event and unexpected buffer changes Julien Danjou
2013-05-23 17:31 ` Stefan Monnier [this message]
2013-05-24 12:22 ` Michael Albinus
2013-05-24 15:48 ` DBus events processing (was: read-event and unexpected buffer changes) Stefan Monnier
2013-05-24 22:08 ` DBus events processing Michael Albinus
2013-05-25 1:54 ` Stefan Monnier
2013-05-27 11:59 ` read-event and unexpected buffer changes Michael Albinus
2013-05-27 12:28 ` Julien Danjou
2013-05-27 12:42 ` Michael Albinus
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=jwvvc69fvtk.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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 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).