unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Fogel <kfogel@red-bean.com>
To: emacs-devel@gnu.org
Subject: Re: HTML mails suddenly exposing style & markup in Gnus.
Date: Mon, 13 Sep 2010 21:05:38 -0400	[thread overview]
Message-ID: <874odtf82l.fsf@kslab.red-bean.com> (raw)
In-Reply-To: <m3eicxm9yr.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 14 Sep 2010 02:42:52 +0200")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>Gnus has gotten a new HTML renderer based on w3m "built in", but the
>priorities in what types it chooses to show shouldn't have changed.  I
>think.
>
>Do you have the w3m program installed on your system?

Yes:

  $ w3m -version
  w3m version w3m/0.5.2+cvs-1.1027,                                     \
      options lang=en,m17n,image,color,ansi-color,mouse,gpm,menu,cookie,\
      ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,gopher,ipv6,    \
      alarm,mark,migemo
  $ 

>But if you have, then Gnus should have rendered the HTML all
>pretty-like...  unless you have something other overriding that,
>somehow.
>
>What the value of mm-text-html-renderer and
>mm-inline-text-html-renderer?  The former should be `gnus-article-html',
>and the latter should be nil.  (If you have w3m installed.)

I don't set them in any init file, and their ambient values are:

  mm-text-html-renderer is a variable defined in `mm-decode.el'.
  Its value is html2text

  mm-inline-text-html-renderer is a variable defined in `mm-decode.el'.
  Its value is nil

This is true even within a Gnus Article buffer.  (Interestingly,
`gnus-article-html' is *not* listed as a "defined renderer type" in the
help documentation for `mm-text-html-renderer'.)

After I do (setq mm-text-html-renderer 'gnus-article-html) the problem
goes away and those articles render beautifully!  Thank you for the tip.

I guess we should fix the default in Emacs?  I don't know this code very
well, but I assume it's a bug that mm-text-html-renderer does not have
the value `gnus-article-html' when w3m is present?  Should it also have
that value when w3m is not present?

In the meantime, I guess I'll just hard set it in my .emacs, unless you
have a better recommendation.

-Karl



  reply	other threads:[~2010-09-14  1:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-14  0:29 HTML mails suddenly exposing style & markup in Gnus Karl Fogel
2010-09-14  0:42 ` Lars Magne Ingebrigtsen
2010-09-14  1:05   ` Karl Fogel [this message]
2010-09-14 10:51     ` Lars Magne Ingebrigtsen
2010-09-14 16:14       ` Karl Fogel
2010-09-14 17:18         ` Lars Magne Ingebrigtsen
2010-09-18 12:58           ` Kim F. Storm
2010-09-18 14:26             ` Miles Bader
2010-09-20  8:30               ` Giuseppe Scrivano

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://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874odtf82l.fsf@kslab.red-bean.com \
    --to=kfogel@red-bean.com \
    --cc=emacs-devel@gnu.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://git.savannah.gnu.org/cgit/emacs.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).