From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#66420: remove the omnipresent 'Services' sub-menu from all pop-up menus (macOS) Date: Mon, 9 Oct 2023 12:44:40 +0000 Message-ID: References: <7E27D8DA-B27F-4428-9C09-A1A13AACFC69@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66420@debbugs.gnu.org, Alan Third To: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 09 14:46:37 2023 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 1qppee-0007vt-Ro for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Oct 2023 14:46:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qppeQ-0008T1-1f; Mon, 09 Oct 2023 08:46:24 -0400 Original-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 ) id 1qppdv-0008Ju-VC for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:45:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qppdl-0006vn-Q5 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:45:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qppe6-0006m9-9d for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2023 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66420 X-GNU-PR-Package: emacs Original-Received: via spool by 66420-submit@debbugs.gnu.org id=B66420.169685551118141 (code B ref 66420); Mon, 09 Oct 2023 12:46:02 +0000 Original-Received: (at 66420) by debbugs.gnu.org; 9 Oct 2023 12:45:11 +0000 Original-Received: from localhost ([127.0.0.1]:59507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppdG-0004i4-U0 for submit@debbugs.gnu.org; Mon, 09 Oct 2023 08:45:11 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:58850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppdD-0004CR-KF for 66420@debbugs.gnu.org; Mon, 09 Oct 2023 08:45:09 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-503056c8195so5744343e87.1 for <66420@debbugs.gnu.org>; Mon, 09 Oct 2023 05:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696855481; x=1697460281; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=8aVZimjivEEJsJ4VALFtvUW1DVWOT3CxGc78QEuaBe4=; b=IRPdjMeAWruQNisZ7NPPXisJIr8a+aPjZwJREraQPclshy7vBKEGNHP0MI5CClM5/g uUA+67DTNcILKmfQ5HHcdseDs0Qi+SwbIZkYj62VnM/EC4p2elkSyS+9/jmx8jk49/zA GEBJeBEMtAsnIgW5rSW8/MHQ4VUV3HDncwnxc14PgC9ZAwl9piq7b5t8oA+PJ8oXpZd4 jrw8dF2yG7SVIf5igtadsFMHjnmCtXLEmwb9oNWghZYf1gimN72OsJL/+k8XjIAwCG9R CRdqWLSSoMq7h4n9CGAzMxrNmZDKj0l6Vds5o2kUqXqpRGlzQJkYguA2Yg693JqniiJS 4xFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696855481; x=1697460281; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8aVZimjivEEJsJ4VALFtvUW1DVWOT3CxGc78QEuaBe4=; b=XfyKFhMxFWhAxqN0p1mBO/PiLeBop8v0NWS6s6uG+7fDN2ox47srhKKiE+29gnYJE0 rEi8WZ9BWFZWd134pL9n1QNnrcz3J3RcQfWNFR7WngFYhkNuukttSfC7o33i5JN7gZ8l HeV5/3Xf3PtTJopLUP57NPSZo6oJFmOopIJQAN3wMxx1swqf2Srv9oxE68AnAHFtg8FV APPKwRxw5cTi6bHF11+qABr9kDF8U+o3UtB236zgIIUXLkASIdd3aJfoMZxE0EhY5UtW qayDI3pLL2VRdhFFQJXKuWlg6SnEaH/KEpDY9/sbVO5Y5vuY64eNsxoZVKTTvRPOrWgM /KEw== X-Gm-Message-State: AOJu0Yyw4cGFFOz42p7CwqOxffTfJ2vsBbktkQiYa1ZEIee1k0UbENOH sq6jg8xBNqutrhKDr6L9jXalMHK3yWrmfPYwV4g= X-Google-Smtp-Source: AGHT+IF/W2IeCCFqN4ND3CdkRHFoQlgih/6EkzFsrG6KDjX9aFMybSPscxeyh6d45OKyFoTE5yTe2Glsil3rMMQnvq8= X-Received: by 2002:a05:6512:b25:b0:503:38bc:e68c with SMTP id w37-20020a0565120b2500b0050338bce68cmr12166002lfu.47.1696855480788; Mon, 09 Oct 2023 05:44:40 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 9 Oct 2023 12:44:40 +0000 In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272147 Archived-At: Gerd M=C3=B6llmann writes: >> The patch below removes it. The property is documented to be present in = macOS 10.6 and above, which is fairly old (Snow Leopard). That's also the oldest version of macOS that we support, so that should be fine. >> --- a/src/nsmenu.m >> +++ b/src/nsmenu.m >> @@ -768,6 +768,9 @@ - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (stru= ct frame *)f >> pressure: 0]; >> >> context_menu_value =3D -1; >> +#if MAC_OS_X_VERSION_MIN_REQUIRED >=3D 1060 >> + self.allowsContextMenuPlugIns =3D NO; >> +#endif >> [NSMenu popUpContextMenu: self withEvent: event forView: view]; >> retVal =3D context_menu_value; >> context_menu_value =3D 0; > > I'm all for it :-) +1