From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#62250: 29.0.60; Allow context menu from text properties to not override everything Date: Sun, 19 Mar 2023 19:40:09 +0200 Organization: LINKOV.NET Message-ID: <86h6ugu2oy.fsf@mail.linkov.net> References: <87ttyixzt2.fsf@gmail.com> <833562cvfb.fsf@gnu.org> <878rfu1f37.fsf@gmail.com> <86fsa1or67.fsf@mail.linkov.net> <878rftrjah.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13063"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 62250@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 19 18:54:45 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 1pdxEy-0003G5-Ao for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Mar 2023 18:54:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdxEM-00063k-OR; Sun, 19 Mar 2023 13:54:06 -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 1pdxEK-00062G-5F for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 13:54:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdxEJ-0007qE-Gl for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 13:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdxEJ-0002gK-Co for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 13:54:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Mar 2023 17:54:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62250 X-GNU-PR-Package: emacs Original-Received: via spool by 62250-submit@debbugs.gnu.org id=B62250.167924838710194 (code B ref 62250); Sun, 19 Mar 2023 17:54:03 +0000 Original-Received: (at 62250) by debbugs.gnu.org; 19 Mar 2023 17:53:07 +0000 Original-Received: from localhost ([127.0.0.1]:52686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdxDP-0002eG-8l for submit@debbugs.gnu.org; Sun, 19 Mar 2023 13:53:07 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:55033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdxDN-0002dc-SZ for 62250@debbugs.gnu.org; Sun, 19 Mar 2023 13:53:06 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id C2A51100003; Sun, 19 Mar 2023 17:52:56 +0000 (UTC) In-Reply-To: <878rftrjah.fsf@gmail.com> (Augusto Stoffel's message of "Sat, 18 Mar 2023 19:44:38 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258246 Archived-At: >> Actually, a member of context-menu-functions can override the >> previous menu it receives as an argument. And the last member >> always wins by overriding the whole menu. So it's just a question >> of ordering the members of context-menu-functions. > > Right. What I suggested would make the overriding independent of the > ordering of the members, which also (typically) influences the order of > the menu items. But maybe overriding the menu is not such a common > use-case anyway, and either mechanism is sufficient. What I still don't understand is why a function in the middle of context-menu-functions should be able to say "I'm the boss" and override everything that comes later. Maybe this could be implemented as well if needed, but the current implementation already allows adding such a function to the end by specifying quite a large value for the argument DEPTH of `add-hook'.