From: Stefan Kangas <stefankangas@gmail.com>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
"Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: 66420@debbugs.gnu.org, Alan Third <alan@idiocy.org>
Subject: bug#66420: remove the omnipresent 'Services' sub-menu from all pop-up menus (macOS)
Date: Mon, 9 Oct 2023 12:44:40 +0000 [thread overview]
Message-ID: <CADwFkmnx9OHt-OJHcuo79E+Tg-NA+HShUPmp2WAFO2x1vQqX=g@mail.gmail.com> (raw)
In-Reply-To: <m2ttr0dlot.fsf@Pro.fritz.box>
Gerd Möllmann <gerd.moellmann@gmail.com> 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: (struct frame *)f
>> pressure: 0];
>>
>> context_menu_value = -1;
>> +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
>> + self.allowsContextMenuPlugIns = NO;
>> +#endif
>> [NSMenu popUpContextMenu: self withEvent: event forView: view];
>> retVal = context_menu_value;
>> context_menu_value = 0;
>
> I'm all for it :-)
+1
next prev parent reply other threads:[~2023-10-09 12:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-09 12:03 bug#66420: remove the omnipresent 'Services' sub-menu from all pop-up menus (macOS) Mattias Engdegård
2023-10-09 12:28 ` Gerd Möllmann
2023-10-09 12:44 ` Stefan Kangas [this message]
2023-10-09 15:16 ` Alan Third
2023-10-09 15:42 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmnx9OHt-OJHcuo79E+Tg-NA+HShUPmp2WAFO2x1vQqX=g@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=66420@debbugs.gnu.org \
--cc=alan@idiocy.org \
--cc=gerd.moellmann@gmail.com \
--cc=mattias.engdegard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).