all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Power: blink-cursor-mode is a pig
Date: Fri, 30 Dec 2011 15:46:10 +0100	[thread overview]
Message-ID: <87wr9ekthp.fsf@wanadoo.es> (raw)
In-Reply-To: 87vcoytb53.fsf@gnuvola.org

Thien-Thi Nguyen <ttn@gnuvola.org> writes:

> () Daniel Colascione <dancol@dancol.org>
> () 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	other threads:[~2011-12-30 14:46 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29 23:54 Power: blink-cursor-mode is a pig Daniel Colascione
2011-12-30  3:55 ` Lennart Borgman
2011-12-30 16:54   ` Richard Stallman
2011-12-30  9:10 ` Eli Zaretskii
2011-12-30  9:19   ` Lennart Borgman
2011-12-30  9:20   ` Daniel Colascione
2011-12-30 11:42     ` Eli Zaretskii
2011-12-30 11:58       ` Daniel Colascione
2011-12-30 12:39         ` Daniel Colascione
2011-12-30 15:32         ` Eli Zaretskii
2011-12-30 12:49       ` 山本 光晴
2011-12-30 15:35         ` Eli Zaretskii
2011-12-31  3:47           ` YAMAMOTO Mitsuharu
2011-12-31  7:10             ` Eli Zaretskii
2011-12-31  7:21               ` Daniel Colascione
2011-12-31  7:42                 ` YAMAMOTO Mitsuharu
2011-12-31 10:59                   ` Jan Djärv
2011-12-31  7:42                 ` Eli Zaretskii
2011-12-30 14:37   ` David De La Harpe Golden
2011-12-30 15:37     ` Eli Zaretskii
2011-12-30 13:57 ` Thien-Thi Nguyen
2011-12-30 14:46   ` Óscar Fuentes [this message]
2011-12-31 18:04 ` Chong Yidong
2011-12-31 18:11   ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2011-12-31 12:00 grischka
2011-12-31 14:40 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wr9ekthp.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.