From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#66420: remove the omnipresent 'Services' sub-menu from all pop-up menus (macOS) Date: Mon, 09 Oct 2023 14:28:34 +0200 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="18744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66420@debbugs.gnu.org, Alan Third To: 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:30:17 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 1qppOq-0004kU-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Oct 2023 14:30:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qppOL-0001hc-5A; Mon, 09 Oct 2023 08:29:45 -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 1qppOH-0001hL-QA for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:29:43 -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 1qppOH-0003qo-Hv for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:29:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qppOc-00010I-2d for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 08:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2023 12:30: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.16968545453757 (code B ref 66420); Mon, 09 Oct 2023 12:30:02 +0000 Original-Received: (at 66420) by debbugs.gnu.org; 9 Oct 2023 12:29:05 +0000 Original-Received: from localhost ([127.0.0.1]:59471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppNh-0000yV-6l for submit@debbugs.gnu.org; Mon, 09 Oct 2023 08:29:05 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:59670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppNe-0000xy-4s for 66420@debbugs.gnu.org; Mon, 09 Oct 2023 08:29:04 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9b98a699f45so755317966b.3 for <66420@debbugs.gnu.org>; Mon, 09 Oct 2023 05:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696854515; x=1697459315; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kNRQA/OJGa6W4vcnKa9lIw/QN5my0VIw4i6IMqEfHwE=; b=Kd5+9jv+erGX281zGn1beQYOduMFrqXm6haZg77IqKIL0/eBJo4jgRD5+wH4xPVjXQ Or+p6eXb4WsHhbBdlQtwj0nUJXlp2lophIKOYNlZRdzgQ9ftAv1SOT6HC4oyEDpACJwK s+ysGWxBvHDN6BcqobU+QI+5uKLH9rc3BiKb5ZlanPmipgD5b0ZGtI7Sy9ic/JgJ95R8 hM8ZKZWP5SLjqr/UN5g9/IjoVEFW8W51v0gBGX9XSZAKO35k2+T+3NqDJxiOZR1zyYEW XmV9T/W4GpCj8w88x7aGDmSgd6dBOFxL3hVA7U2EfhqAjElmViGYEOgbJR1H643ix6E/ DrEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696854515; x=1697459315; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kNRQA/OJGa6W4vcnKa9lIw/QN5my0VIw4i6IMqEfHwE=; b=YvCi2OwndN4oR3Ict32fVmwe/3U7xEpM4K5JplfdCytKXAb0Z56pC2CD99EI9rnSMc CIWhFvXN8ZKHYMPU/U9DdmRxm/HTCCzwL7bhoGWd9KTIJO742A9kClUuOy57pLP7qWlZ LSaN2AsCzHZwBCy/x1zKQuMWo6V+JAG741ThMbwCZ4NRiqYWG/mG4Up1apaEZ2jX9cuc u+/34fR8742yMWloAitZBZHKKXOxDBLRhHW56XIr/dZ325mGgdAvLuxsJDNHXluLvxlF C5VrhacMVIra83Qq82+9KH6Azbbfb/TyAf8ReRiW8sAlUS5udyN2nPcC2r1s1lHfWHau AoOA== X-Gm-Message-State: AOJu0YwD32+l4xwnxQgIYKhJ7dKH974oYaVDBWm9+pv+ucgjXjnqARxR Xf/TFb45boQlfbBIKzDdQfDJJtSOCAs= X-Google-Smtp-Source: AGHT+IEhJU17AeruCAJXEn1d687AL4ZI/KGwQwsBfSRRIewj6Ev9elcJ9G7t0UYNN1Ss8eEjYeRl1Q== X-Received: by 2002:a17:906:8a50:b0:99c:e38d:e484 with SMTP id gx16-20020a1709068a5000b0099ce38de484mr13619861ejc.6.1696854515375; Mon, 09 Oct 2023 05:28:35 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a81f.dip0.t-ipconnect.de. [79.227.168.31]) by smtp.gmail.com with ESMTPSA id rn18-20020a170906d93200b0098ec690e6d7sm6679826ejb.73.2023.10.09.05.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:28:34 -0700 (PDT) In-Reply-To: <7E27D8DA-B27F-4428-9C09-A1A13AACFC69@gmail.com> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Mon, 9 Oct 2023 14:03:42 +0200") 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:272146 Archived-At: Mattias Engdeg=C3=A5rd writes: > On macOS, once a selection has been made, every pop-up menu includes a 'S= ervices' sub-menu from then on. > It contains items such as 'Search with Google' and 'Add to Music as a Spo= ken Track'. > It's always completely out of place and very annoying. > > The buffer menu? It's there. Any menu activated by clicking on the mode l= ine? It's there. Selecting a value in variable customisation? It's there. > > The only place where it might be remotely appropriate is the context-menu= -mode menu, if enabled, but then only if we actually have an active selecti= on. I'm going to ignore this for the time being since it's much less import= ant than getting rid of it where it doesn't belong. > > The patch below removes it. The property is documented to be present in m= acOS 10.6 and above, which is fairly old (Snow Leopard). > > --- a/src/nsmenu.m > +++ b/src/nsmenu.m > @@ -768,6 +768,9 @@ - (Lisp_Object)runMenuAt: (NSPoint)p forFrame: (struc= t frame *)f > pressure: 0]; >=20=20 > 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 :-)