GNU bug report logs - #67694
30.0.50; tool-bar

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

Package: emacs; Reported by: Konrad Podczeck <konrad.podczeck@HIDDEN>; merged with #51336, #67528; dated Thu, 7 Dec 2023 15:45:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 51336 67528 67694. Request was from Alan Third <alan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 67528 67694. Request was from Alan Third <alan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 67694) by debbugs.gnu.org; 18 Dec 2023 16:48:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 18 11:48:51 2023
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\))
Subject: Re: bug#67694: 30.0.50; tool-bar
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>
To: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@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-Debbugs-Envelope-To: 67694
Cc: 67694 <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 (---)



> 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





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

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


Received: (at 67694) by debbugs.gnu.org; 18 Dec 2023 16:44:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 18 11:44:36 2023
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\))
Subject: Re: bug#67694: 30.0.50; tool-bar
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>
To: Alan Third <alan@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-Debbugs-Envelope-To: 67694
Cc: 67694 <at> debbugs.gnu.org, =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)



> 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=




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

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


Received: (at 67694) by debbugs.gnu.org; 16 Dec 2023 20:13:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 16 15:13:26 2023
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>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
Subject: Re: bug#67694: 30.0.50; tool-bar
Message-ID: <ZX4E2KbhsE2s9pEn@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Daniel =?iso-8859-1?Q?Mart=EDn?= <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-Debbugs-Envelope-To: 67694
Cc: Konrad Podczeck <konrad.podczeck@HIDDEN>, 67694 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Sat, 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




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

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


Received: (at 67694) by debbugs.gnu.org; 16 Dec 2023 13:15:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 16 08:15:23 2023
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+yWjm6oP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7Y7htYq_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: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Konrad Podczeck <konrad.podczeck@HIDDEN>
Subject: Re: bug#67694: 30.0.50; tool-bar
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-Debbugs-Envelope-To: 67694
Cc: 67694 <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: -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.




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

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


Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 15:44:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 07 10:44:43 2023
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\))
Subject: 30.0.50; tool-bar
Message-Id: <E83D4BE5-A2FC-4089-B1F0-1AB8E00273F8@HIDDEN>
Date: Thu, 7 Dec 2023 16:44:15 +0100
To: bug-gnu-emacs@HIDDEN
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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.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=




Acknowledgement sent to Konrad Podczeck <konrad.podczeck@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#67694; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 10 Jun 2024 01:15:01 UTC

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