Hello Alex and David,

I also came across this issue: inline image are not displayed only when 
`notmuch-show-indent-content` is non-nil. However, even when 
`notmuch-show-indent-content` is `nil` they are displayed but cannot be hidden.

As Alex Murray pointed out, the reason is that the function `mm-insert-image` 
is being changed in Emacs 29 to use `insert-image` instead of `put-image`. 
`insert-image` inserts images using the `display` property of a whitespace 
character. The effect is that when `indent-rigidly` is called in 
`notmuch-show-insert-msg`, whitespace is removed and hence the image is 
removed. I've filed a bug#62637 on bug-gnu-emacs to discuss this.

An easy fix in `mm-insert-image` is use non-whitespace character (the second 
argument of `insert-image`) so that it is not deleted by `indent-rigidly`. This 
change actually makes indenting images work in the new version. 

The other issue is that hiding an overlay created around such an image does not 
seem to work (see bug#62637 for a discussion). A way to resolve this is to add 
some whitespace (like a newline) inside the overlay before the image, which 
seems to fix things.

-- Al
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to