From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62258 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Selective HTML rendering using group parameters Date: Wed, 15 Mar 2006 17:56:15 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142413027 16584 80.91.229.2 (15 Mar 2006 08:57:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2006 08:57:07 +0000 (UTC) Original-X-From: ding-owner+m10785@lists.math.uh.edu Wed Mar 15 09:57:03 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJRoP-0002pP-6u for ding-account@gmane.org; Wed, 15 Mar 2006 09:56:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FJRoJ-0001ex-00; Wed, 15 Mar 2006 02:56:51 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FJRo6-0001es-00 for ding@lists.math.uh.edu; Wed, 15 Mar 2006 02:56:38 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FJRo3-00087m-33 for ding@lists.math.uh.edu; Wed, 15 Mar 2006 02:56:38 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FJRo0-0002Er-00 for ; Wed, 15 Mar 2006 09:56:32 +0100 Original-Received: from [205.234.185.198] (port=36176 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FJRo8-00012i-G9 for ding@gnus.org; Wed, 15 Mar 2006 02:56:41 -0600 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:3BvrbLYq9lxOnbb7CqvP2U9vRrg= X-Hashcash: 1:20:060315:ding@gnus.org::0TfpY89DVVLep8T1:000034HF X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62258 Archived-At: >>>>> In Nelson Ferreira wrote: > I came across a weird issue regarding group-parameters and > "group-local" variables. > I have the following in my gnus: > ,---- .gnus ---- >| (setq >| mm-automatic-display (remove "text/html" mm-automatic-display) >| mm-discouraged-alternatives '("text/html" "text/richtext" "text/enriched" "multipart/related") >| ) > `---- > in order to have HTML rendering off by default. > However there are some mailing lists I subscribed where the HTML is > well-formed enough (and there is no option for text-only :( ) where I > wanted to enable html rendering by default on those groups. > So I tried the following in the group parameters of one of the groups > with "good" HTML: > ,---- group parameters --- >| ((mm-automatic-display >| (append >| (list "text/html") >| mm-automatic-display)) >| (mm-discouraged-alternatives >| (remove "text/html" >| (remove "multipart/related" mm-discouraged-alternatives)))) > `---- > Sure enough if I press space from the *Group* buffer, the HTML in the > message is rendered, and it so happens in all other messages in that > "summary buffer session" . > However, if no message is immediately rendered (I press ENTER or only > ticked articles are in the summary buffer) then when the article is > shown, the HTML is not rendered. [...] Well, I think you may want to use `gnus-newsgroup-variables' to declare that those mm- variables are the group parameters. Does this Info document help? (info "(gnus)RSS") --8<---------------cut here---------------start------------->8--- Even if you have added `"text/html"' to the `mm-discouraged-alternatives' variable (*note Display Customization: (emacs-mime)Display Customization.) since you don't want to see HTML parts, it might be more useful especially in `nnrss' groups to display `text/html' parts. Here's an example of setting `mm-discouraged-alternatives' as a group parameter (*note Group Parameters::) in order to display `text/html' parts only in `nnrss' groups: ;; Set the default value of `mm-discouraged-alternatives'. (eval-after-load "gnus-sum" '(add-to-list 'gnus-newsgroup-variables '(mm-discouraged-alternatives . '("text/html" "image/.*")))) ;; Display `text/html' parts in `nnrss' groups. (add-to-list 'gnus-parameters '("\\`nnrss:" (mm-discouraged-alternatives nil))) --8<---------------cut here---------------end--------------->8---