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.devel Subject: Re: input-pending-p after make-frame-visible Date: Tue, 28 Sep 2021 08:50:13 +0300 Message-ID: <835yull04q.fsf@gnu.org> References: <786eca99-bb42-c744-af26-b0435a745a81@gmx.at> <1d7cee7a-6137-609c-1400-f161dc8c860e@gmx.at> <2b2c2a7f-4c4a-a293-361e-86911e9f88b7@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9996"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 07:51:33 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mV61c-0002RH-RX for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 07:51:32 +0200 Original-Received: from localhost ([::1]:55870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV61a-0002Wy-Vu for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 01:51:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV60M-0001Yl-MQ for emacs-devel@gnu.org; Tue, 28 Sep 2021 01:50:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56930) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV60M-0002di-1O; Tue, 28 Sep 2021 01:50:14 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1315 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 1mV60G-0003mK-8t; Tue, 28 Sep 2021 01:50:13 -0400 In-Reply-To: (message from Aaron Jensen on Mon, 27 Sep 2021 19:02:04 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275653 Archived-At: > From: Aaron Jensen > Date: Mon, 27 Sep 2021 19:02:04 -0400 > Cc: emacs-devel@gnu.org > > > > I'm using your patch now, so I can let you know if it happens again. > > > > You can also set 'while-no-input-ignore-events' to include or rule out > > specific events. > > last-input-event is 134217848 after I get into that situation w/ M-x. > I'm guessing that's M-x, because if I do C-h v, I end up with 118 (v). Yes, it's M-x. The easiest way to see that is M-: 134217848 RET which will show: 134217848 (#o1000000170, #x8000078) And the last representation tells you it's 'x' (#x78) with 27th bit set. And in lisp.h we have: enum char_bits { CHAR_ALT = 0x0400000, CHAR_SUPER = 0x0800000, CHAR_HYPER = 0x1000000, CHAR_SHIFT = 0x2000000, CHAR_CTL = 0x4000000, CHAR_META = 0x8000000, <<<<<<<<<<<<<<<<<<<<<<<< But where does that M-x come from in the recipe in question?