From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [kzeitler@lucent.com: Re: Crash with mouse-avoidance-mode] Date: Wed, 09 Aug 2006 10:54:30 -0400 Message-ID: References: <17625.8952.768607.630907@kahikatea.snap.net.nz> <87lkpyhuwh.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155135318 2326 80.91.229.2 (9 Aug 2006 14:55:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2006 14:55:18 +0000 (UTC) Cc: Klaus Zeitler , Nick Roberts , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 09 16:55:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GApSU-0001Hv-2u for ged-emacs-devel@m.gmane.org; Wed, 09 Aug 2006 16:54:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GApST-0005cc-In for ged-emacs-devel@m.gmane.org; Wed, 09 Aug 2006 10:54:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GApSC-0005Vn-Rb for emacs-devel@gnu.org; Wed, 09 Aug 2006 10:54:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GApSA-0005Si-Qp for emacs-devel@gnu.org; Wed, 09 Aug 2006 10:54:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GApSA-0005SH-Js for emacs-devel@gnu.org; Wed, 09 Aug 2006 10:54:38 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GApWr-0005FL-Hg; Wed, 09 Aug 2006 10:59:29 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 2A0102CEB7C; Wed, 9 Aug 2006 10:54:37 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D8C4E445C; Wed, 9 Aug 2006 10:54:30 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id AE22B6C801; Wed, 9 Aug 2006 10:54:30 -0400 (EDT) Original-To: Chong Yidong In-Reply-To: <87lkpyhuwh.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 09 Aug 2006 09:59:42 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58227 Archived-At: > 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