]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of sliced images
authorEli Zaretskii <eliz@gnu.org>
Sat, 8 Apr 2023 09:43:34 +0000 (12:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Apr 2023 09:43:34 +0000 (12:43 +0300)
commit6a2863ca0167a1b4a431dfae3640c97a846d4826
tree531e857f36640640381ab17b56994e6fac86895e
parent5be79fd05a51a42d591833019775cb743aa5055f
Fix handling of sliced images

* lisp/image.el (image-slice-map): New keymap, without some
bindings that make no sense with sliced images.
(insert-image, insert-sliced-image): Use it.
(insert-sliced-image): Make the 'keymap' property rear-nonsticky,
to prevent calling image commands when point is to the right of
the slice.  (Bug#62679)

* lisp/image/image-crop.el (image-cut, image-crop): Doc fixes.
(image-crop): Don't try using stock MS-Widows convert.exe
program.  Use 'image--get-image' to support sliced images.
lisp/image.el
lisp/image/image-crop.el