From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#19120: 25.0.50; macosx: f10 does NOT go to the menu bar Date: Sat, 23 Oct 2021 11:18:33 +0100 Message-ID: References: <700A6A05-B019-4B80-9CBC-880F58EEEE5A@swipnet.se> <8C6577F7-44BC-4BD7-B1A8-082FB5014C02@swipnet.se> <87pms0csf2.fsf@yahoo.com> <87v91s2f9y.fsf@gmail.com> <87h7dcat6a.fsf@yahoo.com> <87k0i73mao.fsf@gmail.com> <878ryn8bx7.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Pluim , sds@gnu.org, 19120@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 12:19:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meE7N-0003H9-3z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 12:19:13 +0200 Original-Received: from localhost ([::1]:46210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meE7L-0005wH-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 06:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meE7C-0005vs-Iu for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 06:19:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meE7C-0004IS-At for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 06:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meE7C-0004gx-1I for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 06:19: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: Sat, 23 Oct 2021 10:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19120 X-GNU-PR-Package: emacs Original-Received: via spool by 19120-submit@debbugs.gnu.org id=B19120.163498432718008 (code B ref 19120); Sat, 23 Oct 2021 10:19:01 +0000 Original-Received: (at 19120) by debbugs.gnu.org; 23 Oct 2021 10:18:47 +0000 Original-Received: from localhost ([127.0.0.1]:34439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meE6x-0004gO-8t for submit@debbugs.gnu.org; Sat, 23 Oct 2021 06:18:47 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:33461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meE6v-0004g8-Ae for 19120@debbugs.gnu.org; Sat, 23 Oct 2021 06:18:46 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 2883DD1; Sat, 23 Oct 2021 10:18:39 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1634984318; bh=GDt7cRzNr5+vo54Ot+4kK5sh2jftg0hXmT04JG5c6eI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WG0NDpFlKu7RhKQuz0SPICief0On3JRBrEpDRfvVL96riaL3hcTwVs5WYNXsmydvG pCVS86aHaSLY/0rXWnpzOzpOiF3CAnlyCQnK8rGNmfouevHpy8yjN2PEIUI7TlvR1w DYHXosh2x9RiF9iKy89fu/bi0YeUEiqjulbKUWAXCi5zUuaM1vZyZPjdsX+2d+8qdf YWbEh+oQEd5w8YGS67qphC7Vfyd30+78JDAOyfCV2xwi24fB5AX/6lb4nunetNdgnp P9z97ulLpl7nBIzSzGYPZTuK8mqQa0Zooqwk9ynWOUlIFPBAYDcTxwMfplUzVnYrGG kjHMAJK9huPYg== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id F36AE202D9AD3B; Sat, 23 Oct 2021 11:18:33 +0100 (BST) Mail-Followup-To: Alan Third , Po Lu , Robert Pluim , sds@gnu.org, 19120@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <878ryn8bx7.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217967 Archived-At: On Thu, Oct 21, 2021 at 08:21:56AM +0800, Po Lu wrote: > Alan Third writes: > > > Is there a reason to avoid faking a mouse event? > > > > Assuming the first answer here is correct: > > > > https://stackoverflow.com/questions/21583559/nsmenu-programmatically-select-item > > > > it looks quite straightforward and clean. > > Aren't performClick and selectItemAtIndex only for popup menus, which > the system menu bar is not? I guess so. Since the macOS method doesn't work we'll need to retain the current behaviour there. The rest of the code can therefore be #if'd off as GNUstep only, perhaps with a short explanation why. Also, can you please move ns_activate_menubar to somewhere near the rest of the menu code? It should probably be above the implementation of EmacsMenu. -- Alan Third