From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Power: blink-cursor-mode is a pig Date: Fri, 30 Dec 2011 14:57:44 +0100 Message-ID: <87vcoytb53.fsf@gnuvola.org> References: <4EFCFDCA.6060802@dancol.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325253504 20547 80.91.229.12 (30 Dec 2011 13:58:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 13:58:24 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 30 14:58:20 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 1RgcyS-00051N-A8 for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 14:58:20 +0100 Original-Received: from localhost ([::1]:56750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgcyR-0003IB-Kv for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 08:58:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgcyO-0003Hs-HW for Emacs-devel@gnu.org; Fri, 30 Dec 2011 08:58:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgcyN-0008Co-EF for Emacs-devel@gnu.org; Fri, 30 Dec 2011 08:58:16 -0500 Original-Received: from smtp206.alice.it ([82.57.200.102]:41233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgcyN-00089e-3G for Emacs-devel@gnu.org; Fri, 30 Dec 2011 08:58:15 -0500 Original-Received: from ambire (79.10.74.167) by smtp206.alice.it (8.6.023.02) id 4ECA607905BDE8D0; Fri, 30 Dec 2011 14:57:31 +0100 Original-Received: from ttn by ambire with local (Exim 4.72) (envelope-from ) id 1Rgcxt-0002gz-3b; Fri, 30 Dec 2011 14:57:45 +0100 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: Genre and OS details not recognized. X-Received-From: 82.57.200.102 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:147055 Archived-At: () Daniel Colascione () Thu, 29 Dec 2011 15:54:50 -0800 Is there an easier way of stopping the blink-cursor timer than plumbing new events through the Emacs core, or turning blink-cursor off? I don't think so. Why don't you try adding a =E2=80=98focus-lost=E2=80=99 event? Another (higher-level) approach is to make Emacs recognize a "go into powersave mode" message (via dbus or whatever). Then, =E2=80=98blink-cursor-mode=E2=80=99 can DTRT w/ the provided hook. Or perhaps you can trigger on the =E2=80=98iconify-frame=E2=80=99 event, but you would need to iconify Emacs for that. This would work well w/ ratpoison, for example.