unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: David Bremner <david@tethera.net>
Cc: 49380@debbugs.gnu.org, notmuch@notmuchmail.org
Subject: Re: bug#49380: 27.1; is mm-inline-message supported outside Gnus?
Date: Sun, 04 Jul 2021 17:03:34 +0200	[thread overview]
Message-ID: <878s2m15q1.fsf@gnus.org> (raw)
In-Reply-To: <87sg0u6wcb.fsf@tethera.net> (David Bremner's message of "Sun, 04 Jul 2021 10:29:40 -0300")

David Bremner <david@tethera.net> writes:

> notmuch-show-mode relies on various mm-* functions to display message
> parts. This is problematic for "message/rfc822" parts, since
> mm-inline-message ends up calling (gnus-article-prepare-display) which
> resets the buffer major-mode to gnus-article-mode since
> notmuch-show-mode is not a derived mode of gnus-article-mode. This
> breaks a few things from a notmuch internals / user point of view.  I
> can forcibly reset the major-mode, but that has it's own problems. I
> would welcome suggestions for workarounds, or clarification of the
> extent to which the functions in mm-view.el are expected to be usable
> outside gnus.

Yeah, it's confusing.  `mm-inline-message' is really an "internal" Gnus
function, while most of the other mm functions are more general.

Disentangling that mess is daunting, but for that function in
particular, I guess it wouldn't be that difficult to rewrite it to avoid
doing anything Gnus-ish unless we're in Gnus...  On the other hand, it's
a function to display a complete message, which leaves you with a buffer
that's pretty pointless unless you have a mail reader to interact with
it afterwards.

So perhaps it should just be renamed and moved to Gnus?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

       reply	other threads:[~2021-07-04 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sg0u6wcb.fsf@tethera.net>
2021-07-04 15:03 ` Lars Ingebrigtsen [this message]
2021-07-04 16:49   ` bug#49380: 27.1; is mm-inline-message supported outside Gnus? David Bremner
2021-07-05 13:24     ` Lars Ingebrigtsen
2021-07-06 11:37       ` David Bremner
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

  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=878s2m15q1.fsf@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 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).