From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Power: blink-cursor-mode is a pig Date: Sun, 01 Jan 2012 02:04:30 +0800 Message-ID: <87boqoipn5.fsf@gnu.org> References: <4EFCFDCA.6060802@dancol.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325354687 565 80.91.229.12 (31 Dec 2011 18:04:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 18:04:47 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 31 19:04:43 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rh3IQ-00054n-Vc for ged-emacs-devel@m.gmane.org; Sat, 31 Dec 2011 19:04:43 +0100 Original-Received: from localhost ([::1]:43898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rh3IP-0004kY-Kb for ged-emacs-devel@m.gmane.org; Sat, 31 Dec 2011 13:04:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rh3IN-0004kT-Tk for Emacs-devel@gnu.org; Sat, 31 Dec 2011 13:04:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rh3IM-0006Xq-LX for Emacs-devel@gnu.org; Sat, 31 Dec 2011 13:04:39 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rh3IM-0006Xm-ED for Emacs-devel@gnu.org; Sat, 31 Dec 2011 13:04:38 -0500 Original-Received: from bb121-6-180-194.singnet.com.sg ([121.6.180.194]:54262 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rh3IL-0001Qz-BN; Sat, 31 Dec 2011 13:04:38 -0500 In-Reply-To: <4EFCFDCA.6060802@dancol.org> (Daniel Colascione's message of "Thu, 29 Dec 2011 15:54:50 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147101 Archived-At: Daniel Colascione writes: > blink-cursor-mode uses an idle timer to activate a regular timer that > blinks the cursor every 500ms. While an Emacs frame has focus, we want > this timer to run so that we can make the cursor blink. The problem is > that although the cursor stops blinking when Emacs loses focus, the > timer keeps running because Emacs has no idea it lost focus and doesn't > know it can turn off the timer. The unnecessary Emacs wakeups caused by > this timer waste power. On the Gnome terminal, the cursor stops blinking after ten blinks (edits, X window selection, and cursor motion cause the blinking to resume). I think this idea is a reasonable one for us copy, and it would eliminate the power wasting problem.