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: Fri, 02 May 2014 13:05:20 +0200	[thread overview]
Message-ID: <87eh0cwidr.fsf@geodiff-mac3.ulb.ac.be> (raw)
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")

Peter Münster <pmlists@free.fr> 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...") (sleep-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 "(emacs)
Quitting") AFAICT.

-- 
Nico.





  reply	other threads:[~2014-05-02 11:05 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
2014-05-01 13:56     ` Peter Münster
2014-05-01 17:02       ` Peter Münster
2014-05-02 11:05         ` Nicolas Richard [this message]
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=87eh0cwidr.fsf@geodiff-mac3.ulb.ac.be \
    --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).