Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.Received: (at 81324) by debbugs.gnu.org; 1 Jul 2026 11:44:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 01 07:44:35 2026 Received: from localhost ([127.0.0.1]:58879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wetMp-0002sb-BM for submit <at> debbugs.gnu.org; Wed, 01 Jul 2026 07:44:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59608) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wetMn-0002rz-Ij; Wed, 01 Jul 2026 07:44:33 -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 1wetMi-0005fo-8q; Wed, 01 Jul 2026 07:44:28 -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=x68sENLayTARRiwCBH9asc7b83fp8uVR2iUXH9/nem0=; b=NpNAw9bzcx41TSahJMpa mT8uXGnmzip89YHcnMF/xGkNx4CElZg2higLBSXYBAot5kQxwGjjFw+ZBCGFZ+nfOlvNu1Y2/pBew TzmoGwJYvr8wIXoQHMIOkaASDuN51fW3F5ZoxhG/Rak8faORv6+5UkBJ1AgZgplLrlc2p4nlmNNy1 zrJ5aA4Mw6IJPalM7hQlqCS9bIzsQ92kwrQd/gWyAzI/XX2vbjRXPWUVDJ3SomEuZlQYLnEvJ+5kE TrWHykzNZV4EQGQTbb85yxB2vysqyWq/5V0kyTvl+CKxGpkngKFAT1zKUVf9xRmRXXgPolpHk1qQw UPlWvt1g0AxX1g==; Date: Wed, 01 Jul 2026 14:44:24 +0300 Message-Id: <86ik6zc4tj.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN> In-Reply-To: <m2fr23xvs8.fsf@HIDDEN> (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Wed, 01 Jul 2026 04:56:23 +0200) Subject: Re: bug#81324: 32.0.50; NS toolbar event-loop hang seen in AUCTeX/LSP LaTeX buffers References: <3AFF7BC6-721E-4DD1-B9B0-F2AF3C273C4E@HIDDEN> <CAN+1Hbqg_YqgjpRUM8hVGVN_cGjpkLJ3xUx4tJY+KrMhEjP_5A@HIDDEN> <m2fr23xvs8.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: 81324 Cc: kickingvegas@HIDDEN, shipmints@HIDDEN, eli.tziperman@HIDDEN, 81324 <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 (---) merge 81324 72496 thanks > Cc: 81324 <at> debbugs.gnu.org, Eli Tziperman <eli.tziperman@HIDDEN>, > Charles Choi <kickingvegas@HIDDEN> > From: Gerd Möllmann <gerd.moellmann@HIDDEN> > Date: Wed, 01 Jul 2026 04:56:23 +0200 > > Stéphane Marks <shipmints@HIDDEN> writes: > > > I'm reminded of this thread which I think did not have an associated bug, though this seems there would be one out there. > > > > https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00612.html > > That's bug#72496. Thanks, I'm therefore merging them.
bug-gnu-emacs@HIDDEN:bug#81324; Package emacs.
Full text available.Received: (at 81324) by debbugs.gnu.org; 1 Jul 2026 02:56:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 30 22:56:34 2026 Received: from localhost ([127.0.0.1]:56038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wel7q-0005EX-6R for submit <at> debbugs.gnu.org; Tue, 30 Jun 2026 22:56:34 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:52699) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>) id 1wel7m-0005Df-Q2 for 81324 <at> debbugs.gnu.org; Tue, 30 Jun 2026 22:56:31 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4939a809b24so1338615e9.1 for <81324 <at> debbugs.gnu.org>; Tue, 30 Jun 2026 19:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782874584; x=1783479384; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8TqTzp+1jzXmgXegPwuekXO69tmqw5C4pZ7auFUWxYE=; b=iyK7OzK/4R3B5BVCnbseccEBYVXwwCNpZS9IkgB0XN1JAgrtJpaT5gbw9ZVz51xHMn 2xnjYsIJkeZl50AmVUOdT6SYrWycAqFviU7r3qPNUXgNH3lhNh39wq7I44ISAPMPn5HF VMEV8fBXywktaEF4KwSnIBO7Z4IbXfI4wyV0l4U7GE65dcFXSi7q21P+2cQsD9hzZfOQ 8HFnOd3bO7VoxayoBzqkyFDrSIvrVjiUD2x3zkHxESsdixKzKLnKMYIcN455B4ajLTSe wOLnHK9gh1hIV45vg0Hx4HJ4759F+lIqSCjKzD6ioAsaO3amtS5APksfsSegjuMDB6oJ LjKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782874584; x=1783479384; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8TqTzp+1jzXmgXegPwuekXO69tmqw5C4pZ7auFUWxYE=; b=gdBOpcGkMfOBsSysjp2JvHNvEf3b8hPAjKudU0O2pW66wDu/VceDP6BVEd+kRGpBs1 e/ZbKilp85PrENtqV+wRvGcf0gf+WSJ35JcvHYG4ugHf8jOht6yRLJptn4/1ONQ7UU2B XeR16y+rUGiQtAyEd3WmgAYqfB2QxZyUS1Gn59xdiZtnpq/WSoXF+D1wWIGbo2nUB+Ig UHTH3EzjNwr7DQFYohzcbC/57ZXWgOp5bSa66DHVC1QNtJ05aDhAhXVItD5s1InIc3J/ uk0sV4+BVYFRQSNym8fGVPxQ5oyBXeXlSCV+PyrGbXprIKkmGfjQwf5Qn9O/UH2fVW72 ZZig== X-Forwarded-Encrypted: i=1; AFNElJ+28yxclr8RpHoS323CAwfhvq4a1ODO3wTNNhb2uY9O6Jkn3rxKwn4cApy9XmmE79X6pBKKxA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyGS8JoRKOZaq6ygfNXt9wZulSifs1WrEKLRauzImrRTiCq/KHa vFfAv6lPzAhjr847MZgB6SO3c19tZPpDQ8tpUmE72tzdoZLC7k+9N8vz X-Gm-Gg: AfdE7ckEDsJw5f6qNZGjPF2H9qPKc1y/xf0UVlwI3XSiT/9KhUTWyK5OTVTaQZtwgcS EAthjZE+IxxzdOUFdMYlXcMMTIFcj69IbtmLZ2CYMpTDgWIXy7d2vmt3+2zC8c2iAqwBfjqzgYk wCUmdFzjTwrMQq88+iyigM9pFwNWzHBUOyY9jx6QY6cYT4a9ylksek5xmBl5b5BVqj2Pwg/oHbJ eyOtxKZqRnRMJaqP7q74c8qhhv93KqFfWjorzKq4ESQ296MPohVnYpzB0sWhaRV10lyHppL8u9h pvqa5Kq4TyU8icB/KqpP52fS1CAER8r51nlWhcjbgWFXU+ydu3dH0tRa9NuiqfnJhPzUt1FYvI4 hPhRx2K+olOLlph+b1KfLlhH856bLk/MngxGS6lpykDOa0Gpjxonb51HSxo0ni8yGXxdHpN0LWt fo9hLFdmSrsIACuS0f2mIZEubCyIWTWwBQLAFH8CJ+3VtFNC0jjT0Qv7BxGBMjzBYbCV1FBUd5b m0g061nQSd4sGNOsoaotp7m X-Received: by 2002:a05:600c:34d3:b0:490:e60b:6860 with SMTP id 5b1f17b1804b1-493bda58050mr43768765e9.7.1782874584462; Tue, 30 Jun 2026 19:56:24 -0700 (PDT) Received: from pro4 (p200300e0b705970091259588f20dc156.dip0.t-ipconnect.de. [2003:e0:b705:9700:9125:9588:f20d:c156]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493be493c24sm26684865e9.0.2026.06.30.19.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2026 19:56:24 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN> To: =?utf-8?Q?St=C3=A9phane?= Marks <shipmints@HIDDEN> Subject: Re: bug#81324: 32.0.50; NS toolbar event-loop hang seen in AUCTeX/LSP LaTeX buffers In-Reply-To: <CAN+1Hbqg_YqgjpRUM8hVGVN_cGjpkLJ3xUx4tJY+KrMhEjP_5A@HIDDEN> References: <3AFF7BC6-721E-4DD1-B9B0-F2AF3C273C4E@HIDDEN> <CAN+1Hbqg_YqgjpRUM8hVGVN_cGjpkLJ3xUx4tJY+KrMhEjP_5A@HIDDEN> Date: Wed, 01 Jul 2026 04:56:23 +0200 Message-ID: <m2fr23xvs8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 81324 Cc: 81324 <at> debbugs.gnu.org, Eli Tziperman <eli.tziperman@HIDDEN>, Charles Choi <kickingvegas@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: 0.0 (/) St=C3=A9phane Marks <shipmints@HIDDEN> writes: > I'm reminded of this thread which I think did not have an associated bug,= though this seems there would be one out there. > > https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00612.html That's bug#72496.
bug-gnu-emacs@HIDDEN:bug#81324; Package emacs.
Full text available.
Received: (at 81324) by debbugs.gnu.org; 30 Jun 2026 14:15:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 30 10:15:23 2026
Received: from localhost ([127.0.0.1]:52064 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1weZFA-00044d-Ql
for submit <at> debbugs.gnu.org; Tue, 30 Jun 2026 10:15:23 -0400
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45086)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1weZF7-00044B-Nd
for 81324 <at> debbugs.gnu.org; Tue, 30 Jun 2026 10:15:19 -0400
Received: by mail-ed1-x530.google.com with SMTP id
4fb4d7f45d1cf-68bd9fce347so7856816a12.2
for <81324 <at> debbugs.gnu.org>; Tue, 30 Jun 2026 07:15:17 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1782828911; cv=none;
d=google.com; s=arc-20260327;
b=d99msTyoTFOsvHmVtmui1S36qaTV/RKMHsBJhD1K7k7wt/+zQzxAqi/JlFqTJsV8Ub
IWS1sGOA61Ex2DJyJmXwX8WUVOi3MgazJUWh1xDVFXH+Zf/zRDRNT5NrSTbmwyc87aBZ
20O7AVWdem72xuUMlm66N0ctSWBxKs8pBi6VZzm6+CS2WfveLY5gDSzFO0887pkWSUce
BHSCz6PhmIK20x2Zu3uhwBTye43cTK/hsknC4+Fh3kl9jEyS43LJDGwLG01HuN8VJwPG
zJP1G5qaYejCiY65lmojCRT4Si4DeSs4JzxLF1oGC86dJVJcGninZBDhrFEUbT1QzLn6
D5cw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=4uwnVJ4qnzMLj4K6ac4EZISm2Jdwje2SVzI4h+bCjx8=;
fh=QjlOELiExYfEP9iSxo1PwU1HVyrGjLDdH0jVgaOOkEs=;
b=ZNoudkCNntw5SNbLy9t1C4AM6hvrPx1SoBXP8wZm88yGBdT0JwkRHzZSbNKPY0H4GZ
QNoNbDXP+12m+D/T7VZ7i5rPiiEAEJb4J0C0Sxs71Skj/++bI8Wbc6/XAzXM2Yol/ykA
56Ilpr2rFg+UHbSYa9EJAw0tfqjJmToYgLU+Fzax54YhQG8LjSxoMZgfLQZBJqLK5mBC
s9Q+C1g7e9WWfYbk91cjqjEO5jxrLMBw2gVCLblAI6oDBw841bZqaUEj/5nZOInRuEmC
awQmgTZepD2AowrFAkUzNo8cfyGd3na5BdVe7hQthg7lhB8XJttFhsoBrEDyd/qAr9eH
7j4Q==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1782828911; x=1783433711; 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=4uwnVJ4qnzMLj4K6ac4EZISm2Jdwje2SVzI4h+bCjx8=;
b=UMOMPeJoPfsgJdUCixrGq8f05jJHJXL3SQ3+rI77wssTl8VLKlzDP7mvxeJmsTWnUP
e0OOEqGtAW/g/MdNrHVaDm/QxsbHjtNTEYdSJExODh8hDQULvRq+3pVfNyQ5b5arU1zo
6HTB9NewQfkde/K6Mojw2dYBFU/ydcf/zkcO3lrL4Jxr8Vn5mza5Hccsyq/+Q9hdLVXe
zH/P54fGRA1hco8y61s1b+pZv7D64nujeN0h+Aul+CLtDjUOgMd2Ki5AdUcQiXSipfar
NKFIq6i4nRkHBA7IQDKafdV57G8FIJqQYHXZqxcpiHeONusg+anoEv+JXyZ8PMTVsOjJ
K6Dw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1782828911; x=1783433711;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=4uwnVJ4qnzMLj4K6ac4EZISm2Jdwje2SVzI4h+bCjx8=;
b=lXA+Y/bhcvVplhXunG1vTP7NHcIhfxv1tRImdFYwnDM2f7HQ92/3HKtGFgc4Lfrvcv
lMilNyeKEh4d1/9oK1neIP815Ljclj2cyc0fEjehW1F9gnyMBSTajupwdiElrFXHG/8f
speles7lhWCH4TTL1Hntn6P95eg9B0pmrxlxfGreL9UYSsZcZIG3FvGT05NY7+Hw0WQX
TbsotQPLp1KI9e1CLn8JcX8bYfz2AnPEVyuOHygyx8IAHR5gbKKvj6nWC7+nWHHl5UDe
zgZzB0c/wPHHyEPXDqPFWbn9svT1mBpt8DqVgDVssqlgZ1H5yqgcj0PRpvkuQ3b5l1VE
//Mw==
X-Gm-Message-State: AOJu0YyTo6vxqyhQVPgConLHBrO6H7y+sCNWYA5sxTcWkJXyXVd5+unf
qE7eidyDH3AxkgVYqwbS/YZ5T7mBTAao6nEuGRmGN6vnrR6ULaW4r5zjb3Xharok9MFnp2bAZMy
tKrvGV+ka8lKlF2zBdUSvRAyp+xk6qbaNctB74nc=
X-Gm-Gg: AfdE7cmEH77nqwoDbpv9bgi8EIo5z6u0fedf4qfDw5EPcyVTeIOPcAwnH7M+Yz1y37M
kR3mXnvamijIMaKxbl6+r/ltPBznSIVWpz8EF5PE7OqhAbgr1bnaSsrEllEkZalFQ9tMVJDk2Js
cKZtcygRwlZx50s1VSVnSa6UO0nS22uChjh9OSsPVuoXDvpNJc3EHX+ol2Bio4VhSUk5LHgjpkT
G7L1Qh5aThCLxyGQEFWPSBx0aAFuJOYTkRQDtvcB83JvvRhl0YYDiUWHq1tSyEhC1dxE1o29kXR
HLFnf6H/pgI7O8zjscfMxv3OgJOiR/KAw7ketyz4jmaTaEL/kd9TcY+cbljOWYu1Pfw7bTEUv7S
r3N9dC2LxMkSU+TJ1LgRcARIsSezBwIQ/ek9FsH0Twi6Z+7gGs5nR9U6ewqwTVFQEk7aF2VG6aR
RucnsCETpiXSq+jZNWcb8EViEtliLCsdgr++OaW4iPR6P2VeolAQ==
X-Received: by 2002:a17:906:aad3:b0:c07:e025:1549 with SMTP id
a640c23a62f3a-c128714fc3dmr116225766b.15.1782828911123; Tue, 30 Jun 2026
07:15:11 -0700 (PDT)
MIME-Version: 1.0
References: <3AFF7BC6-721E-4DD1-B9B0-F2AF3C273C4E@HIDDEN>
In-Reply-To: <3AFF7BC6-721E-4DD1-B9B0-F2AF3C273C4E@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Tue, 30 Jun 2026 16:14:57 +0200
X-Gm-Features: AVVi8CdpYMKTjL4S5MzcPwmGtLZaNxzhuNwwLNUoSeonykXqskagEEF3qnYJRR0
Message-ID: <CAN+1Hbqg_YqgjpRUM8hVGVN_cGjpkLJ3xUx4tJY+KrMhEjP_5A@HIDDEN>
Subject: Re: bug#81324: 32.0.50; NS toolbar event-loop hang seen in AUCTeX/LSP
LaTeX buffers
To: Eli Tziperman <eli.tziperman@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000f164ff065579331d"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81324
Cc: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
81324 <at> debbugs.gnu.org, Charles Choi <kickingvegas@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: 0.0 (/)
--000000000000f164ff065579331d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Jun 28, 2026 at 5:36=E2=80=AFPM Eli Tziperman <eli.tziperman@gmail.=
com>
wrote:
> I encounter this as an intermittent hang in LaTeX buffers while using
> AUCTeX with LSP enabled. Clicking AUCTeX toolbar buttons while a
> LaTeX-related process is active leads to a hung Emacs. The following bug
> report and patch were created by Codex.
>
> The attached reduced reproducer does not require AUCTeX, LSP, LaTeX, or a
> .tex file.
> 2. How to reproduce
>
> Attached files:
>
> - repro/ns-toolbar-output.el
> - repro/run-ns-toolbar-output-repro.sh
> - repro/ns-read-socket-appdefined-fallback.patch
>
> Use an unpatched macOS NS Emacs, then run:
>
> <#m_1497592642483352513_cb1-1>cd repro <#m_1497592642483352513_cb1-2>./r=
un-ns-toolbar-output-repro.sh
>
> In the Emacs window:
>
> 1. Click the toolbar save icon. This starts a process named LaTeX; it
> is just /usr/bin/yes, used to produce continuous asynchronous output.
> 2. While output is flowing, click the toolbar delete/trash icon.
> 3. Answer Yes to the prompt.
>
> Expected behavior: Emacs remains responsive, waits for the sit-for 30,
> and then the command returns.
>
> Actual behavior on the unpatched NS build: Emacs hangs indefinitely after
> the trash icon click. It remains alive but does not respond.
> 3. Why it happens
>
> The hang is in the NS port event loop, not in AUCTeX, LSP, or LaTeX. Thos=
e
> packages appear to be timing amplifiers because they combine toolbar
> clicks, process output, redisplay, and toolbar updates.
>
> The relevant path is ns_read_socket_1 in src/nsterm.m. When no native
> event is immediately available, it posts an AppDefined event and then
> enters [NSApp run]:
>
> send_appdefined =3D YES;
> ns_send_appdefined (-1);
> [NSApp run];
>
> The code assumes that the synthetic AppDefined event will make [NSApp run=
] return.
> In this testcase, after a toolbar command reads from the minibuffer and
> then waits while process output and toolbar updates are active, that wake=
up
> can be lost, deferred, or otherwise fail to stop the nested AppKit run
> loop. Emacs then sleeps inside AppKit even though Emacs-side work is
> pending.
>
> A representative hung stack was:
>
> read_key_sequence
> read_char
> sit_for
> wait_reading_process_output
> ns_read_socket_1
> -[EmacsApp run]
> -[NSApplication run]
> mach_msg2_trap
>
> In lldb, the hung process had send_appdefined set and Emacs events
> queued, but the main thread was blocked in AppKit=E2=80=99s run loop.
> 4. Minimal patch attachment
>
> I attached repro/ns-read-socket-appdefined-fallback.patch. The patch adds
> a short default-run-loop fallback before entering [NSApp run]:
>
> [NSApp performSelector: @selector (stop:)
> withObject: NSApp
> afterDelay: 0.05
> inModes: [NSArray arrayWithObject:
> NSDefaultRunLoopMode]];
> [NSApp run];
> [NSObject cancelPreviousPerformRequestsWithTarget: NSApp
> selector: @selector (stop:)
> object: NSApp];
>
> This keeps the existing AppDefined wakeup path. If it works, [NSApp run] =
returns
> normally and the fallback is canceled. If the AppDefined wakeup does not
> stop the nested run loop, the delayed stop: breaks out of it. Scheduling
> the fallback only in NSDefaultRunLoopMode avoids firing it in modal
> panels.
> 5. Information from report-emacs-bug
>
> The following information is from report-emacs-bug/Emacs bug-report
> fields. Local user-identifying host and path values are sanitized.
>
> In GNU Emacs 32.0.50 (build 1, aarch64-apple-darwin25.5.0, NS
> appkit-2685.60 Version 26.5.1 (Build 25F80)) of 2026-06-14 built on
> local host
>
> Repository revision: ca44dce1ec1f8dc6208a2f78a80711b22978735c
> Repository branch: master
> System Description: macOS 26.5.1
>
> Configured using:
> 'configure --with-ns --with-modules --with-x-toolkit=3Dno --with-gnutls
> --with-tree-sitter --with-rsvg --with-sqlite3 --with-xml2
> 'CFLAGS=3D-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT'
> --prefix=3D/Users/<user>/build-emacs/prefix/emacs
> 'CPPFLAGS=3D-I/opt/homebrew/opt/sqlite/include
> -I/opt/homebrew/opt/libxml2/include -I/opt/homebrew/include'
> 'LDFLAGS=3D-L/opt/homebrew/opt/sqlite/lib
> -L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/lib''
>
> Configured features:
> ACL DBUS GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
> NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
>
> Important settings:
> value of $LC_ALL: C.UTF-8
> value of $LC_CTYPE: C.UTF-8
> value of $LANG: C.UTF-8
> locale-coding-system: utf-8-unix
>
> Major mode: Fundamental
>
> Minor modes in effect:
> tooltip-mode: t
> global-eldoc-mode: t
> show-paren-mode: t
> electric-indent-mode: t
> mouse-wheel-mode: t
> file-name-shadow-mode: t
> minibuffer-nonselected-mode: t
> minibuffer-regexp-mode: t
> line-number-mode: t
> indent-tabs-mode: t
> auto-composition-mode: t
> auto-encryption-mode: t
> auto-compression-mode: t
>
> Load-path shadows:
> None found.
>
> Features:
> (emacsbug lisp-mnt message mailcap yank-media puny dired
> dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
> rfc6068 epg-config gnus-util text-property-search time-date subr-x
> mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
> cl-loaddefs cl-lib sendmail mail-parse rfc2231 rfc2047 rfc2045
> ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
> eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
> elisp-mode 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 font-core
> term/tty-colors frame minibuffer nadvice seq simple cl-generic
> indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
> jka-compr-hook help abbrev obarray oclosure cl-preloaded button
> loaddefs theme-loaddefs faces cus-face macroexp files window
> text-properties overlay sha1 md5 base64 format env code-pages mule
> custom widget keymap hashtable-print-readable backquote threads
> dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process
> tty-child-frames native-compile emacs)
>
> Memory information:
> ((conses 16 38323 18551) (symbols 48 4958 1) (strings 32 10845 3105)
> (string-bytes 1 421420) (vectors 16 4580) (vector-slots 8 59779 8988)
> (floats 8 20 1) (intervals 56 5 14) (buffers 1064 5))
>
>
I'm reminded of this thread which I think did not have an associated bug,
though this seems there would be one out there.
https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00612.html
--000000000000f164ff065579331d
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;b=
ackground-color:transparent">On Sun, Jun 28, 2026 at 5:36=E2=80=AFPM Eli Tz=
iperman <<a href=3D"mailto:eli.tziperman@HIDDEN">eli.tziperman@gmail.=
com</a>> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_=
container"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><h1 id=3D=
"m_1497592642483352513ns-toolbar-event-loop-hang-seen-in-auctexlsp-latex-bu=
ffers" style=3D"font-family:Times;font-variant-ligatures:normal"><span styl=
e=3D"font-size:medium;font-weight:normal">I encounter this as an intermitte=
nt hang in LaTeX buffers while using AUCTeX with LSP enabled. Clicking AUCT=
eX toolbar buttons while a LaTeX-related process is active leads to a hung =
Emacs. </span><span style=3D"font-size:medium">The following bug report and=
patch were created by Codex.</span></h1><p style=3D"font-family:Times;font=
-size:medium;font-variant-ligatures:normal">The attached reduced reproducer=
does not require AUCTeX, LSP, LaTeX, or a=C2=A0<code>.tex</code>=C2=A0file=
.</p><h2 id=3D"m_1497592642483352513how-to-reproduce" style=3D"font-family:=
Times;font-variant-ligatures:normal">2. How to reproduce</h2><p style=3D"fo=
nt-family:Times;font-size:medium;font-variant-ligatures:normal">Attached fi=
les:</p><ul style=3D"font-family:Times;font-size:medium;font-variant-ligatu=
res:normal"><li><code>repro/ns-toolbar-output.el</code></li><li><code>repro=
/run-ns-toolbar-output-repro.sh</code></li><li><code>repro/ns-read-socket-a=
ppdefined-fallback.patch</code></li></ul><p style=3D"font-family:Times;font=
-size:medium;font-variant-ligatures:normal">Use an unpatched macOS NS Emacs=
, then run:</p><div id=3D"m_1497592642483352513cb1" style=3D"font-family:Ti=
mes;font-size:medium;font-variant-ligatures:normal"><pre><code><span id=3D"=
m_1497592642483352513cb1-1"><a href=3D"#m_1497592642483352513_cb1-1" aria-h=
idden=3D"true"></a><span>cd</span> repro</span>
<span id=3D"m_1497592642483352513cb1-2"><a href=3D"#m_1497592642483352513_c=
b1-2" aria-hidden=3D"true"></a><span>./run-ns-toolbar-output-repro.sh</span=
></span></code></pre></div><p style=3D"font-family:Times;font-size:medium;f=
ont-variant-ligatures:normal">In the Emacs window:</p><ol type=3D"1" style=
=3D"font-family:Times;font-size:medium;font-variant-ligatures:normal"><li>C=
lick the toolbar=C2=A0<code>save</code>=C2=A0icon. This starts a process na=
med=C2=A0<code>LaTeX</code>; it is just=C2=A0<code>/usr/bin/yes</code>, use=
d to produce continuous asynchronous output.</li><li>While output is flowin=
g, click the toolbar=C2=A0<code>delete</code>/trash icon.</li><li>Answer=C2=
=A0<code>Yes</code>=C2=A0to the prompt.</li></ol><p style=3D"font-family:Ti=
mes;font-size:medium;font-variant-ligatures:normal">Expected behavior: Emac=
s remains responsive, waits for the=C2=A0<code>sit-for 30</code>, and then =
the command returns.</p><p style=3D"font-family:Times;font-size:medium;font=
-variant-ligatures:normal">Actual behavior on the unpatched NS build: Emacs=
hangs indefinitely after the trash icon click. It remains alive but does n=
ot respond.</p><h2 id=3D"m_1497592642483352513why-it-happens" style=3D"font=
-family:Times;font-variant-ligatures:normal">3. Why it happens</h2><p style=
=3D"font-family:Times;font-size:medium;font-variant-ligatures:normal">The h=
ang is in the NS port event loop, not in AUCTeX, LSP, or LaTeX. Those packa=
ges appear to be timing amplifiers because they combine toolbar clicks, pro=
cess output, redisplay, and toolbar updates.</p><p style=3D"font-family:Tim=
es;font-size:medium;font-variant-ligatures:normal">The relevant path is=C2=
=A0<code>ns_read_socket_1</code>=C2=A0in=C2=A0<code>src/nsterm.m</code>. Wh=
en no native event is immediately available, it posts an AppDefined event a=
nd then enters=C2=A0<code>[NSApp run]</code>:</p><pre style=3D"font-variant=
-ligatures:normal"><code>send_appdefined =3D YES;
ns_send_appdefined (-1);
[NSApp run];</code></pre><p style=3D"font-family:Times;font-size:medium;fon=
t-variant-ligatures:normal">The code assumes that the synthetic AppDefined =
event will make=C2=A0<code>[NSApp run]</code>=C2=A0return. In this testcase=
, after a toolbar command reads from the minibuffer and then waits while pr=
ocess output and toolbar updates are active, that wakeup can be lost, defer=
red, or otherwise fail to stop the nested AppKit run loop. Emacs then sleep=
s inside AppKit even though Emacs-side work is pending.</p><p style=3D"font=
-family:Times;font-size:medium;font-variant-ligatures:normal">A representat=
ive hung stack was:</p><pre style=3D"font-variant-ligatures:normal"><code>r=
ead_key_sequence
read_char
sit_for
wait_reading_process_output
ns_read_socket_1
-[EmacsApp run]
-[NSApplication run]
mach_msg2_trap</code></pre><p style=3D"font-family:Times;font-size:medium;f=
ont-variant-ligatures:normal">In lldb, the hung process had=C2=A0<code>send=
_appdefined</code>=C2=A0set and Emacs events queued, but the main thread wa=
s blocked in AppKit=E2=80=99s run loop.</p><h2 id=3D"m_1497592642483352513m=
inimal-patch-attachment" style=3D"font-family:Times;font-variant-ligatures:=
normal">4. Minimal patch attachment</h2><p style=3D"font-family:Times;font-=
size:medium;font-variant-ligatures:normal">I attached=C2=A0<code>repro/ns-r=
ead-socket-appdefined-fallback.patch</code>. The patch adds a short default=
-run-loop fallback before entering=C2=A0<code>[NSApp run]</code>:</p><pre s=
tyle=3D"font-variant-ligatures:normal"><code>[NSApp performSelector: @selec=
tor (stop:)
withObject: NSApp
afterDelay: 0.05
inModes: [NSArray arrayWithObject:
NSDefaultRunLoopMode]];
[NSApp run];
[NSObject cancelPreviousPerformRequestsWithTarget: NSApp
selector: @selector (stop:)
object: NSApp];</code></pre><p s=
tyle=3D"font-family:Times;font-size:medium;font-variant-ligatures:normal">T=
his keeps the existing AppDefined wakeup path. If it works,=C2=A0<code>[NSA=
pp run]</code>=C2=A0returns normally and the fallback is canceled. If the A=
ppDefined wakeup does not stop the nested run loop, the delayed=C2=A0<code>=
stop:</code>=C2=A0breaks out of it. Scheduling the fallback only in=C2=A0<c=
ode>NSDefaultRunLoopMode</code>=C2=A0avoids firing it in modal panels.</p><=
h2 id=3D"m_1497592642483352513information-from-report-emacs-bug" style=3D"f=
ont-family:Times;font-variant-ligatures:normal">5. Information from report-=
emacs-bug</h2><p style=3D"font-family:Times;font-size:medium;font-variant-l=
igatures:normal">The following information is from=C2=A0<code>report-emacs-=
bug</code>/Emacs bug-report fields. Local user-identifying host and path va=
lues are sanitized.</p><pre style=3D"font-variant-ligatures:normal"><code>I=
n GNU Emacs 32.0.50 (build 1, aarch64-apple-darwin25.5.0, NS
appkit-2685.60 Version 26.5.1 (Build 25F80)) of 2026-06-14 built on
local host
Repository revision: ca44dce1ec1f8dc6208a2f78a80711b22978735c
Repository branch: master
System Description: macOS 26.5.1
Configured using:
'configure --with-ns --with-modules --with-x-toolkit=3Dno --with-gnutl=
s
--with-tree-sitter --with-rsvg --with-sqlite3 --with-xml2
'CFLAGS=3D-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT'
--prefix=3D/Users/<user>/build-emacs/prefix/emacs
'CPPFLAGS=3D-I/opt/homebrew/opt/sqlite/include
-I/opt/homebrew/opt/libxml2/include -I/opt/homebrew/include'
'LDFLAGS=3D-L/opt/homebrew/opt/sqlite/lib
-L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/lib''
Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
Important settings:
value of $LC_ALL: C.UTF-8
value of $LC_CTYPE: C.UTF-8
value of $LANG: C.UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
minibuffer-nonselected-mode: t
minibuffer-regexp-mode: t
line-number-mode: t
indent-tabs-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(emacsbug lisp-mnt message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date subr-x
mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode 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 font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-compr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process
tty-child-frames native-compile emacs)
Memory information:
((conses 16 38323 18551) (symbols 48 4958 1) (strings 32 10845 3105)
(string-bytes 1 421420) (vectors 16 4580) (vector-slots 8 59779 8988)
(floats 8 20 1) (intervals 56 5 14) (buffers 1064 5))</code></pre></div></=
blockquote><div><br></div><div class=3D"gmail_default" style=3D"font-family=
:monospace">I'm reminded of this thread which I think did not have an a=
ssociated bug, though this seems there would be one out there.</div><div cl=
ass=3D"gmail_default" style=3D"font-family:monospace"><br></div><div class=
=3D"gmail_default" style=3D"font-family:monospace"><a href=3D"https://lists=
.gnu.org/archive/html/emacs-devel/2025-05/msg00612.html">https://lists.gnu.=
org/archive/html/emacs-devel/2025-05/msg00612.html</a></div><div class=3D"g=
mail_default" style=3D"font-family:monospace"><br></div></div></div>
--000000000000f164ff065579331d--
bug-gnu-emacs@HIDDEN:bug#81324; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 28 Jun 2026 15:36:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 28 11:35:59 2026
Received: from localhost ([127.0.0.1]:59455 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wdrXz-0001Y0-SI
for submit <at> debbugs.gnu.org; Sun, 28 Jun 2026 11:35:59 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:54186)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eli.tziperman@HIDDEN>)
id 1wdZ9J-00053e-TB
for submit <at> debbugs.gnu.org; Sat, 27 Jun 2026 15:57:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eli.tziperman@HIDDEN>)
id 1wdZ9E-0005sK-Fx
for bug-gnu-emacs@HIDDEN; Sat, 27 Jun 2026 15:57:04 -0400
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from <eli.tziperman@HIDDEN>)
id 1wdZ9B-0006uK-SC
for bug-gnu-emacs@HIDDEN; Sat, 27 Jun 2026 15:57:04 -0400
Received: by mail-wm1-x32a.google.com with SMTP id
5b1f17b1804b1-4926046fbc5so23344325e9.0
for <bug-gnu-emacs@HIDDEN>; Sat, 27 Jun 2026 12:57:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1782590219; x=1783195019; darn=gnu.org;
h=to:date:message-id:subject:mime-version:from:from:to:cc:subject
:date:message-id:reply-to;
bh=LZYtEqxVbKXRYf8WHWIYphmUocjoicYqsNFpQ5yx4RA=;
b=UvIgafnqAnFmwPs/lUNN/DYepdjvOnb3gZesQBJq++S8xTtyy4++L+ELm8zrJctLIs
7jGWZC9cqCvpnZeFIWUd7/lqY4Cd22tiecl0ly24pmOr6F5AVHjcwEj1ipqYIe2vTeS5
EmjU0GXcmo/LXLUMTbUc5nDrKmtoFjdbnuli9dLuVTTGT1DFTXGSL6ahOi4ChNvlZ2hH
BWDMrhTE97lYZOMoTvJzbm93OrwGnjQChfSrabXuJgeYqf1hQJg9D2wikYudevMH5r3G
3lE46dhMVDSAVETd9X2RnJfy39tR7SmiYBrpxP5vBUHckK6cej0bUlbKINUaOcG2sxim
1FHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1782590219; x=1783195019;
h=to:date:message-id:subject:mime-version:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=LZYtEqxVbKXRYf8WHWIYphmUocjoicYqsNFpQ5yx4RA=;
b=jIMXgE02YkXBfRXn4Y8PMVFaAmIPo37yVRu+1mL+/vnYfchTCc5C+MDdMAZ1vzwlce
fvu8Pg350YZ+Afsz4LOklEKSgFT5EVoTgap+5sEbK4Lzj+0x3Fp3X06Egg9kgGmmDC7n
eIZP6VBmXJmiXguB7q/wM8VUGIUAgxFZNSlTSYy+ZxjXzo+mqVXBdBeUorZV/AcOnARK
FwQtIhkiZs2LAHa8/JRGiiSD7g0qnMK7WMazJIrIQXMSvngHOKVS2xbRv16ekzQhVMch
LZvjaL59zu5oSlDbxjCorn5HG/D+X3mRD0KTZ5+VqPlE1d35jWQae0ZyAKsJyWguditF
b12w==
X-Gm-Message-State: AOJu0YyFZE0kIECTFa93C8Vv8XM8c7Bis0gtlvqSnIxeiaXMdRN/oS77
PwKwzFGgEe93NY7KyNAKCvNnNaiXLOYXWh6Ybdwo4ilB3PBRpKocQDTL3+rMsA==
X-Gm-Gg: AfdE7cmL8iTkcNGuiF7dzpQ2tSmbPb0z/HpaxO+C+VzgzdOghk9y+BHOmuquQzsuROJ
wI+CpKLdqXwB/U1n0SDij4cngOyVJtud9uc9b3ZguxuXBbV94wQn2DbIAn023/RbQyzFM/+I8Wn
DEB2IwNdNQljE/YQRnxv4HIiZmJG2sRQLYxG/hE1CRK+XIGNZGzlznyvx8M8fSdYVZ7YKDJJdGq
/XgadMDArzG34i7O+ykEQKsA7moRQBNpNZ/lH26tsPbYb+708RjGq361Q8yFu9ds6q6V+2ifYTr
YcTEOUe33C5KCn7AMtoD298T41aBsSxFPtjLSKPxoXiSTqTuSFAPyd0jSLVEzX/URZjthJ3dgke
KBlS49ELCYIH3bhRUwtRCcCLGz+6/8PXvnVUIbWTjCVUc13gmwcBs8Bx9omgoKJwqFZlWfjJiwB
ViKEKDcvEi9BiOOIPTRbCsbAR6icvSDqnFhcQ0HZopGSi72CacuCTxopNCO73vEDnMd9MB0/E7g
YBa
X-Received: by 2002:a05:600c:5656:b0:492:4658:ac00 with SMTP id
5b1f17b1804b1-4925a0b20e1mr274374175e9.6.1782590219203;
Sat, 27 Jun 2026 12:56:59 -0700 (PDT)
Received: from smtpclient.apple (93-172-169-158.bb.netvision.net.il.
[93.172.169.158]) by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-46fe25429d5sm12932733f8f.7.2026.06.27.12.56.57
for <bug-gnu-emacs@HIDDEN>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 27 Jun 2026 12:56:58 -0700 (PDT)
From: Eli Tziperman <eli.tziperman@HIDDEN>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_ACCEA407-9170-44C8-BBDC-7A0EDD7F8487"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\))
Subject: 32.0.50; NS toolbar event-loop hang seen in AUCTeX/LSP LaTeX buffers
Message-Id: <3AFF7BC6-721E-4DD1-B9B0-F2AF3C273C4E@HIDDEN>
Date: Sat, 27 Jun 2026 22:56:46 +0300
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3864.600.51.1.1)
Received-SPF: pass client-ip=2a00:1450:4864:20::32a;
envelope-from=eli.tziperman@HIDDEN; helo=mail-wm1-x32a.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
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: I encounter this as an intermittent hang in LaTeX buffers
while using AUCTeX with LSP enabled. Clicking AUCTeX toolbar buttons while
a LaTeX-related process is active leads to a hung Emacs. The follow [...]
Content analysis details: (2.0 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (eli.tziperman[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.0 HTML_MESSAGE BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 28 Jun 2026 11:35:28 -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: 1.0 (+)
--Apple-Mail=_ACCEA407-9170-44C8-BBDC-7A0EDD7F8487
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
I encounter this as an intermittent hang in LaTeX buffers while using =
AUCTeX with LSP enabled. Clicking AUCTeX toolbar buttons while a =
LaTeX-related process is active leads to a hung Emacs. The following bug =
report and patch were created by Codex.
The attached reduced reproducer does not require AUCTeX, LSP, LaTeX, or =
a .tex file.
2. How to reproduce
Attached files:
repro/ns-toolbar-output.el
repro/run-ns-toolbar-output-repro.sh
repro/ns-read-socket-appdefined-fallback.patch
Use an unpatched macOS NS Emacs, then run:
<about:blank#cb1-1>cd repro
<about:blank#cb1-2>./run-ns-toolbar-output-repro.sh
In the Emacs window:
Click the toolbar save icon. This starts a process named LaTeX; it is =
just /usr/bin/yes, used to produce continuous asynchronous output.
While output is flowing, click the toolbar delete/trash icon.
Answer Yes to the prompt.
Expected behavior: Emacs remains responsive, waits for the sit-for 30, =
and then the command returns.
Actual behavior on the unpatched NS build: Emacs hangs indefinitely =
after the trash icon click. It remains alive but does not respond.
3. Why it happens
The hang is in the NS port event loop, not in AUCTeX, LSP, or LaTeX. =
Those packages appear to be timing amplifiers because they combine =
toolbar clicks, process output, redisplay, and toolbar updates.
The relevant path is ns_read_socket_1 in src/nsterm.m. When no native =
event is immediately available, it posts an AppDefined event and then =
enters [NSApp run]:
send_appdefined =3D YES;
ns_send_appdefined (-1);
[NSApp run];
The code assumes that the synthetic AppDefined event will make [NSApp =
run] return. In this testcase, after a toolbar command reads from the =
minibuffer and then waits while process output and toolbar updates are =
active, that wakeup can be lost, deferred, or otherwise fail to stop the =
nested AppKit run loop. Emacs then sleeps inside AppKit even though =
Emacs-side work is pending.
A representative hung stack was:
read_key_sequence
read_char
sit_for
wait_reading_process_output
ns_read_socket_1
-[EmacsApp run]
-[NSApplication run]
mach_msg2_trap
In lldb, the hung process had send_appdefined set and Emacs events =
queued, but the main thread was blocked in AppKit=E2=80=99s run loop.
4. Minimal patch attachment
I attached repro/ns-read-socket-appdefined-fallback.patch. The patch =
adds a short default-run-loop fallback before entering [NSApp run]:
[NSApp performSelector: @selector (stop:)
withObject: NSApp
afterDelay: 0.05
inModes: [NSArray arrayWithObject:
NSDefaultRunLoopMode]];
[NSApp run];
[NSObject cancelPreviousPerformRequestsWithTarget: NSApp
selector: @selector (stop:)
object: NSApp];
This keeps the existing AppDefined wakeup path. If it works, [NSApp run] =
returns normally and the fallback is canceled. If the AppDefined wakeup =
does not stop the nested run loop, the delayed stop: breaks out of it. =
Scheduling the fallback only in NSDefaultRunLoopMode avoids firing it in =
modal panels.
5. Information from report-emacs-bug
The following information is from report-emacs-bug/Emacs bug-report =
fields. Local user-identifying host and path values are sanitized.
In GNU Emacs 32.0.50 (build 1, aarch64-apple-darwin25.5.0, NS
appkit-2685.60 Version 26.5.1 (Build 25F80)) of 2026-06-14 built on
local host
Repository revision: ca44dce1ec1f8dc6208a2f78a80711b22978735c
Repository branch: master
System Description: macOS 26.5.1
Configured using:
'configure --with-ns --with-modules --with-x-toolkit=3Dno --with-gnutls
--with-tree-sitter --with-rsvg --with-sqlite3 --with-xml2
'CFLAGS=3D-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT'
--prefix=3D/Users/<user>/build-emacs/prefix/emacs
'CPPFLAGS=3D-I/opt/homebrew/opt/sqlite/include
-I/opt/homebrew/opt/libxml2/include -I/opt/homebrew/include'
'LDFLAGS=3D-L/opt/homebrew/opt/sqlite/lib
-L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/lib''
Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
Important settings:
value of $LC_ALL: C.UTF-8
value of $LC_CTYPE: C.UTF-8
value of $LANG: C.UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
minibuffer-nonselected-mode: t
minibuffer-regexp-mode: t
line-number-mode: t
indent-tabs-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(emacsbug lisp-mnt message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date subr-x
mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode 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 font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-compr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process
tty-child-frames native-compile emacs)
Memory information:
((conses 16 38323 18551) (symbols 48 4958 1) (strings 32 10845 3105)
(string-bytes 1 421420) (vectors 16 4580) (vector-slots 8 59779 8988)
(floats 8 20 1) (intervals 56 5 14) (buffers 1064 5))
=EF=BF=BC=EF=BF=BC=EF=BF=BC
--Apple-Mail=_ACCEA407-9170-44C8-BBDC-7A0EDD7F8487
Content-Type: multipart/mixed;
boundary="Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42"
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><h1 =
id=3D"ns-toolbar-event-loop-hang-seen-in-auctexlsp-latex-buffers" =
style=3D"font-family: Times; font-variant-ligatures: normal;"><span =
style=3D"font-size: medium; font-weight: normal;">I encounter this as an =
intermittent hang in LaTeX buffers while using AUCTeX with LSP enabled. =
Clicking AUCTeX toolbar buttons while a LaTeX-related process is active =
leads to a hung Emacs. </span><span style=3D"font-size: medium;">The =
following bug report and patch were created by Codex.</span></h1><p =
style=3D"font-family: Times; font-size: medium; font-variant-ligatures: =
normal;">The attached reduced reproducer does not require AUCTeX, LSP, =
LaTeX, or a <code>.tex</code> file.</p><h2 =
id=3D"how-to-reproduce" style=3D"font-family: Times; =
font-variant-ligatures: normal;">2. How to reproduce</h2><p =
style=3D"font-family: Times; font-size: medium; font-variant-ligatures: =
normal;">Attached files:</p><ul style=3D"font-family: Times; font-size: =
medium; font-variant-ligatures: =
normal;"><li><code>repro/ns-toolbar-output.el</code></li><li><code>repro/r=
un-ns-toolbar-output-repro.sh</code></li><li><code>repro/ns-read-socket-ap=
pdefined-fallback.patch</code></li></ul><p style=3D"font-family: Times; =
font-size: medium; font-variant-ligatures: normal;">Use an unpatched =
macOS NS Emacs, then run:</p><div class=3D"sourceCode" id=3D"cb1" =
style=3D"font-family: Times; font-size: medium; font-variant-ligatures: =
normal;"><pre class=3D"sourceCode sh"><code class=3D"sourceCode =
bash"><span id=3D"cb1-1"><a href=3D"#cb1-1" aria-hidden=3D"true" =
tabindex=3D"-1"></a><span class=3D"bu">cd</span> repro</span>
<span id=3D"cb1-2"><a href=3D"#cb1-2" aria-hidden=3D"true" =
tabindex=3D"-1"></a><span =
class=3D"ex">./run-ns-toolbar-output-repro.sh</span></span></code></pre></=
div><p style=3D"font-family: Times; font-size: medium; =
font-variant-ligatures: normal;">In the Emacs window:</p><ol type=3D"1" =
style=3D"font-family: Times; font-size: medium; font-variant-ligatures: =
normal;"><li>Click the toolbar <code>save</code> icon. This =
starts a process named <code>LaTeX</code>; it is =
just <code>/usr/bin/yes</code>, used to produce continuous =
asynchronous output.</li><li>While output is flowing, click the =
toolbar <code>delete</code>/trash =
icon.</li><li>Answer <code>Yes</code> to the =
prompt.</li></ol><p style=3D"font-family: Times; font-size: medium; =
font-variant-ligatures: normal;">Expected behavior: Emacs remains =
responsive, waits for the <code>sit-for 30</code>, and then the =
command returns.</p><p style=3D"font-family: Times; font-size: medium; =
font-variant-ligatures: normal;">Actual behavior on the unpatched NS =
build: Emacs hangs indefinitely after the trash icon click. It remains =
alive but does not respond.</p><h2 id=3D"why-it-happens" =
style=3D"font-family: Times; font-variant-ligatures: normal;">3. Why it =
happens</h2><p style=3D"font-family: Times; font-size: medium; =
font-variant-ligatures: normal;">The hang is in the NS port event loop, =
not in AUCTeX, LSP, or LaTeX. Those packages appear to be timing =
amplifiers because they combine toolbar clicks, process output, =
redisplay, and toolbar updates.</p><p style=3D"font-family: Times; =
font-size: medium; font-variant-ligatures: normal;">The relevant path =
is <code>ns_read_socket_1</code> in <code>src/nsterm.m</cod=
e>. When no native event is immediately available, it posts an =
AppDefined event and then enters <code>[NSApp run]</code>:</p><pre =
class=3D"objc" style=3D"font-variant-ligatures: =
normal;"><code>send_appdefined =3D YES;
ns_send_appdefined (-1);
[NSApp run];</code></pre><p style=3D"font-family: Times; font-size: =
medium; font-variant-ligatures: normal;">The code assumes that the =
synthetic AppDefined event will make <code>[NSApp =
run]</code> return. In this testcase, after a toolbar command reads =
from the minibuffer and then waits while process output and toolbar =
updates are active, that wakeup can be lost, deferred, or otherwise fail =
to stop the nested AppKit run loop. Emacs then sleeps inside AppKit even =
though Emacs-side work is pending.</p><p style=3D"font-family: Times; =
font-size: medium; font-variant-ligatures: normal;">A representative =
hung stack was:</p><pre class=3D"text" style=3D"font-variant-ligatures: =
normal;"><code>read_key_sequence
read_char
sit_for
wait_reading_process_output
ns_read_socket_1
-[EmacsApp run]
-[NSApplication run]
mach_msg2_trap</code></pre><p style=3D"font-family: Times; font-size: =
medium; font-variant-ligatures: normal;">In lldb, the hung process =
had <code>send_appdefined</code> set and Emacs events queued, =
but the main thread was blocked in AppKit=E2=80=99s run loop.</p><h2 =
id=3D"minimal-patch-attachment" style=3D"font-family: Times; =
font-variant-ligatures: normal;">4. Minimal patch attachment</h2><p =
style=3D"font-family: Times; font-size: medium; font-variant-ligatures: =
normal;">I =
attached <code>repro/ns-read-socket-appdefined-fallback.patch</code>.=
The patch adds a short default-run-loop fallback before =
entering <code>[NSApp run]</code>:</p><pre class=3D"objc" =
style=3D"font-variant-ligatures: normal;"><code>[NSApp performSelector: =
@selector (stop:)
withObject: NSApp
afterDelay: 0.05
inModes: [NSArray arrayWithObject:
NSDefaultRunLoopMode]];
[NSApp run];
[NSObject cancelPreviousPerformRequestsWithTarget: NSApp
selector: @selector (stop:)
object: =
NSApp];</code></pre><p style=3D"font-family: Times; font-size: medium; =
font-variant-ligatures: normal;">This keeps the existing AppDefined =
wakeup path. If it works, <code>[NSApp run]</code> returns =
normally and the fallback is canceled. If the AppDefined wakeup does not =
stop the nested run loop, the =
delayed <code>stop:</code> breaks out of it. Scheduling the =
fallback only in <code>NSDefaultRunLoopMode</code> avoids =
firing it in modal panels.</p><h2 id=3D"information-from-report-emacs-bug"=
style=3D"font-family: Times; font-variant-ligatures: normal;">5. =
Information from report-emacs-bug</h2><p style=3D"font-family: Times; =
font-size: medium; font-variant-ligatures: normal;">The following =
information is from <code>report-emacs-bug</code>/Emacs bug-report =
fields. Local user-identifying host and path values are =
sanitized.</p><pre class=3D"text" style=3D"font-variant-ligatures: =
normal;"><code>In GNU Emacs 32.0.50 (build 1, =
aarch64-apple-darwin25.5.0, NS
appkit-2685.60 Version 26.5.1 (Build 25F80)) of 2026-06-14 built on
local host
Repository revision: ca44dce1ec1f8dc6208a2f78a80711b22978735c
Repository branch: master
System Description: macOS 26.5.1
Configured using:
'configure --with-ns --with-modules --with-x-toolkit=3Dno --with-gnutls
--with-tree-sitter --with-rsvg --with-sqlite3 --with-xml2
'CFLAGS=3D-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT'
--prefix=3D/Users/<user>/build-emacs/prefix/emacs
'CPPFLAGS=3D-I/opt/homebrew/opt/sqlite/include
-I/opt/homebrew/opt/libxml2/include -I/opt/homebrew/include'
'LDFLAGS=3D-L/opt/homebrew/opt/sqlite/lib
-L/opt/homebrew/opt/libxml2/lib -L/opt/homebrew/lib''
Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
Important settings:
value of $LC_ALL: C.UTF-8
value of $LC_CTYPE: C.UTF-8
value of $LANG: C.UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
minibuffer-nonselected-mode: t
minibuffer-regexp-mode: t
line-number-mode: t
indent-tabs-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(emacsbug lisp-mnt message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date subr-x
mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode 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 font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-compr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process
tty-child-frames native-compile emacs)
Memory information:
((conses 16 38323 18551) (symbols 48 4958 1) (strings 32 10845 3105)
(string-bytes 1 421420) (vectors 16 4580) (vector-slots 8 59779 8988)
(floats 8 20 1) (intervals 56 5 14) (buffers 1064 5))</code></pre><pre =
class=3D"text" style=3D"font-variant-ligatures: =
normal;"><code><br></code></pre><pre class=3D"text" =
style=3D"font-variant-ligatures: =
normal;"><code></code></pre></body></html>=
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Disposition: attachment;
filename=ns-read-socket-appdefined-fallback.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="ns-read-socket-appdefined-fallback.patch"
Content-Transfer-Encoding: 7bit
diff --git a/src/nsterm.m b/src/nsterm.m
index a7f3fc2..6c2ad1f 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5151,7 +5151,15 @@ Function modeled after x_draw_glyph_string_box ().
send_appdefined = YES;
ns_send_appdefined (-1);
+ [NSApp performSelector: @selector (stop:)
+ withObject: NSApp
+ afterDelay: 0.05
+ inModes: [NSArray arrayWithObject:
+ NSDefaultRunLoopMode]];
[NSApp run];
+ [NSObject cancelPreviousPerformRequestsWithTarget: NSApp
+ selector: @selector (stop:)
+ object: NSApp];
}
nevents = n_emacs_events_pending;
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><pre class="text" style="font-variant-ligatures: normal;"><code></code></pre></body></html>
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Disposition: attachment;
filename=ns-toolbar-output.el
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="ns-toolbar-output.el"
Content-Transfer-Encoding: 7bit
;;; -*- lexical-binding: t; -*-
(setq inhibit-startup-screen t
p nil)
(tool-bar-mode 1)
(defun tb ()
(let ((m (make-sparse-keymap)))
(tool-bar-local-item "save" #'run 'run m)
(tool-bar-local-item "delete" #'stop 'kill m)
(setq tool-bar-map m))
(force-mode-line-update t))
(defun run ()
(interactive)
(when (process-live-p p)
(delete-process p))
(setq p (start-process "LaTeX" (current-buffer) "yes" "output diagnostic"))
(set-process-filter p (lambda (_ s)
(goto-char (point-max))
(insert s)
(tb))))
(defun stop ()
(interactive)
(when (yes-or-no-p "Process `LaTeX' for document `example' running, kill it? ")
(tb)
(sit-for 30)
(when (process-live-p p)
(delete-process p))))
(switch-to-buffer "ns-toolbar-output.txt")
(erase-buffer)
(insert "Click save, then trash while output is flowing. Answer Yes.\n\n")
(dotimes (_ 5000) (insert "filler\n"))
(goto-char (point-min))
(tb)
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><pre class="text" style="font-variant-ligatures: normal;"><code></code></pre></body></html>
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Disposition: attachment;
filename=run-ns-toolbar-output-repro.sh
Content-Type: application/octet-stream;
x-unix-mode=0755;
name="run-ns-toolbar-output-repro.sh"
Content-Transfer-Encoding: 7bit
#!/bin/sh
exec /Applications/Emacs.app/Contents/MacOS/Emacs -Q --load ./ns-toolbar-output.el
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><pre class="text" style="font-variant-ligatures: normal;"><code></code></pre><pre class="text" style="font-variant-ligatures: normal;"><code><br></code></pre></body></html>
--Apple-Mail=_4C431732-FE92-49A6-8BC9-EDA0B366AE42--
--Apple-Mail=_ACCEA407-9170-44C8-BBDC-7A0EDD7F8487--
Eli Tziperman <eli.tziperman@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#81324; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.