From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#17349: 24.3.50; display-battery-mode stops updating after closing and reopening lid Date: Sun, 27 Apr 2014 09:59:09 +0200 Message-ID: <8738gzkxte.fsf@yahoo.fr> References: <87d2g3lth0.fsf@yahoo.fr> <874n1f4xzq.fsf@micropit.couberia.selfip.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398585629 14675 80.91.229.3 (27 Apr 2014 08:00:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 08:00:29 +0000 (UTC) Cc: Nicolas Richard , Barry OReilly , 17349@debbugs.gnu.org To: Peter =?UTF-8?Q?M=C3=BCnster?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 10:00:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WeK0b-0005Ch-6t for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 10:00:21 +0200 Original-Received: from localhost ([::1]:38317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeK0a-0008Mr-Ue for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 04:00:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeK0R-0008Mj-C6 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:00:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeK0J-0007Qu-Sl for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:00:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeK0J-0007Qb-QL for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeK0J-0005JZ-BP for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 08:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17349 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17349-submit@debbugs.gnu.org id=B17349.139858556820351 (code B ref 17349); Sun, 27 Apr 2014 08:00:03 +0000 Original-Received: (at 17349) by debbugs.gnu.org; 27 Apr 2014 07:59:28 +0000 Original-Received: from localhost ([127.0.0.1]:59506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeJzk-0005IA-7L for submit@debbugs.gnu.org; Sun, 27 Apr 2014 03:59:28 -0400 Original-Received: from mailrelay008.isp.belgacom.be ([195.238.6.174]:58482) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeJzi-0005Hz-NN for 17349@debbugs.gnu.org; Sun, 27 Apr 2014 03:59:27 -0400 X-Belgacom-Dynamic: yes Original-Received: from 41.233-178-91.adsl-dyn.isp.belgacom.be (HELO LDLC-portable) ([91.178.233.41]) by relay.skynet.be with ESMTP; 27 Apr 2014 09:59:11 +0200 In-Reply-To: <874n1f4xzq.fsf@micropit.couberia.selfip.net> ("Peter \=\?utf-8\?Q\?M\=C3\=BCnster\=22's\?\= message of "Sat, 26 Apr 2014 22:49:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88321 Archived-At: Peter M=C3=BCnster writes: >> (I'm now running a piece of advice to check whether timer-event-handler >> is run when the problem appears, but I did not use my laptop a lot the >> last few hours.) > > Could you send it please? Perhaps it would make sense to use this advice > here on my emacs too. Sure ; although it's less useful that what its description promises. (defun yf/checktimer-after (timer) (when (eq battery-update-timer timer) (message "Ran battery update timer. current time: %s triggered-p: %s" (decode-time) (timer--triggered timer)))) (defun yf/checktimer-before (timer) (when (eq battery-update-timer timer) (message "Running battery update timer. current time: %s triggered-p: %= s" (decode-time) (timer--triggered timer)))) (advice-add 'timer-event-handler :before 'yf/checktimer-before) (advice-add 'timer-event-handler :after 'yf/checktimer-after) (defun yf/checktimer-warn () (when (timer--triggered battery-update-timer) (warn "battery-update-timer has trigger flag to t."))) (add-hook 'post-command-hook 'yf/checktimer-warn) --=20 Nico.