GNU logs - #67694, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67694: 30.0.50; tool-bar
Resent-From: Konrad Podczeck <konrad.podczeck@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 07 Dec 2023 15:45:01 +0000
Resent-Message-ID: <handler.67694.B.17019638835167 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 67694
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 67694 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17019638835167
          (code B ref -1); Thu, 07 Dec 2023 15:45:01 +0000
Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 15:44:43 +0000
Received: from localhost ([127.0.0.1]:42821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rBGYN-0001LH-EB
	for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:44:43 -0500
Received: from lists.gnu.org ([2001:470:142::17]:52770)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.podczeck@HIDDEN>) id 1rBGYK-0001L3-Ig
 for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 10:44:41 -0500
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 <konrad.podczeck@HIDDEN>)
 id 1rBGY2-0000DZ-Fv
 for bug-gnu-emacs@HIDDEN; Thu, 07 Dec 2023 10:44:22 -0500
Received: from grace.univie.ac.at ([2001:62a:4:25::25:115])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rBGY0-0001jv-H7
 for bug-gnu-emacs@HIDDEN; Thu, 07 Dec 2023 10:44:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=univie.ac.at; s=rev3; h=To:Date:Message-Id:Subject:Mime-Version:
 Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References;
 bh=tb0Pn2csqkOKHgRu50DQtnmsj9qPbnAAGBws0oXewWE=; b=Ghir1iGOg59EEzRUZNGt7bMFg8
 Gz4U1+DK6hcj57sxPQQDSZ0t9M2hEY7lQh4PuRohGs0Ir+p9ViGwVnerU1siI+/l5bRGnEm6jkh0m
 av/E/+IvctJfQoPvoGUqlvrsC7DapMw5HcVsr42CnQZYw1sTEAUJzP9eK5ezGYyQ252MtXr9nLkqg
 0M700lIfgBNUfyIONjIYnKGXZM38Hgk9c6uz2IUQ6/KwsZIr9hf91PxZ8w0lXcHW73hUDU8vmmgQZ
 sn+7nSNN4lhakeFTeLJtSkKh7TNmJ/gEPjR4fQe0VaRpwoXvTgUmyBxpKRy47UW66/YZ4G6b3U5gu
 8iqAbibA==;
Received: from joan.univie.ac.at ([131.130.3.110] helo=joan.univie.ac.at)
 by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rBGXv-0000000GBTD-3B3G for bug-gnu-emacs@HIDDEN;
 Thu, 07 Dec 2023 16:44:15 +0100
Received: from 80-109-8-38.cable.dynamic.surfer.at ([80.109.8.38]
 helo=smtpclient.apple)
 by joan.univie.ac.at with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rBGXv-0000000DamQ-2iCk for bug-gnu-emacs@HIDDEN;
 Thu, 07 Dec 2023 16:44:15 +0100
From: Konrad Podczeck <konrad.podczeck@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\))
Message-Id: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
Date: Thu, 7 Dec 2023 16:44:15 +0100
X-Mailer: Apple Mail (2.3696.120.41.1.4)
X-Univie-Virus-Scan: scanned by ClamAV on joan.univie.ac.at
Received-SPF: none client-ip=2001:62a:4:25::25:115;
 envelope-from=konrad.podczeck@HIDDEN; helo=grace.univie.ac.at
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
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 (-)

In nsterm.m, deleting the lines of code


#ifdef NS_IMPL_COCOA
if (! send_appdefined)
  {
  /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
       in certain situations (rapid incoming events).
       So check if we have one, if not add one.  */
    NSEvent *appev =3D [NSApp =
nextEventMatchingMask:NSEventMaskApplicationDefined
                                        untilDate:[NSDate distantPast]
                                           inMode:NSDefaultRunLoopMode
                                          dequeue:NO];
    if (! appev) send_appdefined =3D YES;
  }
#endif

as done in commit 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9 on 23-09-11, =
seems to be incompatible with macos Sonoma or Monterey. In both =
versions, and with both an M1 processor and an Intel one, I got the =
following problem, with these lines of code removed. I have pdf-tools =
installed, and via the code in windows.el, I have both the pdf output =
and some latex source code to appear in their own frames. I also have a =
managed to have a tool-bar in the frame showing the pdf-outout, with an =
icon for going from one page to the next. Now if I repeatedly click with =
the mouse on this icon very fast, then, after 3 to 5 clicks, the whole =
emacs.app begins to hang. This is not so with the above lines of code =
still present in nsterm.m.

Koinrad=




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Konrad Podczeck <konrad.podczeck@HIDDEN>
Subject: bug#67694: Acknowledgement (30.0.50; tool-bar)
Message-ID: <handler.67694.B.17019638835167.ack <at> debbugs.gnu.org>
References: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
X-Gnu-PR-Message: ack 67694
X-Gnu-PR-Package: emacs
Reply-To: 67694 <at> debbugs.gnu.org
Date: Thu, 07 Dec 2023 15:45:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 67694 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
67694: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67694
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67694: 30.0.50; tool-bar
Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 16 Dec 2023 13:16:02 +0000
Resent-Message-ID: <handler.67694.B67694.170273252311638 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67694
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Konrad Podczeck <konrad.podczeck@HIDDEN>
Cc: 67694 <at> debbugs.gnu.org
Received: via spool by 67694-submit <at> debbugs.gnu.org id=B67694.170273252311638
          (code B ref 67694); Sat, 16 Dec 2023 13:16:02 +0000
Received: (at 67694) by debbugs.gnu.org; 16 Dec 2023 13:15:23 +0000
Received: from localhost ([127.0.0.1]:54217 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rEUVn-00030P-8b
	for submit <at> debbugs.gnu.org; Sat, 16 Dec 2023 08:15:23 -0500
Received: from sonic302-20.consmr.mail.ir2.yahoo.com ([87.248.110.83]:46714)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1rEUVj-0002Td-Qv
 for 67694 <at> debbugs.gnu.org; Sat, 16 Dec 2023 08:15:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1702732510; bh=2zVXIZA1fJVv28wD41ody9Pa5F1BW+ZEisKlnUDT5dk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=kVa2FDDisG+unZ2nN/qZszTCK9J6S/8AbCzfFzqRekjbyoq/fxW9hTqfML46U7VhZm8eB1rIwoIP32QHdnnj8qD4gHsBGNMKRTE2HhCQsHAofdir7CxBOPxRWg1l+C7EvvD80v6d9IAg8xdCWw8h9c9aDT6ZH0VYdcpUmWQbirQFJGqWLexAF/ZuG76BLdcF5g/R+ddaGHaH+osN6gVpAbrZRrOD0ackWSEhNPjUam13ON+Nyvi3WvxHxPEcClpW1w9+c1XOkeCtzZ2rQ0+yWjm6oP3yJ30w/ou7YJlVOIPdMVZYWR6cvn7fnSEFNRfNxmNzYHOrpjMnL+v7njXStQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1702732510; bh=wGsxDXiZyS0cCA2P/oz9iz5PF9pWMVPkiAeduL6oLjP=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=Q7EXQhM5wE0RW/+4tf5qe5C5cYNGpVIndisMnPDBS2cZ7WsCICifD0zmOY/LEKFHrjieIQ5rkXeIu0D4QgzJhVBaUvboIsTeb2Qlx4jeDD9lD2tMfA+TtiyFpIAFT+csFrdcFiMfQnrZB3A88/kIN4KNph9G1wpCTetLZMM4Rjc4+p9VEosCoZk2YNhNx/cqhhml9PrzLldl4DN6klgUJT1AS2Nl5xUBsAvH0upLonLZedLoZiPlZ9b1AJG/d8T+/ULuz/YYvHryo5RMxTmxJ9aox/GaoKqREiXjH5ksbL8/LQfBhIP1zrt1L0yqLSgWUaIGaFCOSYjQud8RooTbJw==
X-YMail-OSG: lHAl65EVM1l.WSztx_DRMCEqpMiVhzH2VF6KsAgKD50h4kt0ivReI3oVDZsOSfR
 VekuZyoN_zXdnYs1z0WwrRdsmPBaHo62kym3dYe_kTIXI.YWh7tAj9Md.t_dUT4B_e2y1SQtMD7o
 YAn3qStnviDv39PCdiXzIoktgVEKFz3ArQD4sgfNqJzN.M7YmvLHxA5kHXxCeqHiVFceYmHdoFmT
 9GYsWTYUEDH1Yt5jgI.a96xh0ZCbFeT8vX49Be3OxvfrIK2lJzwCq.gUMBktt9UTTPZonPBPdF5r
 DpsIEjId9gJNm4iGn91U0ZnHGBlAaT9zy54GIOqQh8sdPnKeAPAfZLhJ_pYXoYvo3a8ngsQ32iM.
 619WjgPi.SSqlJCyY449veCyJP85fkkhrXbaw3YbZY1DqQlPn6GffPptATgEZADnNGFYuDQ6QZ08
 zXLGlKZy1wF1jwZtUKNPnFkIp9NiX9yEER3XQbPI_AFz4z8C6TC1gXjZ1Z3Adv0biyxF0tglBcpH
 fy2Y5mVuyzd1VRcF_FnerBZi3SQ1KdYB58LWoM34QVitZLL9vUCgSuxv7bEziJr.pi4CJJfaUsB9
 oo7IE44aH5uop90hX49vtTaBkzL2F4p8Td.zflpUn.p21M4MYOGMVADIcHtXEmsf8zMlKvfyz9In
 CgW8bcEQqc_WkXuglSQn6bCdJ_WGwxcKWLAif5XbKV3LQ.I63._pnWbyDPGEv781Z3GfZSBeyRlT
 V5a7LruC3mfiVcnykNvfCLsYszzS_XwnZZ2L1EBlFYtphQNBdm44yTLrAuJRDXtDkMLx4U6i4Xz9
 wNb4SIcuKJpvZbnNpxSbBPzjTh5azotOL.z6GVG1G2ICQ0hNSyd86Frs5irjx292iTM_KVpgbTnd
 v8S.PaG0P6NOqlf6E1WjyEM4C_1eMUDhR1TmgNYb7yP1NFcMEyA9IGPLkVasqd6FI2jFUg1w.0Zt
 e8DvpHPN2THnbPff0t7LMLuXod_qxEAZZvFmq0lMiHLDv821az03nxRBR8Jzt1g8aDl8juUhNNzG
 Up4XBXr5QUijlIPKY9xOrotAYhvY_hpCI970GKT2gNaMIyW7q3bSIJRRbSCpsmQm5Byv0hTcANTY
 rzXUMi6LfvuuzdCZ9HtLsOHBAG_F6VtL4aHHo1lzOUBeOUk1VKl5CNTZIRu3MwK6WK_hYfsQWUWA
 dNAexb6y2HVnKRa5hIWOCiksq7ZE9yarLk9s_7Oz5RnxydBiphyZrjZiVY474N8CbHT5N51oYgir
 ihHfZ45p2XaESnfn1EKslXZWDOnHs8cWheF4ffscIT8ijx8_YLKYmVTU.tTKiVlBGlVMh4HGo9j6
 BSG1B46ZQ48G1rQWloKGMcLgbspXHJkz5uA7N8makg8w0WpIja6sl2FO43FSGMudh7_JaoLo2aMC
 e2CR2palZETRYQbPYVF3H1O.EXKcn0XKDobqSTu0S.qqkdqYqXgjSXQZOCKDEo.lyl3P3ghN5ViY
 CLnYtIX2EkjhRun8oNkzMJEPvNbb1k12o7Y7htYq_0UUwyVPg1m98Ct4UJ4MGz67Tr6jwKL1uF1I
 fpEjVoBlLJUWxQPdq2gnfD5gYAomBHn5f1qnE0BptCihd6viCE10e9GECP1C0RSYpRRT2ovbC07B
 cSJ3WMxqET8IOx6kRGv4acj9cNYepnYGMY0O6eqi4tT3bQXUTfyXUUrLvUiUpmq0VkKhb83VAxJE
 0wliVD3zsDmxjW8k4SHM__tumgh9xaYs7muYiOD1mMFcupvxYg9MKgjE7vyfTyvNm6NpOLUOeH8X
 niFpQ5WBGFIYMKM5f5qtiAnq7tcbAAoFQ51YifLDQQb8XrtBxSQ8vOow7CLVpitAzFH8sq33PTTw
 883kIYcb8Wb7dLEWEX86C_o2JwTwub5GQj9Zc6F5Yw9CZNZJ4cwSrayOhfwJgLvpSFkifCj_zBFY
 ui6ptGJcxb.873MGagO0AjLQP95IyW6utXev25ACojVNVfunHIAAwihlRdLiDljg_gHXb5EGSRIM
 TnoRjveY_CO_4licFJlCxlKGT2Q9uTOoMNc5aBKPJI9KAlxM.r9ZV68xzW7ux8RWZs4qHu0POnPt
 709jmxan1OJwpjAaHN34NZtA432HGdE1sr2XdJIWa9e55iNq3MYQRt70ZTqNNoOkPmMScOXqYclr
 AQ5DFE5tHCUBXMLf2eUYsCRyEmV8AfP4ujeZWm2PNviL2hM8rq_4XSK964jbSARwuf4IKTLJTPs1
 2R4BLuq9.ajvQJ37r1G.bggdT8Jpgej9fxJJDRPW_JsN2BA--
X-Sonic-MF: <mardani29@HIDDEN>
X-Sonic-ID: 2debb3c0-2edc-4672-9607-efd3e60f65d9
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic302.consmr.mail.ir2.yahoo.com with HTTP; Sat, 16 Dec 2023 13:15:10 +0000
Received: by hermes--production-ir2-6488884f6f-xbxn8 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 67f9bd366a9dd038e5025c4f2c84f68d; 
 Sat, 16 Dec 2023 13:15:06 +0000 (UTC)
From: Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
In-Reply-To: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN> (Konrad
 Podczeck's message of "Thu, 7 Dec 2023 16:44:15 +0100")
References: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
Date: Sat, 16 Dec 2023 14:15:05 +0100
Message-ID: <m1le9ucmqu.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-Mailer: WebService/1.1.21952
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1797
X-Spam-Score: 0.2 (/)
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.8 (/)

Konrad Podczeck <konrad.podczeck@HIDDEN> writes:

> In nsterm.m, deleting the lines of code
>
>
> #ifdef NS_IMPL_COCOA
> if (! send_appdefined)
>   {
>   /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
>        in certain situations (rapid incoming events).
>        So check if we have one, if not add one.  */
>     NSEvent *appev =3D [NSApp nextEventMatchingMask:NSEventMaskApplicatio=
nDefined
>                                         untilDate:[NSDate distantPast]
>                                            inMode:NSDefaultRunLoopMode
>                                           dequeue:NO];
>     if (! appev) send_appdefined =3D YES;
>   }
> #endif
>
> as done in commit 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9 on
> 23-09-11, seems to be incompatible with macos Sonoma or Monterey. In
> both versions, and with both an M1 processor and an Intel one, I got
> the following problem, with these lines of code removed. I have
> pdf-tools installed, and via the code in windows.el, I have both the
> pdf output and some latex source code to appear in their own frames. I
> also have a managed to have a tool-bar in the frame showing the
> pdf-outout, with an icon for going from one page to the next. Now if I
> repeatedly click with the mouse on this icon very fast, then, after 3
> to 5 clicks, the whole emacs.app begins to hang. This is not so with
> the above lines of code still present in nsterm.m.

Could you describe the steps to reproduce this bug in more detail?  Does
it happen only when using the pdf-tools package?

Starting from emacs -Q, I=E2=80=99ve installed the pdf-tools package (M-x
package-install RET pdf-tools RET), but, after visiting a PDF file, I
don=E2=80=99t see any tool-bar icons to go to the previous and next page in=
 the
PDF.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67694: 30.0.50; tool-bar
Resent-From: Alan Third <alan@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 16 Dec 2023 20:14:02 +0000
Resent-Message-ID: <handler.67694.B67694.170275760610230 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67694
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Cc: Konrad Podczeck <konrad.podczeck@HIDDEN>, 67694 <at> debbugs.gnu.org
Received: via spool by 67694-submit <at> debbugs.gnu.org id=B67694.170275760610230
          (code B ref 67694); Sat, 16 Dec 2023 20:14:02 +0000
Received: (at 67694) by debbugs.gnu.org; 16 Dec 2023 20:13:26 +0000
Received: from localhost ([127.0.0.1]:56122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rEb2M-0002ev-C7
	for submit <at> debbugs.gnu.org; Sat, 16 Dec 2023 15:13:26 -0500
Received: from dane.soverin.net ([185.233.34.148]:58047)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1rEb2H-0002ef-BD
 for 67694 <at> debbugs.gnu.org; Sat, 16 Dec 2023 15:13:25 -0500
Received: from smtp.soverin.net (unknown [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4Ssy2L1XVdz2xGQ;
 Sat, 16 Dec 2023 20:13:14 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by
 soverin.net (Postfix) with ESMTPSA id 4Ssy2K25XxzHv; 
 Sat, 16 Dec 2023 20:13:13 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1702757594; bh=U8Rf1c6LpYNHCq4mjj3UyL4RXwL9QMXL3dSOYShRY5E=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=kqJY7CzeQzdmt888c8Itq7bo27Jf0c52fYfef1ZyQNVAWyZVaMQr82ZM9SfH01qpI
 iWYSIBRnnGpfWKK35ipIkCQU0pUc4QrgZYCct96UNFd95lFL0zwb6fF5MXUIcE6axe
 A0zrkN34HmwBQgMxhdLZn0w05iZYLouuFXHIy/fXBQZVp84oa33muhxrh1G/JseoTr
 4k21vhe4NPKEOsqx+RlOKIOsHDrgjJ/aC67x8hS1prNruTQ7NZ/TzFKrO7xlbrwJl2
 Qm56pBJ80rv+uyMcwRJQLc2SyYFUXI8Jx035nakQo7ccvU8KsvMMR1ajwcP4tqc6hh
 enVZU6q+j0oVQ==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rEb28-000CAw-2Z;
 Sat, 16 Dec 2023 20:13:12 +0000
Date: Sat, 16 Dec 2023 20:13:12 +0000
From: Alan Third <alan@HIDDEN>
Message-ID: <ZX4E2KbhsE2s9pEn@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>,
 Konrad Podczeck <konrad.podczeck@HIDDEN>,
 67694 <at> debbugs.gnu.org
References: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
 <m1le9ucmqu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m1le9ucmqu.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Sat, Dec 16, 2023 at 02:15:05PM +0100, Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
> Konrad Podczeck <konrad.podczeck@HIDDEN> writes:
> 
> > In nsterm.m, deleting the lines of code
> >
> >
> > #ifdef NS_IMPL_COCOA
> > if (! send_appdefined)
> >   {
> >   /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
> >        in certain situations (rapid incoming events).
> >        So check if we have one, if not add one.  */
> >     NSEvent *appev = [NSApp nextEventMatchingMask:NSEventMaskApplicationDefined
> >                                         untilDate:[NSDate distantPast]
> >                                            inMode:NSDefaultRunLoopMode
> >                                           dequeue:NO];
> >     if (! appev) send_appdefined = YES;
> >   }
> > #endif
> >
> > as done in commit 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9 on
> > 23-09-11, seems to be incompatible with macos Sonoma or Monterey. In
> > both versions, and with both an M1 processor and an Intel one, I got
> > the following problem, with these lines of code removed. I have
> > pdf-tools installed, and via the code in windows.el, I have both the
> > pdf output and some latex source code to appear in their own frames. I
> > also have a managed to have a tool-bar in the frame showing the
> > pdf-outout, with an icon for going from one page to the next. Now if I
> > repeatedly click with the mouse on this icon very fast, then, after 3
> > to 5 clicks, the whole emacs.app begins to hang. This is not so with
> > the above lines of code still present in nsterm.m.
> 
> Could you describe the steps to reproduce this bug in more detail?  Does
> it happen only when using the pdf-tools package?
> 
> Starting from emacs -Q, I’ve installed the pdf-tools package (M-x
> package-install RET pdf-tools RET), but, after visiting a PDF file, I
> don’t see any tool-bar icons to go to the previous and next page in the
> PDF.

I hate this application defined event malarkey, but I was never able
to come up with a better solution. The problem described in the
removed comment certainly looks like an Apple bug, but if it is then
surely it would have been fixed by now.

Konrad, are you able to try changing the code thus (the line numbers
are probably wrong):

modified   src/nsterm.m
@@ -4604,10 +4604,16 @@ Function modeled after x_draw_glyph_string_box ().
                                    data1: value
                                    data2: 0];
 
-      /* Post an application defined event on the event queue.  When this is
-         received the [NXApp run] will return, thus having processed all
-         events which are currently queued.  */
-      [NSApp postEvent: nxev atStart: NO];
+      if (! nxev)
+        {
+          NSLog(@"Something has stopped us creating an event.");
+          send_appdefined = YES;
+        }
+      else
+        /* Post an application defined event on the event queue.  When this is
+           received the [NXApp run] will return, thus having processed all
+           events which are currently queued.  */
+        [NSApp postEvent: nxev atStart: NO];
     }
 }

See if the log message prints, and/or whether it solves the problem.

-- 
Alan Third




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67694: 30.0.50; tool-bar
Resent-From: Konrad Podczeck <konrad.podczeck@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 18 Dec 2023 16:45:02 +0000
Resent-Message-ID: <handler.67694.B67694.170291787629074 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67694
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Alan Third <alan@HIDDEN>
Cc: 67694 <at> debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Received: via spool by 67694-submit <at> debbugs.gnu.org id=B67694.170291787629074
          (code B ref 67694); Mon, 18 Dec 2023 16:45:02 +0000
Received: (at 67694) by debbugs.gnu.org; 18 Dec 2023 16:44:36 +0000
Received: from localhost ([127.0.0.1]:33415 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rFGjL-0007Ys-Pd
	for submit <at> debbugs.gnu.org; Mon, 18 Dec 2023 11:44:36 -0500
Received: from grace.univie.ac.at ([2001:62a:4:25::25:115]:47386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.podczeck@HIDDEN>) id 1rFGjJ-0007YO-Bl
 for 67694 <at> debbugs.gnu.org; Mon, 18 Dec 2023 11:44:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=univie.ac.at; s=rev3; h=To:References:Message-Id:Content-Transfer-Encoding:
 Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID;
 bh=gI9ZCV3W/zAvwx5lbF+AWULC8qK3CuFKJ0vjjcxZhDE=; b=nlTKbn+XDQ7gwesjvnk4WB0hAN
 X6kC30E2R1ZQGaAIjEuGSrw3EiAjJHTgKAYjRpNNJnABVNYdO+UWD+FA7gVPM8oj5POyDjyuMm2yO
 3RpW/8CjMArhnx09mNZVZvxeWglBXl3IOhfrejvu2mmUr9WndPW0SFwz1wHeiEmTIVolmxW0hHf6H
 fCwq6gIwOiVrFgeaaSWtYRzzrV8l86tH25x/HwTlczA46btvAOTPvm5hdQkMbLUJXCBQap2d3zupj
 pjt0d+02nPkKWReSR3XvilZ6nK/hKe4p5gTC1jZlhAb9ohBCLajoJ3SZsOUPGGN7v0XZtj2xLuV1R
 BhrCLt+g==;
Received: from joan.univie.ac.at ([131.130.3.110] helo=joan.univie.ac.at)
 by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rFGj8-00000002mxF-0YIW; Mon, 18 Dec 2023 17:44:22 +0100
Received: from [41.66.124.146] (helo=smtpclient.apple)
 by joan.univie.ac.at with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rFGj7-00000008ICu-3vPD; Mon, 18 Dec 2023 17:44:22 +0100
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\))
From: Konrad Podczeck <konrad.podczeck@HIDDEN>
In-Reply-To: <ZX4E2KbhsE2s9pEn@HIDDEN>
Date: Mon, 18 Dec 2023 17:44:11 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <7688089A-1D7C-49FB-A445-F1AFA7C088AA@HIDDEN>
References: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
 <m1le9ucmqu.fsf@HIDDEN> <ZX4E2KbhsE2s9pEn@HIDDEN>
X-Mailer: Apple Mail (2.3774.300.61.1.2)
X-Univie-Virus-Scan: scanned by ClamAV on joan.univie.ac.at
X-Spam-Score: -2.3 (--)
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 (---)



> Konrad, are you able to try changing the code thus (the line numbers
> are probably wrong):
>=20
> modified   src/nsterm.m
> @@ -4604,10 +4604,16 @@ Function modeled after x_draw_glyph_string_box =
().
>                                    data1: value
>                                    data2: 0];
>=20
> -      /* Post an application defined event on the event queue.  When =
this is
> -         received the [NXApp run] will return, thus having processed =
all
> -         events which are currently queued.  */
> -      [NSApp postEvent: nxev atStart: NO];
> +      if (! nxev)
> +        {
> +          NSLog(@"Something has stopped us creating an event.");
> +          send_appdefined =3D YES;
> +        }
> +      else
> +        /* Post an application defined event on the event queue.  =
When this is
> +           received the [NXApp run] will return, thus having =
processed all
> +           events which are currently queued.  */
> +        [NSApp postEvent: nxev atStart: NO];
>     }
> }
>=20
> See if the log message prints, and/or whether it solves the problem.
>=20
> --=20
> Alan Third

This did not help me.

Konrad=




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67694: 30.0.50; tool-bar
Resent-From: Konrad Podczeck <konrad.podczeck@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 18 Dec 2023 16:49:01 +0000
Resent-Message-ID: <handler.67694.B67694.17029181317603 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67694
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Daniel =?UTF-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>
Cc: 67694 <at> debbugs.gnu.org
Received: via spool by 67694-submit <at> debbugs.gnu.org id=B67694.17029181317603
          (code B ref 67694); Mon, 18 Dec 2023 16:49:01 +0000
Received: (at 67694) by debbugs.gnu.org; 18 Dec 2023 16:48:51 +0000
Received: from localhost ([127.0.0.1]:33419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rFGnT-0001yZ-D0
	for submit <at> debbugs.gnu.org; Mon, 18 Dec 2023 11:48:51 -0500
Received: from grace.univie.ac.at ([2001:62a:4:25::25:115]:51200)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.podczeck@HIDDEN>) id 1rFGnR-0001xq-HY
 for 67694 <at> debbugs.gnu.org; Mon, 18 Dec 2023 11:48:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=univie.ac.at; s=rev3; h=To:References:Message-Id:Content-Transfer-Encoding:
 Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID;
 bh=w4vd+ElHpIwLU2FRTFe1bHNK/8c3ekJCHtqGAKm3NB0=; b=go06VdrO7ygLs9dF520E4z2a+7
 F+OZ0ju+Ncg4Hckq+rRH7i3pOKKCMkdnWnasaOBKI3MCXcAM1GhUTZzV0VrgXH5LAJpUlpd6T1mw0
 9eZbYi23PZNcUoYe9Ua+GuFppxp69KyJ0cqjeX04LSL0veiPgKzU/QJDvqwsqYfME0jkqNUcfgKg3
 s43o5Ngx2KQWhF0jykQoa7k12qjseqeYBKWiYvwSleCGVQfzC7gUjRnS15FuKMP8F70QQ2tGkZByC
 fTltbXhMxVy3mJHUyg5RVrnoBcgZ2BAxn+G0uvtivPEqWHcoVPb0pCAcWYjcDbrb1se+/Pvq8veni
 TuK0s6EA==;
Received: from joan.univie.ac.at ([131.130.3.110] helo=joan.univie.ac.at)
 by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rFGnK-00000002nQh-0Val; Mon, 18 Dec 2023 17:48:42 +0100
Received: from [41.66.124.146] (helo=smtpclient.apple)
 by joan.univie.ac.at with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.97) (envelope-from <konrad.podczeck@HIDDEN>)
 id 1rFGnK-00000008IRP-0CBU; Mon, 18 Dec 2023 17:48:42 +0100
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\))
From: Konrad Podczeck <konrad.podczeck@HIDDEN>
In-Reply-To: <m1le9ucmqu.fsf@HIDDEN>
Date: Mon, 18 Dec 2023 17:48:31 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <DCE96364-0DFB-40D1-81E4-1D33BDD2E392@HIDDEN>
References: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
 <m1le9ucmqu.fsf@HIDDEN>
X-Mailer: Apple Mail (2.3774.300.61.1.2)
X-Univie-Virus-Scan: scanned by ClamAV on joan.univie.ac.at
X-Spam-Score: -2.3 (--)
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 (---)



> Could you describe the steps to reproduce this bug in more detail?  =
Does
> it happen only when using the pdf-tools package?


No idea.

>=20
> Starting from emacs -Q, I=E2=80=99ve installed the pdf-tools package =
(M-x
> package-install RET pdf-tools RET), but, after visiting a PDF file, I
> don=E2=80=99t see any tool-bar icons to go to the previous and next =
page in the
> PDF.


I have inserted something like the following in pdf-view.el:


(defvar pdfview-tool-bar-map
  (let ((map (make-sparse-keymap)))
(tool-bar-local-item "some-picture-name-1" 'pdf-view-first-page =
'pdf-view-first-page map :help "First page")
(tool-bar-local-item "some-picture-name-2" 'pdf-view-next-page =
'pdf-view-next-page map :help "Next page")
(tool-bar-local-item "some-picture-name-3" 'pdf-view-previous-page =
'pdf-view-previous-page map :help "Previous page")
(tool-bar-local-item "some-picture-name-4" 'pdf-view-last-page =
'pdf-view-last-page map :help "Last page")
map)



and, after the block starting with "(setq-local mode-line-position


(setq-local tool-bar-map pdfview-tool-bar-map)

Konrad





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


Received: (at control) by debbugs.gnu.org; 10 Jan 2024 19:30:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 14:30:40 2024
Received: from localhost ([127.0.0.1]:43252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNeHf-0006EH-Lp
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 14:30:40 -0500
Received: from dane.soverin.net ([185.233.34.158]:59219)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>)
 id 1rNeHb-0005ye-Uc; Wed, 10 Jan 2024 14:30:37 -0500
Received: from smtp.soverin.net (unknown [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4T9HvV4xHXz10Hq;
 Wed, 10 Jan 2024 19:30:30 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by
 soverin.net (Postfix) with ESMTPSA id 4T9HvV1qdLzDh; 
 Wed, 10 Jan 2024 19:30:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1704915030; bh=Gvdfphva0031s5UlxVAzj1nQJoPXfMFS+1VgKgYZ/Zs=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=h4FWQ85MzufFiig640TusBR/bFBBo8ByekFO8ipxm/AaDsYvQXQVCIX/uumNtlixj
 hJNEFJW9qZDhczChA6G7HOSKPVZfPP7JO6N7iRZvg6Jk54kGPyOwljanSpSYz4rMhi
 Nn1QBKUwQ97z8N2C9FFrr3u6Zlrb20UPnAz2bh5PasCk49grVb66cgZv3MztOnL3AD
 EvTo+I62Pl5Hy6rJ5SY5p6/VS197XETTfo6+dZCJuFoDdGw01l57t2imIe9nsIFETg
 dp0iq32xrRDTFHjJb4ouPfSoKd1LletSbcr0SC1OLrR1B3muctTHMPI/GZgYPbbA2U
 9sM2QqaVW2GVg==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rNeHV-00160a-2d;
 Wed, 10 Jan 2024 19:30:29 +0000
Date: Wed, 10 Jan 2024 19:30:29 +0000
From: Alan Third <alan@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#67528: tool-bar
Message-ID: <ZZ7wVecURFPZDC9H@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>,
 Konrad Podczeck <konrad.podczeck@HIDDEN>,
 67528 <at> debbugs.gnu.org
References: <25643CF2-C078-488F-B433-3D8EE293C4B5@HIDDEN>
 <CADwFkmmx2zYa932CKpZbmjy_i2RoiE_8jzPVC9QKr7ncDwqGQw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CADwFkmmx2zYa932CKpZbmjy_i2RoiE_8jzPVC9QKr7ncDwqGQw@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
Cc: 67528 <at> debbugs.gnu.org, Konrad Podczeck <konrad.podczeck@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 (-)

package emacs
merge 67528 67694
thankyou

On Wed, Jan 10, 2024 at 09:39:54AM -0800, Stefan Kangas wrote:
> Konrad Podczeck <konrad.podczeck@HIDDEN> writes:
> 
> > In nsterm.m, deleting the lines of code
> >
> >
> > #ifdef NS_IMPL_COCOA
> >   if (! send_appdefined)
> >     {
> >     /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves
> >          in certain situations (rapid incoming events).
> >          So check if we have one, if not add one.  */
> >       NSEvent *appev = [NSApp nextEventMatchingMask:NSEventMaskApplicationDefined
> >                                           untilDate:[NSDate distantPast]
> >                                              inMode:NSDefaultRunLoopMode
> >                                             dequeue:NO];
> >       if (! appev) send_appdefined = YES;
> >     }
> > #endif
> >
> > as done in commit 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9 on
> > 23-09-11, seems to be incompatible with macos Sonoma or Monterey.
> > In both versions, and with both an M1 processor and an Intel one,
> > I got the following problem, with these lines of code removed. I
> > have pdf-tools installed, and via the code in windows.el, I have
> > both the pdf output and some latex source code to appear in their
> > own frames. I also have a managed to have a tool-bar in the frame
> > showing the pdf-outout, with an icon for going from one page to
> > the next. Now if I repeatedly click with the mouse on this icon
> > very fast, then, after 3 to 5 clicks, the whole emacs.app begins
> > to hang. This is not so with the above lines of code still present
> > in nsterm.m.
> >
> > Konrad Podczeck
> 
> Alan, what do you think?

We had a look at this in bug#67694, and I don't know. The code was
removed because it appeared to be causing a crash on startup, so if we
reinstate it we'll need to reopen that bug report (bug#65843).

I find it hard to believe the comment is right and this is a bug that
hasn't ever been fixed. I think it's more likely the actual culprit is
some timing issue in our own code, but that doesn't help as I don't
understand it. As for how this code causes the crash in 65843, I don't
understand that either.
-- 
Alan Third




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


Received: (at control) by debbugs.gnu.org; 12 Jan 2024 17:23:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 12:23:04 2024
Received: from localhost ([127.0.0.1]:37608 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOLFI-00020O-1H
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2024 12:23:04 -0500
Received: from dane.soverin.net ([185.233.34.157]:48149)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>)
 id 1rOLFE-0001zW-BA; Fri, 12 Jan 2024 12:23:02 -0500
Received: from smtp.soverin.net (unknown [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4TBSzN4WhhzyV6;
 Fri, 12 Jan 2024 17:22:56 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net
 (Postfix) with ESMTPSA id 4TBSzN0Qpzz5K; 
 Fri, 12 Jan 2024 17:22:56 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1705080176; bh=S2L4QMMst2nvSbmHoVYSuI8LoIk2yQkvwLvxXl+BYvI=;
 h=Date:From:To:Cc:Subject:References:From;
 b=QhKmE5I0+jLNBf+cKrKgZ37krH2x8Ypm4sscm6l4gGoaBDLPOFscS1vITFrXlx8oh
 YT+69bAkSBJM4ThDeCtbN0V6y4CKROKQQk7ZyOhQnwDQHsGOGUkxH5k0DSNLLTybOH
 IMBd32lYZ7nc7qprm8y+IvJW40z6SLtM0U4ZdYu/0ozqveLn0Y5QAWKYJGXIPP0r0y
 dBrF/B77UcR2EzK0JALGzSqMTYkmdSTyMPEXIp5P5RugY36bH9+s6EIcFwfqkoybNN
 K9pEP9lZUiEUDHRgQqNCho7W3pTzDoSLPmF2Y8n6MjWVG3MaLGVo3rk/rchQAn7y6t
 VgIMh4e7+zsuA==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rOLF8-0017iX-3D;
 Fri, 12 Jan 2024 17:22:54 +0000
Date: Fri, 12 Jan 2024 17:22:54 +0000
From: Alan Third <alan@HIDDEN>
To: Kirill Korinsky <kirill@HIDDEN>
Subject: Re: bug#51336: 29.0.50; Application not responding
Message-ID: <ZaF1brnFr6PjPTml@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Kirill Korinsky <kirill@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 stefankangas@HIDDEN, 51336 <at> debbugs.gnu.org
References: <YXZ2jdqBDAmgTnsJ@HIDDEN> <87czbzz5z6.fsf@HIDDEN>
 <67CF5E61-EE5A-4B24-9697-B61D75E67B4C@HIDDEN>
 <87sfkvxqp4.fsf@HIDDEN>
 <9F6E5B01-F80E-46AE-8A86-ED7080D09725@HIDDEN>
 <CADwFkmmVVLfJzHXAP+Qsbi7gFJ+ZLWdLybBSqzeRaAG0Me--LQ@HIDDEN>
 <1B89E5CF-789E-4DDE-8051-D7F22FA9D97B@HIDDEN>
 <835y4r8w8a.fsf@HIDDEN>
 <C13E5205-4431-411F-B565-2F86E9AA3A48@HIDDEN>
 <83cyuq6re1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
Cc: 51336 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, stefankangas@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 (-)

package emacs
merge 51336 67694
thankyou

On Fri, Jan 12, 2024 at 05:31:49PM +0100, Kirill Korinsky wrote:
> Emacs was frozen (UI) and hasn't response to any command. Before that it had
> happened I'd resized a window.
> 
> I attach and de-attach external screen quite often and it triggers the resize.
> 
> So, when it was frozen I've attached via lldb and get stack traces bellow.
> 
> It is reproducable, not each resize but often enough.
> 
> When it frozen, I need to kill it, otherwise it absolutle useless.
> 
> And this stack trace was obtained from local root d9462e24a967e32d550ee886b5150f0cc78358f6
> 
> (lldb) bt all
> * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
>   * frame #0: 0x00007ff80d07596a libsystem_kernel.dylib`mach_msg_trap + 10
>     frame #1: 0x00007ff80d075cd8 libsystem_kernel.dylib`mach_msg + 56
>     frame #2: 0x00007ff80d17929d CoreFoundation`__CFRunLoopServiceMachPort + 319
>     frame #3: 0x00007ff80d177928 CoreFoundation`__CFRunLoopRun + 1276
>     frame #4: 0x00007ff80d176d6c CoreFoundation`CFRunLoopRunSpecific + 562
>     frame #5: 0x00007ff815e245e6 HIToolbox`RunCurrentEventLoopInMode + 292
>     frame #6: 0x00007ff815e2434a HIToolbox`ReceiveNextEventCommon + 594
>     frame #7: 0x00007ff815e240e5 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 70
>     frame #8: 0x00007ff80fbb1f6d AppKit`_DPSNextEvent + 927
>     frame #9: 0x00007ff80fbb062a AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
>     frame #10: 0x00007ff80fba2cd9 AppKit`-[NSApplication run] + 586
>     frame #11: 0x0000000104b2449c Emacs`-[EmacsApp run] + 317

OK, I think this is the same as bug#67694, so I'll merge them.

I think we need to revert 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9 as
discussed in that other bug report and re-open bug#65843, if we can.

Unless anyone else has a better idea.
-- 
Alan Third





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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