From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23854 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME variables Date: 05 Jul 1999 15:15:11 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <874sjjdyqo.fsf@pc-hrvoje.srce.hr> References: <87so74o1dp.fsf@pc-hrvoje.srce.hr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161511 4255 80.91.224.250 (21 Oct 2002 00:51:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:51:51 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA09600 for ; Mon, 5 Jul 1999 09:33:09 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB03607; Mon, 5 Jul 1999 08:27:17 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 05 Jul 1999 08:26:40 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id IAA09033 for ; Mon, 5 Jul 1999 08:26:10 -0500 (CDT) Original-Received: from pc-hrvoje.srce.hr (mail@pc-hrvoje.srce.hr [161.53.2.132]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA09462 for ; Mon, 5 Jul 1999 09:15:18 -0400 (EDT) Original-Received: from hniksic by pc-hrvoje.srce.hr with local (Exim 3.02 #1 (Debian)) id 1118aV-0005E9-00 for ; Mon, 05 Jul 1999 15:15:11 +0200 Original-To: ding@gnus.org X-Attribution: Hrvoje X-Face: &{dT~)Pu6V<0y?>3p$;@vh\`C7xB~A0T-J%Og)J,@-1%q6Q+, gs<-9M#&`I8cJp2b1{vPE|~+JE+gx;a7%BG{}nY^ehK1"q#rG O,Rn1A_Cy%t]V=Brv7h writes: > ("image/gif" mm-inline-image (mm-valid-and-fit-image-p 'gif handle)) > ("image/tiff" mm-inline-image (mm-valid-and-fit-image-p 'tiff handle)) > > [...] > > ("text/html" mm-inline-text (locate-library "w3")) > > Of course, I could just wrap all these in `lambda's, which would > make things more better, although more verbose. As well as making > the magic `handle' dynamic variable explicit. Please please do. At the cost of a few more words, the code will be much saner, and easier to replace with something else. > > Also, the variable could probably stand a better name. > > `mm-inline-media-tests' is, uhm, less than suggestive. > > Well, they are tests to see whether media can be displayed inline... > :-) How about `mm-types-displayable-inline'? > > > `mm-inlines-types' > > > This, on the other hand, says what types are to be displayed > > > inline, if they satisfy the conditions set by the variable above. > > > It's a list of MIME media types. > > > > Maybe this should also allow a function, or a list of them. > > The idea is that the first variable says whether something is > possible, and if so, how to do it, while the second says whether we > want it or not, so I don't see any need to re-specify a function > here. The first variable will probably not be altered by the user, > while the second probably will be. How about `mm-types-displayed-inline'? :-) > > > `mm-attachment-override-types' > > > Some MIME agents create parts that have a content-disposition of > > > `attachment'. This variable allows overriding that disposition and > > > displaying the part inline. > > > > I think this variable is misconceived, at least as far as > > text/plain goes. Many patches are rightfully sent out as > > "attachments", and I don't get the button for them (I have to > > press `K b' explicitly, which is quite slow.) > > But patches shouldn't be text/plain, since they aren't... Huh? > > Mind you, it's perfectly fine for the type to be *displayed* by > > default, but the button should still be there for attachments. Broken > > software that generates bogus content-dispositions should not be > > catered to. > > I agree with that. Perhaps I should just alter the default to > exclude text/plain, and then the user who want to cater to such > software can add it? Please do. I've asked for this before, but I guess the mail got lost.