[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62250: 29.0.60; Allow context menu from text properties to not overr
From: |
Eli Zaretskii |
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 |
> From: Augusto Stoffel <arstoffel@gmail.com>
> 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.
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Augusto Stoffel, 2023/03/18
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Eli Zaretskii, 2023/03/18
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Juri Linkov, 2023/03/18
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Augusto Stoffel, 2023/03/18
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Juri Linkov, 2023/03/19
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Augusto Stoffel, 2023/03/19
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Juri Linkov, 2023/03/20
bug#62250: 29.0.60; Allow context menu from text properties to not override everything, Juri Linkov, 2023/03/18