[Top][All Lists]

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

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

From: Chong Yidong
Subject: Re: address@hidden: Re: Crash with mouse-avoidance-mode]
Date: Wed, 09 Aug 2006 09:59:42 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Klaus Zeitler <address@hidden> writes:

>>>>>> "Nick" == Nick Roberts <address@hidden> writes:
>     Nick> 
>     Nick> I don't know about the haywire bit, maybe it's meant to do that, but
>     Nick> the crash was related to sit-for which Chong has already fixed.
> No it's not meant to do that. If you try it first with the default
> mouse-avoidance-animation-delay (0.01), you'll see how it is supposed
> to act. And it does nearly the same with the value I've been using for
> a long time (0.1). But with recent changes (I suspect sit-for) sometimes
> the mouse pointer keeps jumping around or dithering and will not stop as
> long as no new input is entered. Though I'm not sure if this is a Solaris
> specific problem or not.

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.

(BTW, mouse-avoidance-fancy-hook violates the naming conventions, and
should be renamed mouse-avoidance-timer-function.)

I'll check in changes to fix these issues shortly.

reply via email to

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