]> git.eshelyaron.com Git - emacs.git/commit
Don't alter the buffer contents in image-crop by default
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 14 Sep 2022 13:59:55 +0000 (15:59 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 14 Sep 2022 14:04:52 +0000 (16:04 +0200)
commit997284d2a506dbaf80005dba5e8696d28dc9a0c3
tree6134d3fd0feee04bd028c641f2fcead1d8b0ac3b
parentcba866599c23a64018f820e3c34c4a6817d7313e
Don't alter the buffer contents in image-crop by default

* lisp/image/image-crop.el (image-crop-buffer-text-function):
Allow modes to alter the textual representation.
(image-crop): Delete the complete image data without assuming it's
all on one line (which isn't the case in image-mode, for instance).
(image-crop--crop-image-update, image-crop--insert-image-data):
Use image-crop-buffer-text-function.
(image-crop--default-buffer-text): New default action -- don't
alter the buffer contents (bug#57793).
lisp/image/image-crop.el