From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: invisible mouse pointer? Date: Fri, 03 Jul 2009 21:25:41 +0200 Message-ID: <4A4E5B35.20509@swipnet.se> References: <001701c9556c$9e613750$c2b22382@us.oracle.com> <4A4DF06F.8050701@swipnet.se> <83eisx3hlv.fsf@gnu.org> <4A4E2E73.3020706@swipnet.se> <8363e937m0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246649657 12478 80.91.229.12 (3 Jul 2009 19:34:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 19:34:17 +0000 (UTC) Cc: fitzsim@fitzsim.org, drew.adams@oracle.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 03 21:34:10 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MMoWN-0002rP-7c for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 21:34:07 +0200 Original-Received: from localhost ([127.0.0.1]:58098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMoWM-00046Z-GE for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 15:34:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMoSd-0002rp-QJ for emacs-devel@gnu.org; Fri, 03 Jul 2009 15:30:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMoSY-0002pU-LO for emacs-devel@gnu.org; Fri, 03 Jul 2009 15:30:15 -0400 Original-Received: from [199.232.76.173] (port=43011 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMoSY-0002pM-Gp for emacs-devel@gnu.org; Fri, 03 Jul 2009 15:30:10 -0400 Original-Received: from mtah11.telenor.se ([62.127.194.4]:40314) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MMoSW-0006DO-Ji; Fri, 03 Jul 2009 15:30:08 -0400 Original-Received: from iph2.telenor.se (iph2.telenor.se [195.54.127.133]) by mtah11.telenor.se (Postfix) with ESMTP id 61EEA609B8; Fri, 3 Jul 2009 21:25:46 +0200 (CEST) X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvN9AJ74TUpV4S1uPGdsb2JhbACBUZc5AQEBATe0I4QSBQ X-IronPort-AV: E=Sophos;i="4.42,343,1243807200"; d="scan'208";a="25319484" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph2.telenor.se with ESMTP; 03 Jul 2009 21:25:42 +0200 Original-Received: from [172.20.199.5] (winter [172.20.199.5]) by coolsville.localdomain (Postfix) with ESMTPSA id 27D6C7FA07B; Fri, 3 Jul 2009 21:25:42 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) In-Reply-To: <8363e937m0.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:111990 Archived-At: Eli Zaretskii skrev: >> Date: Fri, 03 Jul 2009 18:14:43 +0200 >> From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= >> CC: fitzsim@fitzsim.org, drew.adams@oracle.com, emacs-devel@gnu.org >> >>> Why are we doing this in C, rather than adding the invisible-pointer >>> option to avoid.el? >>> >> Because it uses a timer. The alternative to use a timer is to track mouse >> which is heavy in lisp. > > But avoid.el already does all this, and works just fine. It only does it if you enable it. > >> There is no need to add more CPU-consuming thing to Emacs, it already does far >> too many task over and over again, which isn't really needed. > > Emacs Lisp timers don't consume any CPU cycles. avoid.el checks point 10 times per second. Try doing that without using CPU cycles. avoid.el even says itself at the top: ";; Bugs / Warnings / To-Do: ;; ;; - Using this code does slow Emacs down. "banish" mode shouldn't ;; be too bad, and on my workstation even "animate" is reasonable. " Jan D.