Gnus development mailing list
 help / color / mirror / Atom feed
From: Nelson Ferreira <nelson.ferreira@ieee.org>
Subject: Selective HTML rendering using group parameters
Date: Wed, 15 Mar 2006 00:59:45 -0500	[thread overview]
Message-ID: <m3bqw85ju6.fsf@tuxie.homelinux.net> (raw)


Hi all,

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.

I looked at the value of both mm-automatic-display and
mm-discouraged-alternatives and it looks like that if upon entering
the group the article buffer is created then their values are the one
coming from the group parameters, otherwise the defaults (i.e. from
.gnus) are used.

Is there any way to make sure that the group parameter set values for
variables are always transported to the article buffer regardless of
the moment in time it is created ?

Thanks,

        Nelson

PS: To save you from looking up the User Agent, I am using SXEmacs
22.1.4 and No Gnus v0.4


-- 
Nelson Ferreira




             reply	other threads:[~2006-03-15  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15  5:59 Nelson Ferreira [this message]
2006-03-15  8:05 ` Nelson Ferreira
2006-03-15  8:56 ` Katsumi Yamaoka
2006-03-15 20:20   ` Nelson Ferreira

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=m3bqw85ju6.fsf@tuxie.homelinux.net \
    --to=nelson.ferreira@ieee.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.
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 NNTP newsgroup(s).