From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52973: Adding a few context-menu-mode commands Date: Wed, 12 Jan 2022 15:12:18 +0200 Message-ID: <83sftt5c99.fsf@gnu.org> References: <87o84tp69h.fsf@posteo.net> <868rvwsezi.fsf@mail.linkov.net> <87czl75lyz.fsf@posteo.net> <86czl6au29.fsf@mail.linkov.net> <874k6idjod.fsf@posteo.net> <86o84pthgp.fsf@mail.linkov.net> <87pmp4lmfz.fsf@posteo.net> <86pmp41vby.fsf@mail.linkov.net> <83czl47ghd.fsf@gnu.org> <86ee5kzjo2.fsf@mail.linkov.net> <83bl0o6oei.fsf@gnu.org> <87iluwkkyn.fsf@posteo.net> <83k0fc54bd.fsf@gnu.org> <86bl0m13o1.fsf@mail.linkov.net> <87czkxbhsb.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30094"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 52973@debbugs.gnu.org, juri@linkov.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 12 15:36:03 2022 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 1n7ejK-0007d9-Mr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 15:36:02 +0100 Original-Received: from localhost ([::1]:34216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7ejJ-0007ZR-7f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 09:36:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7dR0-00085h-KM for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 08:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7dR0-00032R-2v for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 08:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7dQz-0005uf-TA for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 08:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2022 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52973-submit@debbugs.gnu.org id=B52973.164199315622686 (code B ref 52973); Wed, 12 Jan 2022 13:13:01 +0000 Original-Received: (at 52973) by debbugs.gnu.org; 12 Jan 2022 13:12:36 +0000 Original-Received: from localhost ([127.0.0.1]:56455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7dQZ-0005tq-OH for submit@debbugs.gnu.org; Wed, 12 Jan 2022 08:12:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7dQX-0005ta-QX for 52973@debbugs.gnu.org; Wed, 12 Jan 2022 08:12:34 -0500 Original-Received: from [2001:470:142:3::e] (port=44552 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7dQQ-0002zr-5O; Wed, 12 Jan 2022 08:12:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XLpLyY2DHkDCt3X38wvJHrVCcUrQt6E2fCBR06qcmIE=; b=I4IdPPsi6k5T gusS/PkrVJLeZ14krLanWZMj68r6uPYmPqJJGUm12FPDP480kpuUbcHurfxCyRP2gXJ3iYCk2X4C7 Ka39LS8EjQKY76pEbtxlFEA6qyIIfegwGi3ApVEUnyjj5rtfe4USwLqwJbN8YrG/sN0RWuNPu0sgO BOo/nu9Ugf+44zvJRp5gOGdrAsRafRrjwoN46HayKcaEXP9Yki5G2LmuUAlWL33X4luSqRjPEefCe uNPSP4l8pI2Nk0FnSJBAp56q8TdeZKxhGCXIDLknqbQ+W50eoYI168NBuUMDMgJMtQxvLizblPQ4/ U7bsDlKyerhXh9iZfeFBFA==; Original-Received: from [87.69.77.57] (port=2873 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7dQM-0007Nb-0B; Wed, 12 Jan 2022 08:12:24 -0500 In-Reply-To: <87czkxbhsb.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 12 Jan 2022 07:16:20 +0100) 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:223996 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , Philip Kaludercic , > 52973@debbugs.gnu.org > Date: Wed, 12 Jan 2022 07:16:20 +0100 > > Juri Linkov writes: > > > None of the proposed functions is specific to a mode. > > When the global value of context-menu-functions > > contains one of the proposed functions, right-clicking anywhere > > will autoload every package where such context functions are defined. > > Ah, I see. I misunderstood how the context menu machinery works -- I > thought it contained mode-specific stuff, and in addition, things that > are relevant at the point. That is, if you're over a text like > "foo(1)", then there'd be a predicate to say that this might be a > manual reference, and then you'd get the Man context menu. How do we make sure stuff like "foo(1)" doesn't cause a lot of false positives when applied in modes whose idea of what that means is very different from Man-mode? More importantly, if this stuff is supposed to be global, how do we provide the users with a context-menu-mode which seamlessly does TRT without asking the user to invest too much effort into populating his/her menus? I'm not aware of any popular application out there which expects the users to customize context menus before they work as expected, i.e. show relevant information in relevant places without including a lot of irrelevant menu items.