[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: |
Augusto Stoffel |
Subject: |
bug#62250: 29.0.60; Allow context menu from text properties to not override everything |
Date: |
Sun, 19 Mar 2023 19:21:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sun, 19 Mar 2023 at 19:43, Juri Linkov wrote:
> The patch below will allow using the text property like
>
> 'context-menu-functions '(image-context-menu)
I didn't test the patch (I don't understand click events very well), but
does it find the context-menu-functions property of overlays as well?
And would those override the context-menu-functions text property or get
merged?
> (run-hook-wrapped 'context-menu-functions
> (lambda (fun)
> (setq menu (funcall fun menu click))
> - nil)))
> + nil))
> + (dolist (fun funs)
> + (setq menu (funcall fun menu click))))
>
> ;; Remove duplicate separators as well as ones at the beginning or
> ;; end of the menu.
I believe this makes the menu entries coming from a text property appear
after the regular hook ones, while I would expect the opposite (stuff
specific to the point is more "urgent").
- bug#62250: 29.0.60; Allow context menu from text properties to not override everything, (continued)
- 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