From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#32864: 26.1; menus don't work correctly in Mac OS Mojave Date: Tue, 4 Jun 2019 23:08:10 +0200 Message-ID: References: <20190604164446.GB23349@breton.holly.idiocy.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="62874"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 32864@debbugs.gnu.org, Robert Pluim , omari@smileystation.com, artemiog@mac.com, simon@simonscientific.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 04 23:09:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYGgQ-000GF3-3i for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jun 2019 23:09:26 +0200 Original-Received: from localhost ([127.0.0.1]:58163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYGgP-0004Ja-21 for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jun 2019 17:09:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYGgC-0004Id-Kr for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 17:09:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYGgA-0000AF-NU for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 17:09:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYGg5-0008UJ-AR for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 17:09:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hYGg2-0006D0-5i for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 17:09:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jun 2019 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32864 X-GNU-PR-Package: emacs Original-Received: via spool by 32864-submit@debbugs.gnu.org id=B32864.155968250323821 (code B ref 32864); Tue, 04 Jun 2019 21:09:02 +0000 Original-Received: (at 32864) by debbugs.gnu.org; 4 Jun 2019 21:08:23 +0000 Original-Received: from localhost ([127.0.0.1]:45887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYGfO-0006C9-TS for submit@debbugs.gnu.org; Tue, 04 Jun 2019 17:08:23 -0400 Original-Received: from mail1423c50.megamailservers.eu ([91.136.14.23]:58010 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYGfM-0006Bv-II for 32864@debbugs.gnu.org; Tue, 04 Jun 2019 17:08:21 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1559682493; bh=d9hHBYCAtkzt8NJ/7wNMmjZwsZgxfbVUicRC1+hmiGA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=TM+TCqwXVoj/tyrjpzO6EM6K6vjLuEt1IrPlM6amteCWX7B1JTHOwsdEGcq+EOFjG Z0keTTBnkPdfiRS64rDZaqBdZhmBsOz8z/Xgx3uLiolud+ZFcET+zTu7FkKWMUrQ3Z X5IfkOJSWncMs0UYOnOtmfG5DMuLhQTa7/HtxE8M= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x54L8ABl012671; Tue, 4 Jun 2019 21:08:11 +0000 In-Reply-To: <20190604164446.GB23349@breton.holly.idiocy.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0204.5CF6DDBD.002B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=F7x5iJpN c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=hIj89exaAAAA:8 a=4La5qBafUtIiI1-Kc-YA:9 a=QEXdDO2ut3YA:10 a=lS9wXHQM5UdnNJ4u63Ry:22 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160126 Archived-At: 4 juni 2019 kl. 18.44 skrev Alan Third : >=20 > It may also be the case that Emacs can try to run the event loop from > within elisp code as a matter of course. I'm no Cocoa expert, but the docs explicitly state that recursively = entering an event loop from an event handler is allowed. > The other solution I found is to rebuild the menu completely whenever > lisp updates it. This is simple enough to do but rebuilding the menus > takes something like 40=E2=80=9070ms every time, as opposed to 1=E2=80=90= 2ms to just > rebuild the top level, and it can do it up to three times per > keypress. I think it may also do it sometimes while scrolling. It > didn=E2=80=99t seem like a good idea to me. On the other hand I = don=E2=80=99t remember > actually having much trouble with it. Is the entire menu rebuilt every time some part of it changes, or are = the changes segregated by drop-down menu? The Buffers menu probably sees a lot of traffic; it seems to be updated = from menu-bar-update-hook, which fires a lot, even though most of the = time the buffer list doesn't actually change. It's probably a bad idea to add a latency of 40-70 ms several times per = key press in any case. > If anyone has any other ideas I=E2=80=99d be happy to hear them. The emacs-mac port, which seems to be an AppKit/Carbon hybrid (?), does = not exhibit this menu glitch. I'm not sure exactly how it does this, but = the general approach looks roughly similar. Maybe we could ask its = author for advice.