summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2024-03-05 18:50:51 +0200
committerJuri Linkov <juri@linkov.net>2024-03-05 18:50:51 +0200
commitf16a85e317d940aa2e0f0375ec5d1917cb04ade3 (patch)
tree3ffa61659c9b3307bfd86f5a023d983ab8eae378 /etc
parent9cf0f254bae79f6b6cda01e7a4b77fabec9f3f8f (diff)
downloademacs-f16a85e317d940aa2e0f0375ec5d1917cb04ade3.tar.gz
New property 'context-menu-functions' (bug#62250)
* lisp/iimage.el (iimage-mode-buffer): Set context-menu-functions text property to '(image-context-menu)'. * lisp/image.el (image-context-menu): New function. (put-image): Set context-menu-functions overlay property to '(image-context-menu)'. (insert-image, insert-sliced-image): Set context-menu-functions text property to '(image-context-menu)'. * lisp/mouse.el (context-menu-map): Use mouse-posn-property 'context-menu-functions' and call its funs at the end.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 06856602ea8..a4b42263c36 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2087,6 +2087,10 @@ treesitter grammar.
** New buffer-local variable 'tabulated-list-groups'.
It controls display and separate sorting of groups of entries.
+---
+** New property 'context-menu-functions'.
+Like the variable with the same name it adds a list of context menus.
+
* Changes in Emacs 30.1 on Non-Free Operating Systems