From: Lars Ingebrigtsen <larsi@gnus.org>
To: David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org, 49380@debbugs.gnu.org
Subject: bug#49380: 27.1; is mm-inline-message supported outside Gnus?
Date: Mon, 05 Jul 2021 15:24:27 +0200 [thread overview]
Message-ID: <878s2kzyes.fsf__36959.2451535695$1625491527$gmane$org@gnus.org> (raw)
In-Reply-To: <87im1q6n3e.fsf@tethera.net> (David Bremner's message of "Sun, 04 Jul 2021 13:49:25 -0300")
David Bremner <david@tethera.net> writes:
> I should have been more precise. I'm calling it indirectly via
> mm-display-part, which is useful in the case where someone attaches a
> message/rfc822 part to their message. In principle notmuch can (and in
> the general case does) render the part directly, but in certain odd
> fall-back cases it is handy to give a visual representation of the part
> in the buffer without parsing etc.. ourselves. So the user does have a
> mail reader, namely notmuch. In fact I can almost make it work by
> forcing the buffer back into notmuch-show-mode after calling
> mm-display-part, but that has some side-effects I'd prefer to avoid.
Yes, that was what I was thinking about -- the rendered embedded message
can't be easily interacted with without the mail reader being able to
hook into the rendering. I mean, it's a kinda semi-recursive thing: You
want to be able to use (some of) the mail reader's commands to respond
to the embedded message. Which is why `mm-inline-message' calls the
Gnus functions here.
But perhaps the function should be rewritten to call a (say)
`mm-inline-message-setup-function', bound by the caller? Then both Gnus
and notmuch could use the function.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-07-05 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-04 13:29 bug#49380: 27.1; is mm-inline-message supported outside Gnus? David Bremner
2021-07-04 15:03 ` Lars Ingebrigtsen
2021-07-04 16:49 ` David Bremner
[not found] ` <87im1q6n3e.fsf@tethera.net>
2021-07-05 13:24 ` Lars Ingebrigtsen [this message]
[not found] ` <878s2kzyes.fsf@gnus.org>
2021-07-06 11:37 ` David Bremner
[not found] ` <87sg0r65bx.fsf@tethera.net>
2021-07-06 14:34 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='878s2kzyes.fsf__36959.2451535695$1625491527$gmane$org@gnus.org' \
--to=larsi@gnus.org \
--cc=49380@debbugs.gnu.org \
--cc=david@tethera.net \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.