From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#31371: 26.1; Menu-bar stops working after search Date: Tue, 8 May 2018 22:40:24 +0100 Message-ID: <20180508214024.GB13768@breton.holly.idiocy.org> References: <20180506101411.GA3327@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1525815547 19512 195.159.176.226 (8 May 2018 21:39:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 May 2018 21:39:07 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: 31371@debbugs.gnu.org To: Nick Helm Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 08 23:39:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGAK6-0004vW-0p for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2018 23:39:02 +0200 Original-Received: from localhost ([::1]:53424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGAMD-0008M4-0m for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 May 2018 17:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGAM6-0008Ly-41 for bug-gnu-emacs@gnu.org; Tue, 08 May 2018 17:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGAM2-0008Ni-Px for bug-gnu-emacs@gnu.org; Tue, 08 May 2018 17:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGAM2-0008Nc-KA for bug-gnu-emacs@gnu.org; Tue, 08 May 2018 17:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fGAM2-00081R-5c for bug-gnu-emacs@gnu.org; Tue, 08 May 2018 17:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 May 2018 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31371 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31371-submit@debbugs.gnu.org id=B31371.152581563530794 (code B ref 31371); Tue, 08 May 2018 21:41:02 +0000 Original-Received: (at 31371) by debbugs.gnu.org; 8 May 2018 21:40:35 +0000 Original-Received: from localhost ([127.0.0.1]:54583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGALa-00080c-Lh for submit@debbugs.gnu.org; Tue, 08 May 2018 17:40:34 -0400 Original-Received: from mail-wr0-f179.google.com ([209.85.128.179]:38921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGALZ-00080Q-D7 for 31371@debbugs.gnu.org; Tue, 08 May 2018 17:40:33 -0400 Original-Received: by mail-wr0-f179.google.com with SMTP id q3-v6so33738124wrj.6 for <31371@debbugs.gnu.org>; Tue, 08 May 2018 14:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=1xYuFnjg7FBM0d9js+uZvLNAzCa8Z9L2oSw0QeT+/JU=; b=Bx69dtMJWV05nFBDq4fyG/cREtZ0HgXsbwYyK2u5xRXEfD3Re9OckS6gI42XyD/5JZ xTVodLZDJnroTdvZVZs4QySLTysKvavIiL2RvyN8KB67FtlXdTuJB8CQxY+zkAJ+nVDR 3jhkMKbxokSoNdiRKFVwnO5XEwJk/AqGFiZxLRsz8kmZY8ztbFRuylAYuhoesWNzH8Az 59yNsvN755/L9JxvRAwKeqyH1VYPXzWqh5U4ZGTdBvE38+exVDCn0lIQCG2ZarUaTNQK 5YTQZdwVUpjt7qr7X+mevGVS0oNyMCmOxMdFUfDng43P+v0POgz/wx2PCzzxvJWZfPFB mepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=1xYuFnjg7FBM0d9js+uZvLNAzCa8Z9L2oSw0QeT+/JU=; b=StEp34HkikTyFMoAMm68BmK1dJ4CPkFgJ69rW6k6rGCQyNcBlYYaMD5YhK3K07u2nc jriYldtSe2GASZoUUi+0BpTYyfBH9CfkFOgiYCxWpk1Dg8dLMEwXAYRwu/enaQ1WeuJV eZQZqbrAbaWEI6oR2cTNCCnA/lGspvH70Oc6lTg9tpew5+lVCPXhn3CkxJ91ykH4d1XS m4Jz0arHMcqVFUSdjH1eQfddxKAPsmdk4XjUgM77PiZxCcemO4K61Jfu3+FhRajwDVyX erJlH8YzAwiToEEVJrT0dIjh5OGSpKUgPxE5Qhfn+btmpVyvPT69cAmVVIkmXKQfLfXO mR4Q== X-Gm-Message-State: ALQs6tD7CtoVP+cr3Znd1goR2dCjRB/CmKKt7uw8mF8d/B7n2/I+5+Jq MoyT6Od5dJllaH7bc3wMJ/diWDu0 X-Google-Smtp-Source: AB8JxZoE7YNBdWZaLzeWOZ0lhfIzizTLDG0/cfqTqVAcmf43VOdbVYKKJXpUmsuYwEtHHWhaWpePFg== X-Received: by 2002:adf:c54b:: with SMTP id s11-v6mr32776465wrf.46.1525815627446; Tue, 08 May 2018 14:40:27 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-c8d4-b636-0fc6-fad1.holly.idiocy.org. [2001:8b0:3f8:8129:c8d4:b636:fc6:fad1]) by smtp.gmail.com with ESMTPSA id f143-v6sm144961wme.43.2018.05.08.14.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 14:40:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: 208.118.235.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:146087 Archived-At: On Mon, May 07, 2018 at 02:48:16PM +1200, Nick Helm wrote: > If this is the case, it should cause problems even by simply opening and > closing the Help menu. And I think that's what we're seeing. From > Emacs -Q, try opening and closing the Help menu (ignore search), then > click between the visible frame and the desktop a few times. After a > couple of tries, the frame cannot regain proper focus and the menu-bar > doesn't operate at all. I can’t replicate this. Nor your experiment with textedit in the other email. I definitely see the issue you originally described, though. > All of the delayed events and tracking stuff seems over-complicated and > unnecessary. What am I missing? Apparently it was added because regenerating the menus calls lisp, which is then able to call ns_select, however the code to regenerate the menus is called from within the NS app loop within ns_select, so we end up with the app loop running within the app loop via ns_select. This isn’t allowed. I notice all this code is cocoa only, though. Makes me wonder why GNUstep is different. (The menus on GNUstep Emacs are awful, though, they flicker constantly.) I still don’t understand how this works, because I get the impression from the code that the menus are generated when the user clicks on them, but they clearly change when you switch windows or frame or whatever. So on the one hand it appears they’re updated within the NS app loop as part of a response to the user clicking on the menu, but on the other they’re generated outside the app loop by some lisp function or something. Maybe it’s both, in which case why? Of course, none of this might be relevant to the help menu bug. I’m quite lost at the moment. -- Alan Third