From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Power: blink-cursor-mode is a pig Date: Sat, 31 Dec 2011 12:47:19 +0900 Message-ID: <73A8B027-572E-4A53-A672-679C6CE689F4@math.s.chiba-u.ac.jp> References: <4EFCFDCA.6060802@dancol.org> <831urmv30g.fsf@gnu.org> <4EFD826D.2060309@dancol.org> <83pqf6theu.fsf@gnu.org> <677E3CA4-7D51-46AA-A499-0ECCDF828847@math.s.chiba-u.ac.jp> <83k45et6mj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325303290 24139 80.91.229.12 (31 Dec 2011 03:48:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 03:48:10 +0000 (UTC) Cc: dancol@dancol.org, Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 31 04:48:06 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 1RgpvS-0003iK-40 for ged-emacs-devel@m.gmane.org; Sat, 31 Dec 2011 04:48:06 +0100 Original-Received: from localhost ([::1]:33388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgpvQ-0002mT-9Y for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 22:48:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgpvM-0002mN-TJ for Emacs-devel@gnu.org; Fri, 30 Dec 2011 22:48:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgpvL-0007Ya-GK for Emacs-devel@gnu.org; Fri, 30 Dec 2011 22:48:00 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:49978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgpvL-0007Y4-42; Fri, 30 Dec 2011 22:47:59 -0500 Original-Received: from [192.168.1.22] (p5036-ipad01akita.akita.ocn.ne.jp [218.224.25.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTPSA id 90B51C055D; Sat, 31 Dec 2011 12:47:53 +0900 (JST) In-Reply-To: <83k45et6mj.fsf@gnu.org> X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 133.82.132.2 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:147072 Archived-At: On 2011/12/31, at 0:35, Eli Zaretskii wrote: >> What Daniel is trying to would be to make this timeout 100k sec >> while there are no focused frames by suspending the timer for >> blink-cursor-mode. > > And I'm saying we can do that on the C level, because that is the > level where the timeout for `select' is computed. I didn't say anything about a particular way of solving this problem. I just explained why turning off the timers avoid wasting power because you said, "Turning off the timer does not prevent the above-mentioned loop from running. So how would this avoid wasting power?" BTW, stopping/suspending timers does not avoid Emacs to wake up in a short period on some ports, depending on how its `select' emulation is implemented. At least, this applies to the NS port because it does periodic polling inside its `select' implementation when there are some subprocesses or network connections. The Mac port does not have this drawback. I'm not sure about the W32 port. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp