From: Chong Yidong <cyd@stupidchicken.com>
Cc: Nick Roberts <nickrob@snap.net.nz>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [kzeitler@lucent.com: Re: Crash with mouse-avoidance-mode]
Date: Wed, 09 Aug 2006 09:59:42 -0400 [thread overview]
Message-ID: <87lkpyhuwh.fsf@stupidchicken.com> (raw)
In-Reply-To: <q5gmzaep72i.fsf@sfsw51.de.lucent.com> (Klaus Zeitler's message of "Wed, 09 Aug 2006 11:55:01 +0200")
Klaus Zeitler <kzeitler@lucent.com> writes:
>>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> 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.
next prev parent reply other threads:[~2006-08-09 13:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 23:40 [kzeitler@lucent.com: Re: Crash with mouse-avoidance-mode] Richard Stallman
2006-08-08 23:49 ` Nick Roberts
2006-08-09 9:55 ` Klaus Zeitler
2006-08-09 13:59 ` Chong Yidong [this message]
2006-08-09 14:54 ` Stefan Monnier
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=87lkpyhuwh.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=nickrob@snap.net.nz \
--cc=rms@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).