From: Alex Murray <alex.murray@canonical.com>
To: notmuch@notmuchmail.org
Subject: notmuch-emacs inline image display broken in emacs-29
Date: Fri, 24 Feb 2023 14:56:54 +1030 [thread overview]
Message-ID: <87ilfrg035.fsf@graphene.mail-host-address-is-not-set> (raw)
Hi folks,
I have noticed that inline image display doesn't work anymore in
emacs-29 / git master and have tracked it down to a change to the way
mm-inline-image inserts an image into the buffer.
In
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d2186160a9e978960c0f96bc3b4fc65b5affc170
mm-inline-image was changed to use insert-image instead of
put-image. This inserts the image into the buffer using a single space
as the string contents with a display property set as the image contents
so that the single space is not shown itself but instead the image is
shown in its place.
I had thought the culprit then was the use of
notmuch-wash-elide-blank-lines within the default value of
notmuch-show-insert-text/plain-hook - assuming that since the line
containing the image is now just a single space, it then gets deleted
from the buffer and the image is never shown. However, even after
setting notmuch-show-insert-text/plain-hook to nil, images are still not
shown inline by notmuch.
However, if I locally redefine mm-inline-image to use say a period "."
as the string argument to insert-image then the image appears as
expected.
Any thoughts on what may be happening here and how best to resolve this?
Thanks,
Alex
next reply other threads:[~2023-02-24 4:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 4:26 Alex Murray [this message]
2023-02-25 13:21 ` notmuch-emacs inline image display broken in emacs-29 David Bremner
2023-02-25 13:48 ` David Bremner
2023-03-02 2:43 ` Alex Murray
2023-04-04 21:44 ` Al Haji-Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilfrg035.fsf@graphene.mail-host-address-is-not-set \
--to=alex.murray@canonical.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).