Subject: bug#17349: 24.3.50; display-battery-mode stops updating after closing and reopening lid

From: Stefan Monnier <[email-masked]>
Date: Tue, 17 Jun 2014 09:33:39 -0400

>>>>> "Eli" == Eli Zaretskii <[email-masked]> writes:

>> From: Nicolas Richard <[email-masked]>
>> Date: Fri, 02 May 2014 13:05:20 +0200
>> Cc: Nicolas Richard <[email-masked]>,
>> Barry OReilly <[email-masked]>, [email-masked]
>> 
>> 3bis. Why are these three "C-g" special ? It is not mentionned in (info "(emacs)
>> Quitting") AFAICT.

> Maybe because of the "emergency escape" feature, although that
> requires 2 C-g's in a row, not 3, and AFAIK only works on a TTY.

No, it does seem to be 3 (quoting src/keyboard.c):

        { /* Else request quit when it's safe.  */
	  int count = NILP (Vquit_flag) ? 1 : force_quit_count + 1;
	  force_quit_count = count;
	  if (count == 3)
            {
              immediate_quit = 1;
              Vinhibit_quit = Qnil;
            }
          Vquit_flag = Qt;
        }

-- Stefan