Alan Third <alan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 47731) by debbugs.gnu.org; 29 Aug 2021 09:38:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 29 05:38:51 2021 Received: from localhost ([127.0.0.1]:55499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mKHH9-0006rs-Bp for submit <at> debbugs.gnu.org; Sun, 29 Aug 2021 05:38:51 -0400 Received: from outbound.soverin.net ([116.202.126.228]:55209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <alan@HIDDEN>) id 1mKHH6-0006rd-P4 for 47731 <at> debbugs.gnu.org; Sun, 29 Aug 2021 05:38:49 -0400 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id A64D252; Sun, 29 Aug 2021 09:38:42 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1630229921; bh=LXrg8DKE8VaXyCwGZzxXzSAQg1s6KiEVTQJ9v9wSZ8k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kEKsDg1p1flwONeOSqG9spIKgBWq35YYx5hX8N9Uvj9W2rPRA0heTLYWnx+f3gi0S tuRHR4GXoVBPpkiHy/d/nwc0J86m4Okes6YNb6q5Rk723m/UCiXdAqAllgVCy1W0W1 SoABISZERueDTTooJ6oj5iPXvaBw0qCZgQOcY8O5Jrbig/loi3yFKY1YhKCnB7JZ7j f6k3dfo50Pt0pAMu8FuKrY3hBUWGKWqTc0ObuUrD2IooojFMBdnEyn5bDxDbRSzxlV gvKh3lepJ2Q9phl4dv7xkGJc68XbcUkjm/nITEHhWLleQkEKmBn9wBJW4G9oigtnim VxDxxOeG8XYBw== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from <alan@HIDDEN>) id 1mKHGw-0010mv-UI; Sun, 29 Aug 2021 10:38:38 +0100 Date: Sun, 29 Aug 2021 10:38:38 +0100 From: Alan Third <alan@HIDDEN> To: Sean Farley <sean@HIDDEN> Subject: Re: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event Message-ID: <YStVns9nBych2Vt+@idiocy.org> Mail-Followup-To: Alan Third <alan@HIDDEN>, Sean Farley <sean@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 47731 <at> debbugs.gnu.org References: <m2wnt7zdbi.fsf@HIDDEN> <875yzwyypp.fsf@HIDDEN> <YJQuIdNolFbxzecr@HIDDEN> <m2eead9bm6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <m2eead9bm6.fsf@HIDDEN> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47731 Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 47731 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On Sat, Aug 28, 2021 at 10:23:35PM -0500, Sean Farley via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > > Alan Third <alan@HIDDEN> writes: > > > On Thu, May 06, 2021 at 11:54:10AM +0200, Lars Ingebrigtsen wrote: > >> Sean Farley <sean@HIDDEN> writes: > >> > >> > Here is some testing code: > >> > (defun test--focus-out () > >> > (message "FOCUS TEST")) > >> > > >> > (add-function :after after-focus-change-function #'test--focus-out) > >> > (make-frame) > >> > > >> > On macOS, this code runs fine if you click on the other frame. But if > >> > using the keyboard shortcut Command-` the event doesn't fire. It seems > >> > to be some interaction in the keydown event function where emacs_event > >> > is cleared before the call to windowDidBecomeKey. > >> > >> I haven't tested the recipe, but perhaps Alan has some comments here > >> (added to the CCs). > > > > Interestingly the NS port only generates Emacs events for things that > > happen within the NS run loop, which excludes many things that are > > initiated by Emacs itself. > > > > I'm not sure how to fix this as I'm not sure why it's set up this way. > > Is there anything I can do to help? Probably not at the moment. I think we need to rewrite the NS event code so it will create events any time, and then test it to see if it causes problems. I can't see any way it will, but I don't know why it's written this way, so maybe I'm missing something. -- Alan Third
bug-gnu-emacs@HIDDEN
:bug#47731
; Package emacs
.
Full text available.Received: (at 47731) by debbugs.gnu.org; 29 Aug 2021 03:24:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 28 23:24:41 2021 Received: from localhost ([127.0.0.1]:55252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mKBR3-0001cT-GE for submit <at> debbugs.gnu.org; Sat, 28 Aug 2021 23:24:41 -0400 Received: from mail.farley.io ([45.79.103.152]:58148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sean@HIDDEN>) id 1mKBR1-0001cJ-73 for 47731 <at> debbugs.gnu.org; Sat, 28 Aug 2021 23:24:40 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 629B91B6521; Sat, 28 Aug 2021 20:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farley.io; s=dkim; t=1630207477; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=7VomOaTYAxUQauq+cYxurMvUm3RZtI/5w+xUKRMKmi8=; b=NtooQRGY2IR0Fj9FgumdX0ShVhLyjbGA1dIwMsjEu2y8vlhnPT/8i5mOCHrZyMB0Kvk74C HQ6VPXTSkOugF4iRUb5HEUrkKUoKfw5+OjnuXMC7f3GOOQQkbgbYCaHvntlTbLdheHOqVX 6X/ROQWhN/vd3vr70WuTHw4vd7lCqIs= References: <m2wnt7zdbi.fsf@HIDDEN> <875yzwyypp.fsf@HIDDEN> <YJQuIdNolFbxzecr@HIDDEN> User-agent: mu4e 1.6.4; emacs 28.0.50 From: Sean Farley <sean@HIDDEN> To: Alan Third <alan@HIDDEN> Subject: Re: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event Date: Sat, 28 Aug 2021 22:23:35 -0500 In-reply-to: <YJQuIdNolFbxzecr@HIDDEN> Message-ID: <m2eead9bm6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47731 Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 47731 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Alan Third <alan@HIDDEN> writes: > On Thu, May 06, 2021 at 11:54:10AM +0200, Lars Ingebrigtsen wrote: >> Sean Farley <sean@HIDDEN> writes: >> >> > Here is some testing code: >> > (defun test--focus-out () >> > (message "FOCUS TEST")) >> > >> > (add-function :after after-focus-change-function #'test--focus-out) >> > (make-frame) >> > >> > On macOS, this code runs fine if you click on the other frame. But if >> > using the keyboard shortcut Command-` the event doesn't fire. It seems >> > to be some interaction in the keydown event function where emacs_event >> > is cleared before the call to windowDidBecomeKey. >> >> I haven't tested the recipe, but perhaps Alan has some comments here >> (added to the CCs). > > Interestingly the NS port only generates Emacs events for things that > happen within the NS run loop, which excludes many things that are > initiated by Emacs itself. > > I'm not sure how to fix this as I'm not sure why it's set up this way. Is there anything I can do to help?
bug-gnu-emacs@HIDDEN
:bug#47731
; Package emacs
.
Full text available.Alan Third <alan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 47731) by debbugs.gnu.org; 6 May 2021 17:58:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 06 13:58:08 2021 Received: from localhost ([127.0.0.1]:38875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1leiGG-00064Z-1X for submit <at> debbugs.gnu.org; Thu, 06 May 2021 13:58:08 -0400 Received: from outbound.soverin.net ([116.202.65.218]:52427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <alan@HIDDEN>) id 1leiGD-000648-3V for 47731 <at> debbugs.gnu.org; Thu, 06 May 2021 13:58:06 -0400 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 7FADC60109; Thu, 6 May 2021 17:57:58 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1620323877; bh=FfP0M+CmoVHrnBsPeTgqV0LaA83BbJiFSiB7lFNxepk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dvtCKbfVgP9NomRnLZTkswAcG3Ln8eucg+esCJ42arZvo9eujarWHi9EvvyHGuvXK lGeZB9bN//uJzpSp09cG5pc+ikdIxEWf8yE98T0AOu4ifu372uvNTnX8GuqUrvDTui rgEnwrbPdjnsiV29YbGkmt6QSTnOhkQNf6lUL1/qGI3NicEl0G1By1yRYUxwg6zm/s 5GCK4ki/chKRT1fiTC/hmQrpoOOdsSg4KNeVhY6r0PHrs3ERFmwcH3s95r/NIzsI/T WeTnIDtI1CAIZahuQu/CONwgHLT9jnbfDf1neG290/BbUv4W47/isxqaI4glf9ae/E kMKis7V5nn/zw== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94) (envelope-from <alan@HIDDEN>) id 1leiG1-0004W5-Eo; Thu, 06 May 2021 18:57:53 +0100 Date: Thu, 6 May 2021 18:57:53 +0100 From: Alan Third <alan@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event Message-ID: <YJQuIdNolFbxzecr@HIDDEN> Mail-Followup-To: Alan Third <alan@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, Sean Farley <sean@HIDDEN>, 47731 <at> debbugs.gnu.org References: <m2wnt7zdbi.fsf@HIDDEN> <875yzwyypp.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875yzwyypp.fsf@HIDDEN> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47731 Cc: Sean Farley <sean@HIDDEN>, 47731 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On Thu, May 06, 2021 at 11:54:10AM +0200, Lars Ingebrigtsen wrote: > Sean Farley <sean@HIDDEN> writes: > > > Here is some testing code: > > (defun test--focus-out () > > (message "FOCUS TEST")) > > > > (add-function :after after-focus-change-function #'test--focus-out) > > (make-frame) > > > > On macOS, this code runs fine if you click on the other frame. But if > > using the keyboard shortcut Command-` the event doesn't fire. It seems > > to be some interaction in the keydown event function where emacs_event > > is cleared before the call to windowDidBecomeKey. > > I haven't tested the recipe, but perhaps Alan has some comments here > (added to the CCs). Interestingly the NS port only generates Emacs events for things that happen within the NS run loop, which excludes many things that are initiated by Emacs itself. I'm not sure how to fix this as I'm not sure why it's set up this way. -- Alan Third
bug-gnu-emacs@HIDDEN
:bug#47731
; Package emacs
.
Full text available.Received: (at 47731) by debbugs.gnu.org; 6 May 2021 09:54:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 06 05:54:21 2021 Received: from localhost ([127.0.0.1]:37156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1leai4-0001al-U9 for submit <at> debbugs.gnu.org; Thu, 06 May 2021 05:54:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1leai3-0001ad-9M for 47731 <at> debbugs.gnu.org; Thu, 06 May 2021 05:54:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jDXgXYnLIs39Ng5FcwTMW/piHtp0Eu98onT3i7lgtp0=; b=k9CLzpInSNvpFdogDRI4kC9z/+ 0nPLaBBeukn2Uxs5ENMSI3RuvnGntkLBcsLedjC6mPo1bPUkrUwfFPyF9EG6ybzd0lunC7U6YZTii ZgNz2PxIVWaX//YYRCwluiTnPKrJhLKmfuYMH8wUw45RMAr3MRsTNejpkv6K8i0qniT0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1leahu-0005gP-TM; Thu, 06 May 2021 11:54:13 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Sean Farley <sean@HIDDEN> Subject: Re: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event References: <m2wnt7zdbi.fsf@HIDDEN> X-Now-Playing: Zola Jesus's _Burial Hex - Zola Jesus_: "Julius & Ethel" Date: Thu, 06 May 2021 11:54:10 +0200 In-Reply-To: <m2wnt7zdbi.fsf@HIDDEN> (Sean Farley's message of "Mon, 12 Apr 2021 11:17:15 -0500") Message-ID: <875yzwyypp.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Farley <sean@HIDDEN> writes: > Here is some testing code: > (defun test--focus-out () > (message "FOCUS TEST")) > > (add-function :after after-focus-change-function #'test--focus-out) > (make-frame) > > On macOS, this code runs f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47731 Cc: Alan Third <alan@HIDDEN>, 47731 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Sean Farley <sean@HIDDEN> writes: > Here is some testing code: > (defun test--focus-out () > (message "FOCUS TEST")) > > (add-function :after after-focus-change-function #'test--focus-out) > (make-frame) > > On macOS, this code runs fine if you click on the other frame. But if > using the keyboard shortcut Command-` the event doesn't fire. It seems > to be some interaction in the keydown event function where emacs_event > is cleared before the call to windowDidBecomeKey. I haven't tested the recipe, but perhaps Alan has some comments here (added to the CCs). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#47731
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 12 Apr 2021 16:18:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 12 12:18:47 2021 Received: from localhost ([127.0.0.1]:57838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lVzGw-0003WU-BN for submit <at> debbugs.gnu.org; Mon, 12 Apr 2021 12:18:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:49226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sean@HIDDEN>) id 1lVzGu-0003WL-An for submit <at> debbugs.gnu.org; Mon, 12 Apr 2021 12:18:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <sean@HIDDEN>) id 1lVzGu-00054v-5c for bug-gnu-emacs@HIDDEN; Mon, 12 Apr 2021 12:18:44 -0400 Received: from mail.farley.io ([2600:3c01::f03c:92ff:feeb:2e0a]:55222) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <sean@HIDDEN>) id 1lVzGq-0000zy-0R for bug-gnu-emacs@HIDDEN; Mon, 12 Apr 2021 12:18:43 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0E6AF1B5CF2 for <bug-gnu-emacs@HIDDEN>; Mon, 12 Apr 2021 09:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farley.io; s=dkim; t=1618244310; h=from:subject:date:message-id:to:mime-version:content-type; bh=9kl4MrLsR6sX3WmitFJkRLvBDpxhHJ8FCZPipWOJzhI=; b=QF7EsvKGxBKDW0RIW9n8Q1fHxhmRe06uoH7DsTuD8FLbHOaeH0+xgXfoqHeyUSgvUH59Ri 3vXTk70JV/4xY7cGon7wfRjuD7TbchDAk+13wqqbAXq9FVis3JS9rZm/LDRD8lPfmWoVhR CDXHsMmdC1uXqZe2F3A78wZR0F9xYXs= User-agent: mu4e 1.5.8; emacs 28.0.50 From: Sean Farley <sean@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 28.0.50; Switching frame via keyboard does not fire focus change event Date: Mon, 12 Apr 2021 11:17:15 -0500 Message-ID: <m2wnt7zdbi.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=2600:3c01::f03c:92ff:feeb:2e0a; envelope-from=sean@HIDDEN; helo=mail.farley.io X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Here is some testing code: (defun test--focus-out () (message "FOCUS TEST")) (add-function :after after-focus-change-function #'test--focus-out) (make-frame) On macOS, this code runs fine if you click on the other frame. But if using the keyboard shortcut Command-` the event doesn't fire. It seems to be some interaction in the keydown event function where [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2600:3c01:0:0:f03c:92ff:feeb:2e0a listed in] [zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=sean%40farley.io; ip=209.51.188.17; r=debbugs.gnu.org] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Here is some testing code: (defun test--focus-out () (message "FOCUS TEST")) (add-function :after after-focus-change-function #'test--focus-out) (make-frame) On macOS, this code runs fine if you click on the other frame. But if using the keyboard shortcut Command-` the event doesn't fire. It seems to be some interaction in the keydown event function where [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2600:3c01:0:0:f03c:92ff:feeb:2e0a listed in] [zen.spamhaus.org] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=sean%40farley.io;ip=209.51.188.17;r=debbugs.gnu.org] -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Here is some testing code: (defun test--focus-out () (message "FOCUS TEST")) (add-function :after after-focus-change-function #'test--focus-out) (make-frame) On macOS, this code runs fine if you click on the other frame. But if using the keyboard shortcut Command-` the event doesn't fire. It seems to be some interaction in the keydown event function where emacs_event is cleared before the call to windowDidBecomeKey. In GNU Emacs 28.0.50 (build 2, x86_64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2.2 (Build 20D80)) of 2021-03-09 built on laptop Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.2.3 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 --with-gnutls --with-native-compilation --with-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -I/usr/local/opt/gmp/include -I/usr/local/opt/jpeg/include' 'LDFLAGS=-L/usr/local/lib/gcc/10 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -I/usr/local/opt/gmp/include -I/usr/local/opt/jpeg/include'' Configured features: ACL DBUS GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ObjC//l Minor modes in effect: org-roam-mode: t treemacs-filewatch-mode: t treemacs-git-mode: simple treemacs-fringe-indicator-mode: t lsp-diagnostics-mode: t lsp-modeline-workspace-status-mode: t lsp-modeline-diagnostics-mode: t lsp-modeline-code-actions-mode: t lsp-ui-mode: t lsp-ui-imenu-buffer-mode: t lsp-ui-sideline-mode: t lsp-completion-mode: t lsp-managed-mode: t lsp-mode: t bug-reference-prog-mode: t rainbow-delimiters-mode: t highlight-numbers-mode: t hl-todo-mode: t git-gutter-mode: t whitespace-mode: t display-fill-column-indicator-mode: t vi-tilde-fringe-mode: t display-line-numbers-mode: t highlight-indent-guides-mode: t flycheck-posframe-mode: t yas-minor-mode: t gcmh-mode: t winner-mode: t show-paren-mode: t smartparens-global-mode: t smartparens-mode: t global-undo-fu-session-mode: t undo-fu-session-mode: t undo-fu-mode: t global-flycheck-mode: t flycheck-mode: t ws-butler-global-mode: t editorconfig-mode: t recentf-mode: t save-place-mode: t global-so-long-mode: t global-git-commit-mode: t shell-dirtrack-mode: t which-key-mode: t savehist-mode: t better-jumper-mode: t better-jumper-local-mode: t company-box-mode: t global-company-mode: t company-mode: t ivy-posframe-mode: t ivy-prescient-mode: t prescient-persist-mode: t ivy-rich-project-root-cache-mode: t ivy-rich-mode: t ivy-mode: t volatile-highlights-mode: t global-hl-line-mode: t hl-line-mode: t dtrt-indent-mode: t doom-modeline-mode: t global-page-break-lines-mode: t whole-line-or-region-global-mode: t whole-line-or-region-local-mode: t global-dot-mode: t dot-mode: t fancy-narrow-mode: t global-tree-sitter-mode: t solaire-global-mode: t solaire-mode: t persp-mode: t delete-selection-mode: t projectile-mode: t ns-auto-titlebar-mode: t +lsp-optimization-mode: t +popup-mode: t general-override-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t window-divider-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t hs-minor-mode: t Load-path shadows: /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/ht/ht hides /Users/sean/projects/doom-emacs/.local/elpa/ht-20210119.141/ht /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/esxml/esxml-query hides /Users/sean/projects/doom-emacs/.local/elpa/esxml-20201226.1546/esxml-query /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/esxml/esxml hides /Users/sean/projects/doom-emacs/.local/elpa/esxml-20201226.1546/esxml /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/esxml/esxml-pkg hides /Users/sean/projects/doom-emacs/.local/elpa/esxml-20201226.1546/esxml-pkg /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/a/a hides /Users/sean/projects/doom-emacs/.local/elpa/a-20201203.1327/a /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/f/f hides /Users/sean/projects/doom-emacs/.local/elpa/f-20210113.118/f /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/dash-functional/dash-functional hides /Users/sean/projects/doom-emacs/.local/elpa/dash-functional-20210210.849/dash-functional /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/dash/dash hides /Users/sean/projects/doom-emacs/.local/elpa/dash-20210210.849/dash /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/dash/dash-autoloads hides /Users/sean/projects/doom-emacs/.local/elpa/dash-20210210.849/dash-autoloads /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/ov/ov-autoloads hides /Users/sean/projects/doom-emacs/.local/elpa/ov-20200326.542/ov-autoloads /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/ov/ov hides /Users/sean/projects/doom-emacs/.local/elpa/ov-20200326.542/ov /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/request/request hides /Users/sean/projects/doom-emacs/.local/elpa/request-20210213.1837/request /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/s/s hides /Users/sean/projects/doom-emacs/.local/elpa/s-20200330.1554/s /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/cmake-mode/cmake-mode hides /usr/local/share/emacs/site-lisp/cmake/cmake-mode /Users/sean/projects/doom-emacs/.local/straight/build-28.0.50/map/map hides /usr/local/Cellar/emacs-plus@28/28.0.50/share/emacs/28.0.50/lisp/emacs-lisp/map Features: (magit-extras forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github forge-notify forge-revnote forge-pullreq forge-issue forge-topic forge-post forge-repo forge forge-core forge-db closql emacsql-sqlite shadow emacsbug magit-gitflow org-eldoc toc-org org-indent ol-bibtex bibtex windmove vterm term ehelp vterm-module term/xterm xterm mu4e-patch mu4e-alert time alert log4e notifications gntp org-mu4e mu4e mu4e-org mu4e-main mu4e-view mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-proc mu4e-utils doc-view image-mode exif mu4e-lists mu4e-message shr kinsoku svg flow-fill mu4e-vars macrostep-c cmacexp macrostep amx hide-mode-line tramp-archive tramp-gvfs dbus docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp jka-compr flycheck-cask flycheck-package package-lint finder finder-inf lisp-mnt elisp-slime-nav highlight-quoted org-agenda orgit magit-todos pcre2el rxt re-builder async github-review ghub-graphql treepy gsexp ghub url-http url-gw url-auth deferred a treemacs-magit magit-autoloads magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff magit-core magit-autorevert magit-margin magit-transient magit-process magit-mode org-roam org-roam-link org-roam-graph xml org-roam-doctor org-roam-dailies org-roam-capture org-roam-db emacsql-sqlite3 emacsql emacsql-compiler org-capture org-roam-completion org-roam-buffer org-roam-faces org-roam-macs org-roam-compat org-id org-refile smartparens-org org-yt org-element avl-tree org org-pcomplete org-version ob-emacs-lisp org-table org-loaddefs ob ob-tangle ol ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src org-keys ob-comint ob-core ob-eval lsp-treemacs lsp-treemacs-themes treemacs-persp treemacs-projectile treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-extensions treemacs-mouse-interface treemacs-tags treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture treemacs-logging treemacs-customization treemacs-macros company-yasnippet lsp-diagnostics lsp-modeline lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline lsp-ui-util view lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-vetur lsp-html lsp-verilog lsp-vala lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-r lsp-purescript lsp-pyls lsp-pwsh lsp-php lsp-perl lsp-ocaml lsp-nix lsp-nim lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-haxe lsp-groovy lsp-hack lsp-go lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp gnutls lsp-crystal lsp-cmake lsp-clojure lsp-clangd dom lsp-bash lsp-angular lsp-ada lsp-actionscript lsp-python-ms ccls ccls-member-hierarchy ccls-inheritance-hierarchy ccls-call-hierarchy ccls-tree ccls-code-lens ccls-semantic-highlight ccls-common lsp-mode lsp-protocol spinner network-stream nsm lv imenu ht inline ewoc vc bug-reference rainbow-delimiters highlight-numbers parent-mode hl-todo hideshow smartparens-c cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs octave smie pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util org-list org-entities org-faces org-compat org-macs cal-menu calendar cal-loaddefs core-packages package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap url-handlers git-gutter-fringe fringe-helper git-gutter vc-git diff-mode vc-dispatcher url-util auto-minor-mode disp-table whitespace display-fill-column-indicator vi-tilde-fringe display-line-numbers highlight-indent-guides doom-snippets doom-snippets-lib yasnippet flycheck-posframe elisp-mode adaptive-wrap spell-fu ispell smartparens-markdown markdown-mode edit-indirect url-parse url-vars noutline outline editorconfig-core editorconfig-core-handle editorconfig-fnmatch gcmh winner paren smartparens-config smartparens-text smartparens undo-fu-session undo-fu flycheck-clj-kondo flycheck find-func ws-butler editorconfig recentf saveplace so-long git-commit with-editor shell pcomplete transient format-spec log-edit message rmc puny rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-git magit-section magit-utils crm char-fold nav-flash pulse cursor-sensor counsel-projectile which-key savehist better-jumper company-box company-box-doc frame-local company-box-icons dash-functional company-capf company ivy-posframe posframe ivy-prescient prescient etags fileloop generator ivy-xref ivy-avy avy autorevert filenotify all-the-icons-ivy ivy-rich counsel xdg swiper ivy ivy-faces ivy-overlay colir color xref project volatile-highlights server objed objed-objects hl-line cap-words superword subword face-remap bitwarden tree-widget wid-edit auth-source eieio eieio-core eieio-loaddefs password-cache json dtrt-indent doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path f all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons dash page-break-lines whole-line-or-region dot-mode fancy-narrow advice simple-mpc simple-mpc-query simple-mpc-current-playlist simple-mpc-utils simple-mpc-vars simple-mpc-mode s tree-sitter tree-sitter-load tree-sitter-cli map tsc tsc-dyn tsc-dyn-get dired-aux dired dired-loaddefs tsc-obsolete doom-themes-ext-org doom-themes-ext-treemacs solaire-mode doom-nord-theme doom-themes doom-themes-base persp-mode delsel projectile grep compile text-property-search comint ansi-color ring ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs thingatpt mu4e-meta html2text let-alist smartparens-lua ns-auto-titlebar ibuf-macs derived core-editor core-projects core-ui edmacro kmacro easy-mmode comp comp-cstr warnings core-keybinds pp general cl-extra help-mode seq byte-opt cl-seq use-package-core bytecomp byte-compile cconv core-modules cl tex-site rx realgud-recursive-autoloads core core-lib cl-macs gv cl-loaddefs cl-lib subr-x iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 1874513 799203) (symbols 48 82098 111) (strings 32 470148 35028) (string-bytes 1 11748287) (vectors 16 152617) (vector-slots 8 4289570 458845) (floats 8 2762 2729) (intervals 56 96788 26251) (buffers 992 39))
Sean Farley <sean@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#47731
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.