unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: "Peter Münster" <pmlists@free.fr>
Cc: Nicolas Richard <theonewiththeevillook@yahoo.fr>,
	Barry OReilly <gundaetiapo@gmail.com>,
	17349@debbugs.gnu.org
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	[thread overview]
Message-ID: <8738gzkxte.fsf@yahoo.fr> (raw)
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")

Peter Münster <pmlists@free.fr> 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)

-- 
Nico.





  reply	other threads:[~2014-04-27  7:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-26 11:19 bug#17349: 24.3.50; display-battery-mode stops updating after closing and reopening lid Nicolas Richard
2014-04-26 14:49 ` Barry OReilly
2014-04-26 20:35   ` Nicolas Richard
2014-04-26 20:49 ` Peter Münster
2014-04-27  7:59   ` Nicolas Richard [this message]
2014-05-01 13:56     ` Peter Münster
2014-05-01 17:02       ` Peter Münster
2014-05-02 11:05         ` Nicolas Richard
2014-05-02 12:13           ` Eli Zaretskii
2014-06-17 13:33             ` Stefan Monnier
2014-06-27 10:27               ` Peter Münster
2014-06-27 12:06                 ` Nicolas Richard
2015-01-22  9:43                 ` Peter Münster
2014-05-02 13:24           ` Stefan Monnier
2015-01-22 15:33             ` Nicolas Richard
2014-05-02 11:24 ` Peter Münster
2014-06-15  9:42 ` bug#17349: timer vanishes Peter Münster
2022-04-17 11:06 ` bug#17349: 24.3.50; display-battery-mode stops updating after closing and reopening lid Lars Ingebrigtsen
2022-04-17 20:45   ` Nicolas Richard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-18  9:07     ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8738gzkxte.fsf@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=17349@debbugs.gnu.org \
    --cc=gundaetiapo@gmail.com \
    --cc=pmlists@free.fr \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).