Gnus development mailing list
 help / color / mirror / Atom feed
* How do I turn off rendering of HTML?
@ 2005-08-02 17:54 Russ Allbery
  2005-08-03 20:13 ` Russ Allbery
  0 siblings, 1 reply; 7+ messages in thread
From: Russ Allbery @ 2005-08-02 17:54 UTC (permalink / raw)


I just upgraded to No and the FAQ information for turning off automatic
display of text/html parts apparently no longer works.  I have:

(custom-set-variables
 '(mm-discouraged-alternatives '("text/html" "text/enriched"))
 '(mm-automatic-display (remove "text/html" mm-automatic-display)))

but w3-mode is still used to render text/html parts when that's the entire
message.  Since w3-mode is painfully slow, this makes sorting through spam
a royal pain.

I've checked with C-h v and mm-automatic-display does not include
text/html.

What's the new magic?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-08-02 17:54 How do I turn off rendering of HTML? Russ Allbery
@ 2005-08-03 20:13 ` Russ Allbery
  2005-08-29 16:43   ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Russ Allbery @ 2005-08-03 20:13 UTC (permalink / raw)


Russ Allbery <rra@stanford.edu> writes:

> I just upgraded to No and the FAQ information for turning off automatic
> display of text/html parts apparently no longer works.  I have:

> (custom-set-variables
>  '(mm-discouraged-alternatives '("text/html" "text/enriched"))
>  '(mm-automatic-display (remove "text/html" mm-automatic-display)))

Thanks to Ted Stern, I now have:

(custom-set-variables
 '(mm-inline-override-types '("text/html"))

which does exactly what I want, despite the confusing variable name which
makes it sound to me like it forces the HTML to be inline.

The FAQ should probably be updated, since its recommendation appears to no
longer work.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-08-03 20:13 ` Russ Allbery
@ 2005-08-29 16:43   ` Reiner Steib
  2005-09-06 16:55     ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Reiner Steib @ 2005-08-29 16:43 UTC (permalink / raw)
  Cc: Russ Allbery, Ted Stern

On Wed, Aug 03 2005, Russ Allbery wrote:

> Russ Allbery <rra@stanford.edu> writes:
>
>> I just upgraded to No and the FAQ information for turning off automatic
>> display of text/html parts apparently no longer works.  I have:
>
>> (custom-set-variables
>>  '(mm-discouraged-alternatives '("text/html" "text/enriched"))
>>  '(mm-automatic-display (remove "text/html" mm-automatic-display)))
>
> Thanks to Ted Stern, I now have:
>
> (custom-set-variables
>  '(mm-inline-override-types '("text/html"))
>
> which does exactly what I want, despite the confusing variable name which
> makes it sound to me like it forces the HTML to be inline.
>
> The FAQ should probably be updated, since its recommendation appears to no
> longer work.

Does anyone see which change has caused the different behavior
(compared to Gnus 5.11)?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-08-29 16:43   ` Reiner Steib
@ 2005-09-06 16:55     ` Reiner Steib
  2005-09-07  0:56       ` Katsumi Yamaoka
  0 siblings, 1 reply; 7+ messages in thread
From: Reiner Steib @ 2005-09-06 16:55 UTC (permalink / raw)
  Cc: TSUCHIYA Masatoshi

On Mon, Aug 29 2005, Reiner Steib wrote:

> On Wed, Aug 03 2005, Russ Allbery wrote:
>> Russ Allbery <rra@stanford.edu> writes:
>>
>>> I just upgraded to No and the FAQ information for turning off automatic
>>> display of text/html parts apparently no longer works.  I have:
>>
>>> (custom-set-variables
>>>  '(mm-discouraged-alternatives '("text/html" "text/enriched"))
>>>  '(mm-automatic-display (remove "text/html" mm-automatic-display)))
>>
>> Thanks to Ted Stern, I now have:
>>
>> (custom-set-variables
>>  '(mm-inline-override-types '("text/html"))
>>
>> which does exactly what I want, despite the confusing variable name which
>> makes it sound to me like it forces the HTML to be inline.
>>
>> The FAQ should probably be updated, since its recommendation appears to no
>> longer work.
>
> Does anyone see which change has caused the different behavior
> (compared to Gnus 5.11)?

I finally found the responsible change:

--8<---------------cut here---------------start------------->8---
--- gnus-art.el	6 Oct 2004 07:48:57 -0000	7.55
+++ gnus-art.el	7 Oct 2004 13:54:59 -0000	7.56
@@ -4709,7 +4709,7 @@
 	      (forward-line -1)
 	      (setq beg (point)))
 	    (gnus-article-insert-newline)
-	    (mm-insert-inline handle (mm-get-part handle))
+	    (mm-display-inline handle)
 	    (goto-char (point-max))))
 	  ;; Do highlighting.
 	  (save-excursion
--8<---------------cut here---------------end--------------->8---

----------------------------
revision 7.56
date: 2004/10/07 13:54:59;  author: tsuchiya;  state: Exp;  lines: +1 -1
(gnus-mime-display-single): Call `mm-display-inline' instead of
calling `mm-insert-inline', to decode text/* parts before displaying
them.
----------------------------

I'm not sure what the goal of this change was, but rendering text/html
with the settings...

  (setq mm-automatic-display (remove "text/html" mm-automatic-display))

... should not happen.

Masatoshi, could you please think about a different solution?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-09-06 16:55     ` Reiner Steib
@ 2005-09-07  0:56       ` Katsumi Yamaoka
  2005-09-07  3:46         ` Katsumi Yamaoka
  0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2005-09-07  0:56 UTC (permalink / raw)
  Cc: TSUCHIYA Masatoshi

>>>>> In <v98xya87aq.fsf@marauder.physik.uni-ulm.de> Reiner Steib wrote:

>> Does anyone see which change has caused the different behavior
>> (compared to Gnus 5.11)?

> I finally found the responsible change:

[...]

> ----------------------------
> revision 7.56
> date: 2004/10/07 13:54:59;  author: tsuchiya;  state: Exp;  lines: +1 -1
> (gnus-mime-display-single): Call `mm-display-inline' instead of
> calling `mm-insert-inline', to decode text/* parts before displaying
> them.
> ----------------------------

> I'm not sure what the goal of this change was, but rendering text/html
> with the settings...

>   (setq mm-automatic-display (remove "text/html" mm-automatic-display))

> ... should not happen.

> Masatoshi, could you please think about a different solution?

The article that TSUCHIYA-san posted then can be found in the
gmane.emacs.gnus.general newsgroup, the Message-ID is:

<87ekkavbdm.fsf@namazu.org>

(Though it can also be read in the gmane web site, I don't
recommend it since that article contains a special MIME part.)

I'm going to look into it later on.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-09-07  0:56       ` Katsumi Yamaoka
@ 2005-09-07  3:46         ` Katsumi Yamaoka
  2005-09-07 13:40           ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2005-09-07  3:46 UTC (permalink / raw)
  Cc: ding

>>>>> In <b4m8xy9n19p.fsf@jpl.org> Katsumi Yamaoka wrote:

> The article that TSUCHIYA-san posted then can be found in the
> gmane.emacs.gnus.general newsgroup, the Message-ID is:

> <87ekkavbdm.fsf@namazu.org>

> I'm going to look into it later on.

I realized what's the matter.  TSUCHIYA-san changed the
`gnus-mime-display-single' function so as to decode inlined
parts which contain non-ASCII text using `mm-display-inline'.
However, I didn't find out that that section of
`gnus-mime-display-single' should only display text, not render
html.

In the article <87ekkavbdm.fsf@namazu.org>, TSUCHIYA-san
presented two other plans to solve the problem.  I tested them
and confirmed both suited the purpose.  I think the last one is
better since it doesn't do excessive things except decoding
text.  If you agree with it, could you install it?

In addition, we may say it is a bug that Gnus doesn't decode
non-ASCII text, so it should also be applied to the v5-10
branch (I've already tested with it).



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I turn off rendering of HTML?
  2005-09-07  3:46         ` Katsumi Yamaoka
@ 2005-09-07 13:40           ` Reiner Steib
  0 siblings, 0 replies; 7+ messages in thread
From: Reiner Steib @ 2005-09-07 13:40 UTC (permalink / raw)
  Cc: ding

On Wed, Sep 07 2005, Katsumi Yamaoka wrote:

>>>>>> In <b4m8xy9n19p.fsf@jpl.org> Katsumi Yamaoka wrote:
>
>> The article that TSUCHIYA-san posted then can be found in the
>> gmane.emacs.gnus.general newsgroup, the Message-ID is:
[...]

Thanks for looking this up.

> TSUCHIYA-san changed the `gnus-mime-display-single' function so as
> to decode inlined parts which contain non-ASCII text using
> `mm-display-inline'.  However, I didn't find out that that section
> of `gnus-mime-display-single' should only display text, not render
> html.
>
> In the article <87ekkavbdm.fsf@namazu.org>, TSUCHIYA-san
> presented two other plans to solve the problem.  I tested them
> and confirmed both suited the purpose.  I think the last one is
> better since it doesn't do excessive things except decoding
> text.  If you agree with it, could you install it?

It works for me, WRT to part in <87ekkavbdm.fsf@namazu.org> and WRT
text/html.  I installed TSUCHIYA-san's patch.

> In addition, we may say it is a bug that Gnus doesn't decode
> non-ASCII text, so it should also be applied to the v5-10
> branch (I've already tested with it).

I agree.  Done.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-07 13:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-02 17:54 How do I turn off rendering of HTML? Russ Allbery
2005-08-03 20:13 ` Russ Allbery
2005-08-29 16:43   ` Reiner Steib
2005-09-06 16:55     ` Reiner Steib
2005-09-07  0:56       ` Katsumi Yamaoka
2005-09-07  3:46         ` Katsumi Yamaoka
2005-09-07 13:40           ` Reiner Steib

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).