emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Power: blink-cursor-mode is a pig


From: Óscar Fuentes
Subject: Re: Power: blink-cursor-mode is a pig
Date: Fri, 30 Dec 2011 15:46:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> () Daniel Colascione <address@hidden>
> () 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?

One easy thing to do (at the Elisp user level) is to turn off
blink-cursor-mode off after N seconds of inactivity. That has the
advantage of working while Emacs has the focus too.

> I don't think so.
>
> Why don't you try adding a ‘focus-lost’ event?
>
> Another (higher-level) approach is to make Emacs recognize
> a "go into powersave mode" message (via dbus or whatever).
> Then, ‘blink-cursor-mode’ can DTRT w/ the provided hook.

Such event makes no sense. AFAIK it is a CPU feature, with the OS having
a marginal involvement. Then, it is turned off when significant CPU
activity arises, which is, precisely, what an event handler would cause
(that's why the OP is trying to turn off the timer associated with
blink-cursor-mode.)

> Or perhaps you can trigger on the ‘iconify-frame’ event,
> but you would need to iconify Emacs for that.  This would
> work well w/ ratpoison, for example.

IMO with ratpoison and similar window managers only a minority of Emacs
users would be coveverd.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]