GNU bug report logs -
#53062
29.0.50; Inserting charger causes keyboard event <dead-circumflex>
Previous Next
Full log
Message #11 received at 53062 <at> debbugs.gnu.org (full text, mbox):
On 7 January 2022 07:48:18 CET, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> Date: Thu, 06 Jan 2022 22:48:53 +0100
>> From: Theodor Thornhill via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>>
>> So, I noticed that everytime I insert my charger the echo area echos
>> "dead-circumflex-". Obviously I:
>>
>> (global-set-key (kbd "<dead-circumflex>") 'save-buffers-kill-emacs)
>>
>> Now everytime I insert my laptop charger emacs is killed.
>>
>> Is this expected? I pulled and built emacs from source just now, and
>> still get that behavior.
>
>Is what expected? If you bind that function key to
>save-buffers-kill-emacs, it is expected that whenever that function
>key is "pressed", Emacs will exit, yes.
>
This was just meant as a joke to clarify it was a keyboard event :)
>If you were asking about the dead-circumflex function key event being
>generated when you plug your charger, I think it's something that
>is local to your system -- some piece of software generates key input
>event when you do that. Emacs just responds to the input events it
>receives from the OS.
>
I guess you're right, I just find it very strange it happens. I'll check if it happens to other window managers than stumpwm.
>If you cannot figure out how to disable that "feature", you could
>perhaps bind that key to 'ignore', then Emacs will process and ignore
>that key.
This is a usable workaround, I guess
This bug report was last modified 3 years and 249 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.