]> git.eshelyaron.com Git - emacs.git/commit
New property 'context-menu-functions' (bug#62250)
authorJuri Linkov <juri@linkov.net>
Tue, 5 Mar 2024 16:50:51 +0000 (18:50 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 6 Mar 2024 11:36:27 +0000 (12:36 +0100)
commit2f0e0cdbf9ae8a026964d2e2d4e9d9dcb8df5fd6
tree1a34b90daac6333c2d6c501d8d36ebd8c89d2717
parent6f6d8c1909f8cec165c116b90965557996180678
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.

(cherry picked from commit f16a85e317d940aa2e0f0375ec5d1917cb04ade3)
etc/NEWS
lisp/iimage.el
lisp/image.el
lisp/mouse.el