GNU bug report logs - #79471
[PATCH] Add basic macOS acccessibility support for frames

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dani Brown <d@HIDDEN>; Keywords: patch; dated Fri, 19 Sep 2025 04:34:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79471 <at> debbugs.gnu.org:


Received: (at 79471) by debbugs.gnu.org; 28 Sep 2025 19:22:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 28 15:22:37 2025
Received: from localhost ([127.0.0.1]:48555 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v2wyi-0003Dk-VM
	for submit <at> debbugs.gnu.org; Sun, 28 Sep 2025 15:22:37 -0400
Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]:46100)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1v2wyd-0003Cy-Ku
 for 79471 <at> debbugs.gnu.org; Sun, 28 Sep 2025 15:22:32 -0400
Received: by mail-ua1-x935.google.com with SMTP id
 a1e0cc1a2514c-8e936be1359so2463743241.0
 for <79471 <at> debbugs.gnu.org>; Sun, 28 Sep 2025 12:22:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1759087345; x=1759692145; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=CRM1MNplBkm+hiSDcAGXv/8wsHaHvlsojSKD9pt2YlA=;
 b=hjpnRH5gBkMh81N8RUF0hHfVsSEgYoombBNy+HPrl5ylLq++VDn9SMyq6Z6ME/zCwz
 JXk+Il8Qvu0fI8f4Q6jRv11zSMcp1kLTKXbPRZ99CuZPBM69awxpVHB0j5kpq2NGuS1Z
 QRuv7kqYRWC6Xbz+ENkB9cXYLnvWk2rx7dBo78QZMevOq0SiQydMoEHl31HsBghD3spB
 u+CyFldPWewemOAGJmUPrvDpVAzC8oa1P3pUQcZvPAJ44ou5oDDsqfjAYWtw4JpgwLiK
 m0UslClsmQzk6NpOBPxngX/HzSI8k4JdVkMZuZyVrPSOsayAQnQTG7Txg7hnhh3rWIy2
 zAtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1759087345; x=1759692145;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=CRM1MNplBkm+hiSDcAGXv/8wsHaHvlsojSKD9pt2YlA=;
 b=VLbEP069UfAlIObaSAxQFEn7yCUXfYCN3r1i3kVN6m1UHPqKbp3oP5/jbfIYKC7/QQ
 /m68jovU4yWG4YF0gR9iz6rLUUIr96VBTK7gPVAtdZPq9voGb5fv0AwmPc5VtQQEJl3l
 OlzSF+BzuXwsI0AS2hYF4c2QPsynEHAnezxOWAunCD9Bp1rGXmD3ynbAxjWHtPAK2ia9
 iX3BBlqo9BwsOLYgQ73NCWf99ZraG3PhtwCD4he5AYF8/FILDxJnRg58pnc1+ULp8rAH
 bWzKWo5cD55aSZX5uPFUFgjDi8viq8M5X397RfeAKC05mt3vOusYDs9IZhtwcAPWeTE0
 XQng==
X-Forwarded-Encrypted: i=1;
 AJvYcCWxm00v7+vXGcLQbuwtHEYNzMVsIrA66EZ4mK0fS4ls/WGo2ALZRQuNBAyj8bEYGOHNDuvxZw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwtQYQgqJT8VE1bNmcbZW+/AVVKNcebrNvtCSSiSq7ckwti0FCN
 MOPZ/AgDKSCyieeahjAGOr9Uco3CidG5dCv+XNT93kkGqcEuEP1PzOyGdLxYLhL0hgXqx/C2u1f
 myQ1y6ualPGUY0lUeg48XBS9Yfc5svD0=
X-Gm-Gg: ASbGncuCGdZ5QzKIV/80I3I9S1aSNrBs7h39lAkCPFwGkHz6w7AMpGvx4WfAcv2+xS8
 IO1VYR/28ZNUaACcN+mv4hARsfJUk7LJRy30shPXDdit/mkE6WHutpL2q6K8bh7Zi72KAOemVD1
 449cqYAN2gCMM5Ma+6LXJdAwwh6hpCy61Vj1eVTQ3keRDHEZFY0WRESfeFUqwx4nx4WuRK5MWTL
 M/Xa72GIJcxG5CzuWtN43J4iLkKr1k=
X-Google-Smtp-Source: AGHT+IFR3zvzCnOjG5f+8xEnA9RC6vkzd8bnkjxl0zQL8eergWOmcEISFGkEkAp9lX58Dkg4Wta2W49GgyKoLkXT/pw=
X-Received: by 2002:a05:6102:3e85:b0:525:9f17:9e55 with SMTP id
 ada2fe7eead31-5acd43506ebmr6605254137.32.1759087345001; Sun, 28 Sep 2025
 12:22:25 -0700 (PDT)
MIME-Version: 1.0
References: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
 <86y0q9h1bx.fsf@HIDDEN> <87ecrxttit.fsf@HIDDEN> <864iso8czc.fsf@HIDDEN>
 <33652EF2-0EFB-4CAE-9CCB-0007E4D099F3@HIDDEN>
In-Reply-To: <33652EF2-0EFB-4CAE-9CCB-0007E4D099F3@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 28 Sep 2025 15:22:12 -0400
X-Gm-Features: AS18NWDeSvSeYzIDVfcFot3R5kpaA5CN9B67WbSPekTvhUfHWv1MMq9lDtIAM40
Message-ID: <CAN+1HbowyjyNZ4MdWdTxCHQ1OUxhLTk2Ei+jQ6iG6WpVZvkEDw@HIDDEN>
Subject: Re: bug#79471: [PATCH] Add basic macOS acccessibility support for
 frames
To: Dani Brown <d@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000053e943063fe170ba"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79471
Cc: Eli Zaretskii <eliz@HIDDEN>, 79471 <at> debbugs.gnu.org,
 Robert Pluim <rpluim@HIDDEN>, alan@HIDDEN
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 (-)

--00000000000053e943063fe170ba
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Sep 28, 2025 at 2:20=E2=80=AFPM Dani Brown <d@HIDDEN> wrote:

>
> > On 27 Sep 2025, at 10:24, Eli Zaretskii <eliz@HIDDEN> wrote:
> >
> > Thanks.  Do we have anyone here who does use Raycast?  If so, could
> > they please try this patch and ack?
>
> Note the patch isn=E2=80=99t specific to Raycast, it can also be tested w=
ith the
> Applescript I posted:
>
>   tell application "System Events" to get every window of (first process
> whose name is "Emacs")
>
> Either paste that into Script Editor and give it the accessibility
> permission when prompted, or use osacript(1) (see the -e flag) and do
> similarly.
>

Is this intended to work from a locally-built Emacs or only one launched
from an Emacs.app-looking tree?

--00000000000053e943063fe170ba
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Sun, Sep 28, 2025 at 2:20=E2=80=AFPM Dani Brown &lt;d@HIDDEN&gt; wrot=
e:</span></div></div><div class=3D"gmail_quote gmail_quote_container"><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex"><br>
&gt; On 27 Sep 2025, at 10:24, Eli Zaretskii &lt;<a href=3D"mailto:eliz@gnu=
.org" target=3D"_blank">eliz@HIDDEN</a>&gt; wrote:<br>
&gt; <br>
&gt; Thanks.=C2=A0 Do we have anyone here who does use Raycast?=C2=A0 If so=
, could<br>
&gt; they please try this patch and ack?<br>
<br>
Note the patch isn=E2=80=99t specific to Raycast, it can also be tested wit=
h the Applescript I posted:<br>
<br>
=C2=A0 tell application &quot;System Events&quot; to get every window of (f=
irst process whose name is &quot;Emacs&quot;)<br>
<br>
Either paste that into Script Editor and give it the accessibility permissi=
on when prompted, or use osacript(1) (see the -e flag) and do similarly.<br=
></blockquote><div><br></div><div class=3D"gmail_default" style=3D"font-fam=
ily:monospace">Is this intended to work from a locally-built Emacs or only =
one launched from an Emacs.app-looking tree?</div></div></div>

--00000000000053e943063fe170ba--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.

Message received at 79471 <at> debbugs.gnu.org:


Received: (at 79471) by debbugs.gnu.org; 28 Sep 2025 18:18:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 28 14:18:26 2025
Received: from localhost ([127.0.0.1]:48254 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v2vyc-0003w2-1T
	for submit <at> debbugs.gnu.org; Sun, 28 Sep 2025 14:18:26 -0400
Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]:36197)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <d@HIDDEN>) id 1v2vyN-0003tB-6t
 for 79471 <at> debbugs.gnu.org; Sun, 28 Sep 2025 14:18:17 -0400
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
 by mailfout.phl.internal (Postfix) with ESMTP id CD6A2EC00D4;
 Sun, 28 Sep 2025 14:18:04 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-01.internal (MEProxy); Sun, 28 Sep 2025 14:18:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dani.cool; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm2; t=1759083484;
 x=1759169884; bh=vWM5fjZAnRyp4qHoP1L5+zecFuzx/2rSz7gHM8CJy2U=; b=
 UZpf00yYdQKy3QRL/TQ9xZumS7er8D2fRixoUjRDHXmqw5lfO+GjQKPBWN9MSDjo
 z3/050BH+UtG0CMUBZsY0iFt/ZwOgPNb/EVgKyvTwMt4LP06iNe8DrrV8V6lxglO
 9eD7ot+1m4tr/ZPBtk7I7t/RPGU8GaH6q+kuaha3srhNKzd4IUOKLgfZfdi8gITJ
 BTfKPtGs8IpzoLtKN/W3hE62HNnesd31uKpsp3Lluza03yFP5+bONY5kQkWfTv7P
 Ya1nhr/iab26e6/aspAcqVNwXJifQJT05eO62ohKKKZtdyJBsfrpNDxRZ7lTMGVa
 VXTXKwdw1TwtKiCLB8n0Fw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1759083484; x=
 1759169884; bh=vWM5fjZAnRyp4qHoP1L5+zecFuzx/2rSz7gHM8CJy2U=; b=o
 4FcDwc/pV0ppCwjqfoJtQiaJmMjx43FXT6hTcTzBUs1IZpUXune4oPsNKx1LUKKm
 UNfBURc9uOaqX/Ylijly5Am1hskBVBC+c2+YxHSf99cu/7vxi/Aha9o0hUsoIM1A
 Q1uY80A9oyKdoq5oXsMtz4jsR/8Etird+ndAem3vAzaFk1h2FthLbI3K4hFDs7g6
 A6V2BEPAA2uWpMLrOd5fKbS9HPpMeuFLRaBseISmawX1u0/zMzuoJ0Z0uyOmn9b7
 MW5y363iayJsJdQbo6ZNbnh7CVoEQjAubOE2N5PWhwy6Vv5bz/8wm8vmeeMk5lZG
 IR+lXPbXoAPacBrkIGS/A==
X-ME-Sender: <xms:3HvZaIdGO9ppKFvUQCgsH1TplLTZm8e1L0mhtr1Wbg71IB_5jiMvog>
 <xme:3HvZaBMSPaZyg4uxK8Teh30wCb-PfxsWYfTCvc2BEcpL58MSyjgc-tCb8nzdKn6kD
 A0GFRDwUizwSOixKiM1MBY443h0d_MggAtWwgS7nRihAUnNb4uPCSg>
X-ME-Received: <xmr:3HvZaOjRqzeQiMVLt87pUEI4ha9ZhtgvoBmYzKOTb4Oh8xih5Ss6NUwPqWSOT6cTEGlEhHRqn7_ETCzVk3NS8Ii_RV_EpVU0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdejheekfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomhepffgrnhhiuceu
 rhhofihnuceougesuggrnhhirdgtohholheqnecuggftrfgrthhtvghrnheptdffffefge
 dvjeegffelgeehffffveelffegjefhvddtffeihfffgfehveekteeinecuvehluhhsthgv
 rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugesuggrnhhirdgtohholh
 dpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghl
 ihiisehgnhhurdhorhhgpdhrtghpthhtoheprhhplhhuihhmsehgmhgrihhlrdgtohhmpd
 hrtghpthhtoheprghlrghnsehiughiohgthidrohhrghdprhgtphhtthhopeejleegjedu
 seguvggssghughhsrdhgnhhurdhorhhg
X-ME-Proxy: <xmx:3HvZaM3dvp1P_p4gBaQG3d61Rvx1iQiR1NFxstvywWa4RT3jXW9j4w>
 <xmx:3HvZaAjUx5FiP8HWa1u3RLmA8XF6Vq0pFX9UvoF0JigoSd3cNatEXA>
 <xmx:3HvZaEfFilCj5reAWQL69xz3qpTFp2k24ZbR8mmH0OFg2dlubYt1ag>
 <xmx:3HvZaLncsu9il7utKi4Iwl_TpE4dvjTl78MJvsCMEHUxnmH3DyBRDA>
 <xmx:3HvZaCO5tfC6MRhaGhTBbZzxLGUDsuWHzyuaNkJeoBUDz2aol_mw-nuv>
Feedback-ID: i16314712:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 28 Sep 2025 14:18:03 -0400 (EDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\))
Subject: Re: bug#79471: [PATCH] Add basic macOS acccessibility support for
 frames
From: Dani Brown <d@HIDDEN>
In-Reply-To: <864iso8czc.fsf@HIDDEN>
Date: Sun, 28 Sep 2025 19:17:51 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <33652EF2-0EFB-4CAE-9CCB-0007E4D099F3@HIDDEN>
References: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
 <86y0q9h1bx.fsf@HIDDEN> <87ecrxttit.fsf@HIDDEN> <864iso8czc.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3826.700.81)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79471
Cc: Robert Pluim <rpluim@HIDDEN>, 79471 <at> debbugs.gnu.org, alan@HIDDEN
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 27 Sep 2025, at 10:24, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
> Thanks.  Do we have anyone here who does use Raycast?  If so, could
> they please try this patch and ack?

Note the patch isn=E2=80=99t specific to Raycast, it can also be tested =
with the Applescript I posted:

  tell application "System Events" to get every window of (first process =
whose name is "Emacs")

Either paste that into Script Editor and give it the accessibility =
permission when prompted, or use osacript(1) (see the -e flag) and do =
similarly.

Thanks all=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.

Message received at 79471 <at> debbugs.gnu.org:


Received: (at 79471) by debbugs.gnu.org; 27 Sep 2025 09:24:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 27 05:24:45 2025
Received: from localhost ([127.0.0.1]:39018 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v2RAb-0003lJ-3r
	for submit <at> debbugs.gnu.org; Sat, 27 Sep 2025 05:24:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48444)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1v2RAQ-0003jA-Jq
 for 79471 <at> debbugs.gnu.org; Sat, 27 Sep 2025 05:24:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1v2RAI-0001UE-TX; Sat, 27 Sep 2025 05:24:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=5BpBUpFGuKvXZi0P0pxaz9lRiP8RbVRAOYeKRQrEzoc=; b=XoC2Fh3goSz6SjX9JZt1
 gSlo3LLyr3/uGVm7JXaa0Bfs7d7SkYYLXTLVu+V8ACXir9j4IVpQin762exXz51kMa2IzuynHDRqA
 XKA2GYuOjI6ci71E8oIX0K9Ku1QCdivXkn486kL9I+NIblx5txjrX9Y/xg3b5jSzOptDSLi5/lIRa
 sZkGHzaDaAY+6ySNqKbDaiHOFEHVSA/uMGdtuMJvFJ9R+4HBo1ByncqCY0Nm7F3wf668UcVSGk+C0
 w71oKshTp1hgyXesf4iPxfsKn32RFDTWNxQx7bdTvWH6Bd5euBi1ROj1j1ynM6bUv9oo/zE3AAapj
 AjXfSLXtWs/EHg==;
Date: Sat, 27 Sep 2025 12:24:23 +0300
Message-Id: <864iso8czc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87ecrxttit.fsf@HIDDEN> (message from Robert Pluim on Tue, 23
 Sep 2025 11:20:10 +0200)
Subject: Re: bug#79471: [PATCH] Add basic macOS acccessibility support for
 frames
References: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
 <86y0q9h1bx.fsf@HIDDEN> <87ecrxttit.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79471
Cc: alan@HIDDEN, 79471 <at> debbugs.gnu.org, d@HIDDEN
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: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Cc: Dani Brown <d@HIDDEN>,  Alan Third <alan@HIDDEN>,
>   79471 <at> debbugs.gnu.org
> Date: Tue, 23 Sep 2025 11:20:10 +0200
> 
> >>>>> On Sat, 20 Sep 2025 13:20:50 +0300, Eli Zaretskii <eliz@HIDDEN> said:
> 
>     >> From: Dani Brown <d@HIDDEN>
>     >> Date: Thu, 18 Sep 2025 19:47:04 +0100
>     >> 
>     >> When trying to find Emacs frames with a macOS window-switching utility
>     >> (Raycast's window listing, if you're interested), I saw that they didn't
>     >> get listed. This appears to be the same reason that, before this patch,
>     >> no windows get returned by the following AppleScript:
>     >> 
>     >> tell application "System Events" to get every window of (first process whose name is "Emacs")
>     >> 
>     >> After this patch, they do, along with their names as set by Emacs. And
>     >> they also get listed as expected by Raycast.
>     >> 
>     >> Incidentally this doesn't affect all utilities of this type. Contexts,
>     >> for instance, was always able to find Emacs frames. I guess it uses
>     >> a lower-level API. Still, this seems an improvement.
> 
>     Eli> Thanks.
> 
>     Eli> Would users of Emacs on macOS please try this patch and report back?
> 
> It builds and I havenʼt seen any negative side effects. But then again
> I donʼt use Raycast.

Thanks.  Do we have anyone here who does use Raycast?  If so, could
they please try this patch and ack?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.

Message received at 79471 <at> debbugs.gnu.org:


Received: (at 79471) by debbugs.gnu.org; 23 Sep 2025 09:20:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 23 05:20:31 2025
Received: from localhost ([127.0.0.1]:40118 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1v0zCI-0004Tc-2a
	for submit <at> debbugs.gnu.org; Tue, 23 Sep 2025 05:20:30 -0400
Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:59804)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1v0zC6-0004OM-GL
 for 79471 <at> debbugs.gnu.org; Tue, 23 Sep 2025 05:20:25 -0400
Received: by mail-wr1-x434.google.com with SMTP id
 ffacd0b85a97d-3f2cf786abeso2275808f8f.3
 for <79471 <at> debbugs.gnu.org>; Tue, 23 Sep 2025 02:20:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1758619211; x=1759224011; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=SKtk0jaTsOqpyclQeeuL2p4NaWUA4TyWD/nBYMnBjkQ=;
 b=ZDJE73dy8Mz9sunOBUP+GGb+s8iR0jPrhQ88cNdfLdSbHhyduCT1i6oKfvqUPFHOam
 2eqRqqea9pVU1VgmgGFsMa5aL5vY18yMUNYi3GM5iIXhaxAzDT+4lNjT45rfg6IkCITk
 KPt+oJ/JmFbiDeEU783o44epsBctLaNG8nwuBn0rPvc7ktZVbINE3dGK/qLF5lHjyD7z
 Ov6+zQ+fyVLHfsI+aUqUN71vYV5VumjXTE7z1kDLVAjIDlqjbk5smfrvqPb1aatwz8O4
 ufQoNzIB4cY6Xd7BhT+Qrq+RC1gJmCspq/4LLb65gjVKwRGRgyxR1AYNHACjHnwJ1t1u
 8A+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1758619211; x=1759224011;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=SKtk0jaTsOqpyclQeeuL2p4NaWUA4TyWD/nBYMnBjkQ=;
 b=VpG56XL9lqtqc/LyvXQBRKuN2/dVqDobIuDsU0uHCZL6TUm5gTnfQ9irb9wXPPZqrc
 YKtX9oPJeJq9UwFQhDZTg+w2lSL+OpeqSrr/ryRfUx0c58YEONQfc4IgUt/JXUj2BmTV
 OrwLZRW7tJecgkGRdyE5vShlchVY7f1i04coW7zvaZm+X+hLigrxyRngu0CWI8z+KXSC
 x6A1jCYF7/+FYcijKLc3x/4e8IEzZWQce75YSL0w0CdsClU28Jf3PZwElzVh+dD8wZhp
 +5DATckxEgf8Fc6ksG0oKfTWuwtVpn7anUa9LVSiNXCV3/QjdBBhnoH5RPVeSx5BCp06
 Ouww==
X-Forwarded-Encrypted: i=1;
 AJvYcCXeUtjnrg4EtbVQZjDB7/hmPH3BKaC+trxBPH6lIZBJuejA7+ocHx6IsEIkuJOrJS4jz/Mphg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yybh6vqiTyx1hzhFF7nbobPEVVNsiAj4CwU7h3+ci0MnfwZDrsG
 dntVtYUqRBs04gDk8YJOYKqmu8eBR+5NFCHSA3h9gRVCXQSCinCEwYj01jn0qCBY
X-Gm-Gg: ASbGncuVZ9qlM81fgJEWaBoulR1HgZgdDtFO5wBzGZarnd50Mz2Y0EFhKGITVzUuC0T
 5PBbCIP7pF2HTKj/qNY7RcOTiYJnXVCdf9GWCfKtZlmQ0bCt5RR9/gwuhtknB4soLnd8EOipsGO
 bVPkJshrZWVyGfkId65olOwR+h8T0ooeLCn10UlXc8aYpeVPVAZSf65Y/Y4Rk3FgjXkBC4n0VQH
 icHCICY2P88hpQcNIdMV6YC4GSkVYPvqIIV1DSCRcY5xU7hr66pl8/kCicIb+eYEelLWiEsVT+o
 4MxdGU75El/tptmbIzf+tiBnvV0RN9QjIfy+q8QeOVTRUTcBkfYJ6Mvw9ybP+PZ1QqM5M3fNg2R
 UGG0PvfY7ag==
X-Google-Smtp-Source: AGHT+IG39ssgM4D9U/3ia2kN8GVAMhN1n8OpMyCsNnR2yZD3xvKC06Oi8auZwfdnHuFT5HoheCvOEQ==
X-Received: by 2002:a05:600c:524b:b0:45b:9a7b:66ba with SMTP id
 5b1f17b1804b1-46e1d98f7c2mr17376285e9.14.1758619211144; 
 Tue, 23 Sep 2025 02:20:11 -0700 (PDT)
Received: from rltb ([2a01:e0a:3f3:fb50:d0f6:c585:f13a:3a52])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-46d51e5d863sm73121775e9.24.2025.09.23.02.20.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Sep 2025 02:20:10 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79471: [PATCH] Add basic macOS acccessibility support for
 frames
In-Reply-To: <86y0q9h1bx.fsf@HIDDEN>
References: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
 <86y0q9h1bx.fsf@HIDDEN>
Date: Tue, 23 Sep 2025 11:20:10 +0200
Message-ID: <87ecrxttit.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79471
Cc: Alan Third <alan@HIDDEN>, 79471 <at> debbugs.gnu.org,
 Dani Brown <d@HIDDEN>
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 (-)

>>>>> On Sat, 20 Sep 2025 13:20:50 +0300, Eli Zaretskii <eliz@HIDDEN> said:

    >> From: Dani Brown <d@HIDDEN>
    >> Date: Thu, 18 Sep 2025 19:47:04 +0100
    >>=20
    >> When trying to find Emacs frames with a macOS window-switching utili=
ty
    >> (Raycast's window listing, if you're interested), I saw that they di=
dn't
    >> get listed. This appears to be the same reason that, before this pat=
ch,
    >> no windows get returned by the following AppleScript:
    >>=20
    >> tell application "System Events" to get every window of (first proce=
ss whose name is "Emacs")
    >>=20
    >> After this patch, they do, along with their names as set by Emacs. A=
nd
    >> they also get listed as expected by Raycast.
    >>=20
    >> Incidentally this doesn't affect all utilities of this type. Context=
s,
    >> for instance, was always able to find Emacs frames. I guess it uses
    >> a lower-level API. Still, this seems an improvement.

    Eli> Thanks.

    Eli> Would users of Emacs on macOS please try this patch and report bac=
k?

It builds and I haven=CA=BCt seen any negative side effects. But then again
I don=CA=BCt use Raycast.

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.

Message received at 79471 <at> debbugs.gnu.org:


Received: (at 79471) by debbugs.gnu.org; 20 Sep 2025 10:21:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 20 06:21:03 2025
Received: from localhost ([127.0.0.1]:44498 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uzuiE-0005n8-Ge
	for submit <at> debbugs.gnu.org; Sat, 20 Sep 2025 06:21:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48536)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uzuiC-0005m1-Pb
 for 79471 <at> debbugs.gnu.org; Sat, 20 Sep 2025 06:21:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uzui5-00059H-J4; Sat, 20 Sep 2025 06:20:53 -0400
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=lIxzM/K98VYJcwiD/AtYdOf0EP4A1yF5qlGraEAIklk=; b=O9m////KSTS7
 qw0dEx1+ylVPPkimeKRjHij3YN7Qb+1NGIhwfNq8e9jy4kGjm7hVN7822PSA9EXzXiDv2hMtLQRET
 hkGONHCQ29F9qkVv3yiq8vM7Qk2f9WpS1nc9C3zTbuN+mvo6NUc2JZBNX+YftdaPRUXl6sL4Q3Q/u
 roK3IKLxmPy9rpPjQ7dL1E1GTMI4Xh/wq+3wQ/OTFwZLSWUr23I1jtmwQViLEUYU4Pnzt4Jvi5l4F
 xE1UKyc+ytaqYedfywMI2hd+YZKUiLXyMK0lRWawI/tSBpOeFfUnSTH0PsZvaTez3JHthRB14R6pY
 A/G9jVtLuV9JV5bFTx5sZA==;
Date: Sat, 20 Sep 2025 13:20:50 +0300
Message-Id: <86y0q9h1bx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dani Brown <d@HIDDEN>, Alan Third <alan@HIDDEN>,
 Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN> (message from
 Dani Brown on Thu, 18 Sep 2025 19:47:04 +0100)
Subject: Re: bug#79471: [PATCH] Add basic macOS acccessibility support for
 frames
References: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79471
Cc: 79471 <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: -3.3 (---)

> From: Dani Brown <d@HIDDEN>
> Date: Thu, 18 Sep 2025 19:47:04 +0100
> 
> When trying to find Emacs frames with a macOS window-switching utility
> (Raycast's window listing, if you're interested), I saw that they didn't
> get listed. This appears to be the same reason that, before this patch,
> no windows get returned by the following AppleScript:
> 
>   tell application "System Events" to get every window of (first process whose name is "Emacs")
> 
> After this patch, they do, along with their names as set by Emacs. And
> they also get listed as expected by Raycast.
> 
> Incidentally this doesn't affect all utilities of this type. Contexts,
> for instance, was always able to find Emacs frames. I guess it uses
> a lower-level API. Still, this seems an improvement.

Thanks.

Would users of Emacs on macOS please try this patch and report back?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Sep 2025 04:33:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 19 00:33:25 2025
Received: from localhost ([127.0.0.1]:35931 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uzSoG-0003Ow-8A
	for submit <at> debbugs.gnu.org; Fri, 19 Sep 2025 00:33:25 -0400
Received: from lists.gnu.org ([2001:470:142::17]:46622)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <d@HIDDEN>) id 1uzJfI-0007VN-V8
 for submit <at> debbugs.gnu.org; Thu, 18 Sep 2025 14:47:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <d@HIDDEN>) id 1uzJfB-0001VN-1a
 for bug-gnu-emacs@HIDDEN; Thu, 18 Sep 2025 14:47:26 -0400
Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <d@HIDDEN>) id 1uzJf8-0002eB-PW
 for bug-gnu-emacs@HIDDEN; Thu, 18 Sep 2025 14:47:24 -0400
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfout.phl.internal (Postfix) with ESMTP id 48ECDEC01B0
 for <bug-gnu-emacs@HIDDEN>; Thu, 18 Sep 2025 14:47:16 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Thu, 18 Sep 2025 14:47:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dani.cool; h=cc
 :content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1758221236; x=1758307636; bh=zB1dHqtjEz2KDYF4rKBfMHDZKPkeyil4
 RpZH3SgCdRs=; b=YEnZAmybp3f2WW8iAZEzMHtE9fjgp7Bppo5hrsSa3+lIlJ7c
 XkXE7fYMOzQyEAOMrvMeZYKAl9eSnbcOO2bgn+f29e8l+P9kwWK7LqoLd0+CEuCf
 9jxkgiUSE6+KpUs1kq2bvOi2EAedvFBsx3MtEQmgDnL87PZhetrFJgI7gf2+zSft
 KjswD+PDKNWOjs+DfNPmARASeDKpbQEJaNhHwROZwP6Wxchcfu1pu1qg4+bk1W2H
 YPH6ervfScxzJpSWnAbPLtVyKWjX4G2YKzkGENappvgPlnXvm4KHaa8GIx++g707
 ENpd6c89jchtMI3zq34Lv8VjJka5y0eqJBzHIg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1758221236; x=
 1758307636; bh=zB1dHqtjEz2KDYF4rKBfMHDZKPkeyil4RpZH3SgCdRs=; b=m
 SsIkxsLUQw0dpz8y3ab3PGI5FO5xPtDgq653GLZxIsXWe3n9J1PSNkUmNVohZlF8
 6s4mL9laYOGhw1VC/SX8NExaZAASlXsSvN8cyonRTCj61ypKkZKuT2NE6VtxyMyS
 7Px6dDoKZExEjOSYIPdHSe2Xjx3HGaI9isHG95FQqBLm4oVjEYfp5048d8JLmlMT
 XHSNgQE4fKSgTGJpmGrGzECmHPU/Q8UbsTkq9MIuhfiHe7f+QvnhCqC6MI4pJcj4
 7RfS1LcAMT/N+SnBoPnwglMnPK8jf7P92OQlaiAMdqrgyhnSn8BmgBgwz5Ap4oLP
 jLIO6tZOrX+Hoxwp1hhEw==
X-ME-Sender: <xms:tFPMaG8_wpgHQtl8pC6YxD0eZHDammsPdCGC85dfIQcoM-_VPe3Pig>
 <xme:tFPMaB-Jt1TXilZ5Hue_xry-zpdX2iEu5Gbv9CJLNC5VLGYhb70PEVrsagfJo3zUf
 OI28n0JUvkuzR5BhA>
X-ME-Received: <xmr:tFPMaMpQi-iwqkHioJ1dx_cctwHlG-7AdjAqO__yIoIOd1Tyi9UqIKsbVj9UKbBMNfq7MsVpCLfNicdL029_yWtL1R1N7VF->
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdegjedtlecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecunecujfgurhephfgtggfukfffvffosehmtdhmrehhtdejne
 cuhfhrohhmpeffrghnihcuuehrohifnhcuoegusegurghnihdrtghoohhlqeenucggtffr
 rghtthgvrhhnpeehgfevhfdvgfffgefftdfgvefgveeghfeutdevhfdvjeevveehjeettd
 duiedvheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm
 pegusegurghnihdrtghoohhlpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpoh
 huthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:tFPMaEpNQVAtVkglbtp5OP53s_-i6dFIT8P8Bh62BCtVEKSuwZC0xA>
 <xmx:tFPMaKnl66ubOa0b2vT-JUd7ajJVkLG4k7-0IrOYPP47L-05fF4E-w>
 <xmx:tFPMaGGUtwqYACsm2LY02iUcAUYl1SXiM4tlkMoz9VReyil-ltMl-w>
 <xmx:tFPMaDpAkCguT_5pApbqpGRdfI2jFxcYmzFJ_RIbGyMAPqM4w4ImTg>
 <xmx:tFPMaJ9qJI6-n0t_7K5NaKNE_yzmC1QWVgmd28zgC0KMu4t9XavOSYwz>
Feedback-ID: i16314712:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 18 Sep 2025 14:47:15 -0400 (EDT)
From: Dani Brown <d@HIDDEN>
Content-Type: multipart/mixed;
 boundary="Apple-Mail=_73FC3ABD-C397-4A1D-B273-115FC75E390E"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\))
Subject: [PATCH] Add basic macOS acccessibility support for frames
Message-Id: <715A4C11-C16A-474B-84E2-A6076D9C0914@HIDDEN>
Date: Thu, 18 Sep 2025 19:47:04 +0100
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3826.700.81)
Received-SPF: pass client-ip=103.168.172.145; envelope-from=d@HIDDEN;
 helo=fout-a2-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 19 Sep 2025 00:33:22 -0400
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: -0.3 (/)


--Apple-Mail=_73FC3ABD-C397-4A1D-B273-115FC75E390E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi,
When trying to find Emacs frames with a macOS window-switching utility
(Raycast's window listing, if you're interested), I saw that they didn't
get listed. This appears to be the same reason that, before this patch,
no windows get returned by the following AppleScript:

  tell application "System Events" to get every window of (first process =
whose name is "Emacs")

After this patch, they do, along with their names as set by Emacs. And
they also get listed as expected by Raycast.

Incidentally this doesn't affect all utilities of this type. Contexts,
for instance, was always able to find Emacs frames. I guess it uses
a lower-level API. Still, this seems an improvement.

Thanks

In GNU Emacs 30.2 (build 1, aarch64-apple-darwin24.6.0, NS
appkit-2575.70 Version 15.6.1 (Build 24G90))
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.6.1

Configured using:
'configure
--prefix=3D/nix/store/yy4d1whcafa8za1y4jn0zix8gic1xvyh-emacs-pgtk-30.2
--disable-build-details --with-modules --disable-ns-self-contained
--with-ns --with-compress-install --with-toolkit-scroll-bars
--with-native-compilation --without-imagemagick --with-mailutils
--without-small-ja-dic --with-tree-sitter --without-xinput2
--without-xwidgets --without-dbus --without-selinux=E2=80=99


--Apple-Mail=_73FC3ABD-C397-4A1D-B273-115FC75E390E
Content-Disposition: attachment;
	filename=0001-Add-basic-macOS-acccessibility-support-for-frames.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-Add-basic-macOS-acccessibility-support-for-frames.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20bce696e8a7cfe3209630daf5a5ba60b02c55e413=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dani=20Brown=20<d@HIDDEN>=0ADate:=20Sun,=20=
14=20Sep=202025=2020:27:13=20+0100=0ASubject:=20[PATCH]=20Add=20basic=20=
macOS=20acccessibility=20support=20for=20frames=0A=0AAllow=20frames=20to=20=
be=20listed=20by=20macOS=20System=20Events.=0A*=20src/nsterm.h=20=
(EmacsWindow):=20Add=20NSAccessibility=20protocol=0A*=20src/nsterm.m=20=
(EmacsWindow):=20Implement=20NSAccessibility=0A---=0A=20src/nsterm.h=20|=20=
=202=20+-=0A=20src/nsterm.m=20|=2022=20++++++++++++++++++++++=0A=202=20=
files=20changed,=2023=20insertions(+),=201=20deletion(-)=0A=0Adiff=20=
--git=20a/src/nsterm.h=20b/src/nsterm.h=0Aindex=20=
d9d16ffabd3..03193f83151=20100644=0A---=20a/src/nsterm.h=0A+++=20=
b/src/nsterm.h=0A@@=20-416,7=20+416,7=20@@=20enum=20ns_return_frame_mode=0A=
=20=20=20};=0A=20=0A=20/*=20EmacsWindow=20=20*/=0A-@interface=20=
EmacsWindow=20:=20NSWindow=0A+@interface=20EmacsWindow=20:=20NSWindow=20=
<NSAccessibility>=0A=20{=0A=20=20=20NSPoint=20grabOffset;=0A=20=20=20=
NSEvent=20*last_drag_event;=0Adiff=20--git=20a/src/nsterm.m=20=
b/src/nsterm.m=0Aindex=205127739e2d9..34b49c51adf=20100644=0A---=20=
a/src/nsterm.m=0A+++=20b/src/nsterm.m=0A@@=20-10284,6=20+10284,28=20@@=20=
-=20(NSDragOperation)=20beginDrag:=20(NSDragOperation)=20op=0A=20=20=20=
return=20selected_op;=0A=20}=0A=20=0A+/*=20Accessibility=20support=20for=20=
System=20Events=20and=20AppleScript=20*/=0A+-=20(NSString=20=
*)accessibilityRole=0A+{=0A+=20=20return=20NSAccessibilityWindowRole;=0A=
+}=0A+=0A+-=20(NSString=20*)accessibilityTitle=0A+{=0A+=20=20return=20=
self.title;=0A+}=0A+=0A+-=20(BOOL)isAccessibilityElement=0A+{=0A+=20=20=
return=20YES;=0A+}=0A+=0A+-=20(NSArray=20*)accessibilityChildren=0A+{=0A=
+=20=20NSArray=20*children=20=3D=20[super=20accessibilityChildren];=0A+=20=
=20return=20children=20?=20children=20:=20@[];=0A+}=0A+=0A=20@end=20/*=20=
EmacsWindow=20*/=0A=20=0A=20=0A--=20=0A2.50.1=0A=0A=

--Apple-Mail=_73FC3ABD-C397-4A1D-B273-115FC75E390E--




Acknowledgement sent to Dani Brown <d@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79471; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 28 Sep 2025 19:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.