From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53062: 29.0.50; Inserting charger causes keyboard event Date: Fri, 07 Jan 2022 08:48:18 +0200 Message-ID: <838rvs6nyl.fsf@gnu.org> References: <87iluw8ri2.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53062@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 07 07:51:57 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5j6T-0008Mz-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 07:51:57 +0100 Original-Received: from localhost ([::1]:40996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5j6R-0001lw-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 01:51:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5j3e-0001cj-St for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 01:49:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5j3e-0004ua-Fw for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 01:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5j3e-00054o-F2 for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 01:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2022 06:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53062 X-GNU-PR-Package: emacs Original-Received: via spool by 53062-submit@debbugs.gnu.org id=B53062.164153809119340 (code B ref 53062); Fri, 07 Jan 2022 06:49:02 +0000 Original-Received: (at 53062) by debbugs.gnu.org; 7 Jan 2022 06:48:11 +0000 Original-Received: from localhost ([127.0.0.1]:42856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5j2p-00051r-2F for submit@debbugs.gnu.org; Fri, 07 Jan 2022 01:48:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5j2n-000513-2l for 53062@debbugs.gnu.org; Fri, 07 Jan 2022 01:48:09 -0500 Original-Received: from [2001:470:142:3::e] (port=37888 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5j2h-0004oY-ED; Fri, 07 Jan 2022 01:48:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ixKQCiQ2S3ZG9JHSl1q3J60eWIAEVIPSfCLCCs4sbao=; b=AnWvI9GYWgg3 0ER1dpTRTbxj92KTCp4LxtMSNEGJ5D0jZ3wFj58TEBM/wfreKcFyh1ot3ob+/D0MVr+WtEWC3GU4I ZoPw5AEN7EMahCOnfCnyunWDtCHnPC38GUyBDBzUXWUXyzE3BwLximzv4Ezoh7nP4i7ElJdvnP8uH rZLtaUZZSDXHwj6T3bzZ1lmh8FiI82Xov/wgwmPCMA9UpgPMKJ1XFKgEleS4Sk45m5V5rHTJdLR7O DfcB1bhmvqJcI306qjd6bGLmzgpHqVoxLOpp2ZBnBZxAMqRIrTUiysP85Jp51KMSUh9AgxpDgEyeU jCX008gkxoQ58tCHXGHQSw==; Original-Received: from [87.69.77.57] (port=3200 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5j2h-0008LK-4M; Fri, 07 Jan 2022 01:48:03 -0500 In-Reply-To: <87iluw8ri2.fsf@thornhill.no> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223762 Archived-At: > 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" > > > So, I noticed that everytime I insert my charger the echo area echos > "dead-circumflex-". Obviously I: > > (global-set-key (kbd "") '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. 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. 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.