From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: HTML mails suddenly exposing style & markup in Gnus. Date: Mon, 13 Sep 2010 21:05:38 -0400 Message-ID: <874odtf82l.fsf@kslab.red-bean.com> References: <87pqwhf9qz.fsf@kslab.red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284426369 20653 80.91.229.12 (14 Sep 2010 01:06:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2010 01:06:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 14 03:06:08 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OvJyH-00057g-BE for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2010 03:06:05 +0200 Original-Received: from localhost ([127.0.0.1]:41943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvJyG-00084b-L7 for ged-emacs-devel@m.gmane.org; Mon, 13 Sep 2010 21:06:04 -0400 Original-Received: from [140.186.70.92] (port=59883 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvJy8-00084M-Sd for emacs-devel@gnu.org; Mon, 13 Sep 2010 21:05:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvJy3-0007yj-On for emacs-devel@gnu.org; Mon, 13 Sep 2010 21:05:56 -0400 Original-Received: from osh-net-219-98.onshore.net ([66.146.219.98]:50146 helo=sanpietro.red-bean.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvJy3-0007yb-Jq for emacs-devel@gnu.org; Mon, 13 Sep 2010 21:05:51 -0400 Original-Received: from localhost ([127.0.0.1]:39034 helo=kslab.red-bean.com ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.72) (envelope-from ) id 1OvJy2-0005wR-Nd for emacs-devel@gnu.org; Mon, 13 Sep 2010 20:05:50 -0500 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 14 Sep 2010 02:42:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130114 Archived-At: Lars Magne Ingebrigtsen 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