]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow reindentation of images inserted by 'mm-inline-image'
authorEli Zaretskii <eliz@gnu.org>
Sat, 8 Apr 2023 13:00:29 +0000 (16:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Apr 2023 13:00:29 +0000 (16:00 +0300)
* lisp/gnus/mm-view.el (mm-inline-image): Use "x" as text on which
to put the image 'display' property, so that indentation commands
don't destroy the image inadvertently.  (Bug#62637)

lisp/gnus/mm-view.el

index 8dfb0deb418cf76302b8cef283c419ae0e26e096..2c4073535596fc89a70aace7a328e784530c3ab2 100644 (file)
@@ -98,7 +98,7 @@ This is only used if `mm-inline-large-images' is set to
                    (truncate (* mm-inline-large-images-proportion
                                 (- (nth 3 edges) (nth 1 edges)))))))
          image))
-     " ")
+     "x")
     (insert "\n")
     (mm-handle-set-undisplayer
      handle