From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Blink cursor changes, possible W32 breakage. Date: Wed, 17 Jul 2013 07:04:33 +0300 Message-ID: <8361w93k8e.fsf@gnu.org> References: <83oba22ymd.fsf@gnu.org> <6B4F86F0-164D-4CBE-8CD2-9BC9326451C4@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1374033902 16685 80.91.229.3 (17 Jul 2013 04:05:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2013 04:05:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 17 06:05:04 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UzIz9-0007X7-Cd for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2013 06:05:03 +0200 Original-Received: from localhost ([::1]:35615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzIz8-0001jr-UX for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2013 00:05:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzIz3-0001jb-T6 for emacs-devel@gnu.org; Wed, 17 Jul 2013 00:04:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzIyz-0008N5-Kl for emacs-devel@gnu.org; Wed, 17 Jul 2013 00:04:57 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:35052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzIyz-0008Mi-Cs for emacs-devel@gnu.org; Wed, 17 Jul 2013 00:04:53 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MQ200J00B85PT00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Wed, 17 Jul 2013 07:04:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MQ200JLABBFJC90@a-mtaout21.012.net.il>; Wed, 17 Jul 2013 07:04:27 +0300 (IDT) In-reply-to: <6B4F86F0-164D-4CBE-8CD2-9BC9326451C4@swipnet.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:161959 Archived-At: > From: Jan Dj=E4rv > Date: Tue, 16 Jul 2013 23:12:49 +0200 > Cc: emacs-devel@gnu.org >=20 > > Sorry, I don't understand: w32 already implements the equivalent = of > > FOCUS_OUT_EVENT, but why is that relevant? When no frame has foc= us, > > Emacs on Windows doesn't blink the cursors already. >=20 > Yes, but timers are still running, so Emacs are never swapped out, = and drains battery on laptops (yes it makes a difference). The FOCUS= _OUT_EVENT turns timers off, and FOCUS_IN_EVENT turns them back on, i= f needed. This was discussed a long time ago, starting here: > http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00640.html= . If you only stop the timers that blink the cursor, then this isn't going to fix the problem. There's any number of timers active at any given time in any non-trivial Emacs session. You need to stop them all, or the battery drain will continue.