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#62250: 29.0.60; Allow context menu from text properties to not override everything Date: Sat, 18 Mar 2023 13:24:39 +0200 Message-ID: <83o7oqb8ug.fsf@gnu.org> References: <87ttyixzt2.fsf@gmail.com> <833562cvfb.fsf@gnu.org> <878rfu1f37.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62250@debbugs.gnu.org, juri@linkov.net To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 18 12:25:24 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 1pdUgc-0000GQ-SU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Mar 2023 12:25:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdUgK-00088P-Gm; Sat, 18 Mar 2023 07:25:04 -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 1pdUgJ-00088B-6L for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 07:25:03 -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 1pdUgI-0002CU-Tb for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 07:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdUgI-0003m8-M7 for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2023 07:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Mar 2023 11:25:02 +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.167913868614486 (code B ref 62250); Sat, 18 Mar 2023 11:25:02 +0000 Original-Received: (at 62250) by debbugs.gnu.org; 18 Mar 2023 11:24:46 +0000 Original-Received: from localhost ([127.0.0.1]:46405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUg0-0003lZ-TA for submit@debbugs.gnu.org; Sat, 18 Mar 2023 07:24:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdUfz-0003lL-9m for 62250@debbugs.gnu.org; Sat, 18 Mar 2023 07:24:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdUft-00024X-2W; Sat, 18 Mar 2023 07:24:37 -0400 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=2j540Y42Gn5LYRXpSR7m+36t8ikifEbKF6R41Fztc48=; b=jubU6JSH1IKL wEv24uET1WFViG1vmzzDV8eWx1LoyAFyau+FRVgTulD1zoXlB1D961YpKETNZvvMuJvvciO7pdoO+ 0+Z4/RyPaPeQCzPlnS0oWteUKq2moQbrHOogkkKPTzjuWOZTfkz78ischyPdHIy9h1Wga3UPqvln6 xnEcHfdrD6fRzd0ZAm+A7L19v7T2V9SoqQP1Zeu/mKH3g6+yYRgcOqsENeLN0VZsROnaKph7V9Aj8 DPcDgyqy3FHOJnzqVsYtekUOnGswPOJbPXXw8CI8/lBNx+eqPP/TwyYenfZGyhgDAjoeGx0ZJOj8p nFHcwvaE8ws5iGS4lte1Ng==; Original-Received: from [87.69.77.57] (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 1pdUfs-000440-GP; Sat, 18 Mar 2023 07:24:36 -0400 In-Reply-To: <878rfu1f37.fsf@gmail.com> (message from Augusto Stoffel on Sat, 18 Mar 2023 12:19:56 +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:258162 Archived-At: > From: Augusto Stoffel > Cc: 62250@debbugs.gnu.org, juri@linkov.net > Date: Sat, 18 Mar 2023 12:19:56 +0100 > > On Sat, 18 Mar 2023 at 10:31, Eli Zaretskii wrote: > > >> Alternatively, it can return a completely new menu. In > >> this case, no further functions from `context-menu-functions' are > >> called. > > > What if a Lisp program _does_ want to override the menu specified by > > context-menu-functions? or what if it wants the menu specified by the > > text property to be the _last_ entry, not the first? > > It's explained in the bit I kept: you ignore the MENU argument and > return a totally new keymap / not `eq'. What MENU argument? I see only a CLICK argument. > Adding things at the beginning or end of a menu is an option that > easy-menu-add-item etc already offer, right? I admit I don't see how easy-menu-add-item is related to this. > Note that currently a member of context-menu-functions cannot override > the menu, and a context-menu-function cannot _not_ override it. My > suggestions allows all possibilities. That part I did understand, but it looked to me that your proposal stops short of covering all the possible situations.