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: Blink cursor changes, possible W32 breakage. Date: Tue, 16 Jul 2013 23:12:49 +0200 Message-ID: <6B4F86F0-164D-4CBE-8CD2-9BC9326451C4@swipnet.se> References: <83oba22ymd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374009185 10433 80.91.229.3 (16 Jul 2013 21:13:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 21:13:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 23:13:07 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 1UzCYR-00013e-IE for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 23:13:03 +0200 Original-Received: from localhost ([::1]:47691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCYR-0004uh-4D for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 17:13:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCYJ-0004u1-DM for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:13:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzCYI-0000cA-4a for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:12:55 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:38005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCYH-0000aT-Tq for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:12:54 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 8D5F998FD for ; Tue, 16 Jul 2013 23:12:50 +0200 (CEST) Original-Received: (qmail 21657 invoked by uid 89); 16 Jul 2013 21:12:50 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 16 Jul 2013 21:12:50 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 368741A1B6A; Tue, 16 Jul 2013 21:12:50 +0000 (UTC) In-Reply-To: <83oba22ymd.fsf@gnu.org> X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 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:161948 Archived-At: Hello. 16 jul 2013 kl. 19:39 skrev Eli Zaretskii : >> From: Jan Dj=E4rv >> Date: Tue, 16 Jul 2013 13:48:49 +0200 >>=20 >> Just a heads up, I changed blink cursor in two ways, one is that it = stops blinking after blinking >> blink-cursor-blinks number of times (10 by default), as inspired by = gnome-terminal. Also, timers are stopped when no blinking occurs. >=20 > Why do we want that? Is there a way to get previous behavior? To stop blink timers when there are no blinking cursors. Put the = variable to 0 to get previous behaviour, i.e. never stop blinking. >=20 >> This works on NS and X but not on W32. I tried to be careful to not = break W32, but it might happen anyway. If anybody wants to implement = this for W32, you basically need to implement generating a = FOCUS_OUT_EVENT, like xterm,c and nsterm.m does and adjust those places = in keyboard.c and frame.el that checks for X and NS only. >=20 > Sorry, I don't understand: w32 already implements the equivalent of > FOCUS_OUT_EVENT, but why is that relevant? When no frame has focus, > Emacs on Windows doesn't blink the cursors already. 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, = if needed. This was discussed a long time ago, starting here: http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00640.html. > What am I missing? >=20 > And what is the other thing you changed? 1) Blinking stops after 10 blinks. 2) Timers are stopped when no blinking is done. Jan D.