From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53062: 29.0.50; Inserting charger causes keyboard event Date: Fri, 07 Jan 2022 08:27:01 +0100 Message-ID: <080C25BF-9A5F-42D7-B07C-38272688A1E0@thornhill.no> References: <87iluw8ri2.fsf@thornhill.no> <838rvs6nyl.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28000"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53062@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 07 08:33:07 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 1n5jkJ-00075E-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 08:33:07 +0100 Original-Received: from localhost ([::1]:48508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5jkI-0005Ht-KC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 02:33:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5jfP-0002y2-2b for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 02:28:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5jfO-0004lw-PQ for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 02:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5jfO-0006WM-Hr for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2022 02:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2022 07:28: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.164154042725002 (code B ref 53062); Fri, 07 Jan 2022 07:28:02 +0000 Original-Received: (at 53062) by debbugs.gnu.org; 7 Jan 2022 07:27:07 +0000 Original-Received: from localhost ([127.0.0.1]:42912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5jeV-0006VC-CX for submit@debbugs.gnu.org; Fri, 07 Jan 2022 02:27:07 -0500 Original-Received: from out1.migadu.com ([91.121.223.63]:40299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5jeS-0006V2-V4 for 53062@debbugs.gnu.org; Fri, 07 Jan 2022 02:27:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1641540423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OGAFcWX/QYGowm0dnco/6CpAktoMkVfgU09iZ0Te0gs=; b=SFl18DExcM0Vw6s2ALuqj7FYBT6gppdQeaX+goBwMPE/3dOU9rFldeMcBHAaLvTyWY8xe6 cpNO6/C6uAHquRK4DjruA6GuVnPYbOtkBV4HagXXyXNKKHVWdmaVIYGT3uUySRfk39T39E iqurdp99ICL0K20VKEavehxmkDUtx3l7pkmYGMTQLD050hXLdal9TRfUOk9gR9yZYpaCNu g6Rnm6FL9Bg0h3t2wV1SLV3r0G6dEzGvW0XX2FllFEs21O5Xxw8wD6IjxTmVj88X6SmMrx R97/bRU8lXDHJxPUEOmFGzgcSAtYwS0hNQcPP7RwN/2D1vtsMkspGQSG/aEAAw== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <838rvs6nyl.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: thornhill.no 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:223768 Archived-At: On 7 January 2022 07:48:18 CET, Eli Zaretskii 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" >>=20 >>=20 >> So, I noticed that everytime I insert my charger the echo area echos >> "dead-circumflex-"=2E Obviously I: >>=20 >> (global-set-key (kbd "") 'save-buffers-kill-emacs) >>=20 >> Now everytime I insert my laptop charger emacs is killed=2E >>=20 >> Is this expected? I pulled and built emacs from source just now, and >> still get that behavior=2E > >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=2E > This was just meant as a joke to clarify it was a keyboard event :)=20 >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=2E Emacs just responds to the input events it >receives from the OS=2E > I guess you're right, I just find it very strange it happens=2E I'll check= if it happens to other window managers than stumpwm=2E=20 >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=2E This is a usable workaround, I guess