emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: Re: Crash with mouse-avoidance-mode]


From: Stefan Monnier
Subject: Re: address@hidden: Re: Crash with mouse-avoidance-mode]
Date: Wed, 09 Aug 2006 10:54:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I think this is an avoid.el bug that only surfaced with the new
> sit-for.  mouse-avoidance-mode works by activating a timer to run
> mouse-avoidance-fancy-hook every 0.1 seconds.  If the animation delay
> is long, the timer can run again in the middle of the animation, which
> nudges the mouse pointer in another random direction.

> The way to solve this is to introduce a variable
> mouse-avoidance-animating-pointer which is non-nil while animating the
> mouse, and making mouse-avoidance-fancy-hook do nothing if
> mouse-avoidance-animating-pointer is non-nil.

Or to turn this repeated timer into a one-shot timer which is manually
re-created at the end of the animation step, so that the 0.1s refers not to
the interval between the beginning of each animation step but between the
end of one and the beginning of the next.


        Stefan




reply via email to

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