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: Fri, 02 May 2014 13:05:20 +0200 Message-ID: <87eh0cwidr.fsf@geodiff-mac3.ulb.ac.be> References: <87d2g3lth0.fsf@yahoo.fr> <874n1f4xzq.fsf@micropit.couberia.selfip.net> <8738gzkxte.fsf@yahoo.fr> <87tx991u2m.fsf@micropit.roche-blanche.homenet.org> <877g65bfen.fsf@micropit.roche-blanche.homenet.org> 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 1399028732 9394 80.91.229.3 (2 May 2014 11:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 May 2014 11:05:32 +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 Fri May 02 13:05:24 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 1WgBHQ-0001k0-BT for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 May 2014 13:05:24 +0200 Original-Received: from localhost ([::1]:43134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgBHP-0002kA-PX for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 May 2014 07:05:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgBHF-0002ip-CX for bug-gnu-emacs@gnu.org; Fri, 02 May 2014 07:05:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgBH5-0008P2-Qv for bug-gnu-emacs@gnu.org; Fri, 02 May 2014 07:05:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgBH5-0008O4-OB for bug-gnu-emacs@gnu.org; Fri, 02 May 2014 07:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WgBH4-0006Mf-GI for bug-gnu-emacs@gnu.org; Fri, 02 May 2014 07:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 May 2014 11:05:02 +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.139902868024415 (code B ref 17349); Fri, 02 May 2014 11:05:02 +0000 Original-Received: (at 17349) by debbugs.gnu.org; 2 May 2014 11:04:40 +0000 Original-Received: from localhost ([127.0.0.1]:47962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgBGh-0006Lh-4F for submit@debbugs.gnu.org; Fri, 02 May 2014 07:04:39 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:8070) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgBGc-0006LS-8g for 17349@debbugs.gnu.org; Fri, 02 May 2014 07:04:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtgGAC97Y1OkD4Xx/2dsb2JhbABZhxOnUgEBAQEBBAGWVIM2gSd0giYBBSNWEAsaAgUhAgIPAQRJE4gsAQMGC6VfUZwGAUoMhkYXgSqELIF/hhU1MweCb4FKBJ97jCSBdYFBOw Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 02 May 2014 13:04:33 +0200 In-Reply-To: <877g65bfen.fsf@micropit.roche-blanche.homenet.org> ("Peter \=\?utf-8\?Q\?M\=C3\=BCnster\=22's\?\= message of "Thu, 01 May 2014 19:02:56 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (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:88514 Archived-At: Peter M=C3=BCnster writes: > I can reproduce the problem now: Thanks for the test case. I'll admit I am a little puzzled by all of this. Consider this alternative test case: (setq watchtimer (run-at-time nil 5 (lambda () (message "Sitting...") (slee= p-for 2) (message "Sat")))) (defun warnme () (when (timer--triggered watchtimer) (message "timer has trigger flag to t.") (remove-hook 'post-command-hook 'warnme))) (add-hook 'post-command-hook 'warnme) Then you can see that loading this file and hitting C-g C-g C-g will say: "timer has trigger flag to t." I have these questions : 1. Is this the problem that I have been seeing with display-battery-mode? I don't recall hammering C-g when I noticed my problem. 1bis. Is this the problem that you have been seeing too ? 2. Why does it take three C-g to get out of the sleep-for that is called from within the timer ? (e.g. I can do M-: (sleep-for 2) RET C-g and I get immediate control) 3. Why aren't these C-g caught by the condition-case in timer-event-handler ? Or alternatively: 3bis. Why are these three "C-g" special ? It is not mentionned in (info "(e= macs) Quitting") AFAICT. --=20 Nico.