emacs-devel
[Top][All Lists]
Advanced

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

Re: read-event and unexpected buffer changes


From: Stefan Monnier
Subject: Re: read-event and unexpected buffer changes
Date: Thu, 23 May 2013 13:31:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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



reply via email to

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