[Top][All Lists]
[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.
- Re: Power: blink-cursor-mode is a pig, (continued)
- Re: Power: blink-cursor-mode is a pig, Eli Zaretskii, 2011/12/30
- Re: Power: blink-cursor-mode is a pig, YAMAMOTO Mitsuharu, 2011/12/30
- Re: Power: blink-cursor-mode is a pig, Eli Zaretskii, 2011/12/31
- Re: Power: blink-cursor-mode is a pig, Daniel Colascione, 2011/12/31
- Re: Power: blink-cursor-mode is a pig, YAMAMOTO Mitsuharu, 2011/12/31
- Re: Power: blink-cursor-mode is a pig, Jan Djärv, 2011/12/31
- Re: Power: blink-cursor-mode is a pig, Eli Zaretskii, 2011/12/31
Re: Power: blink-cursor-mode is a pig, David De La Harpe Golden, 2011/12/30
Re: Power: blink-cursor-mode is a pig, Thien-Thi Nguyen, 2011/12/30
- Re: Power: blink-cursor-mode is a pig,
Óscar Fuentes <=
Re: Power: blink-cursor-mode is a pig, Chong Yidong, 2011/12/31
Re: Power: blink-cursor-mode is a pig, grischka, 2011/12/31