Gnus development mailing list
 help / color / mirror / Atom feed
From: Hrvoje Niksic <hniksic@srce.hr>
Subject: Re: MIME variables
Date: 04 Jul 1999 15:55:46 +0000	[thread overview]
Message-ID: <87so74o1dp.fsf@pc-hrvoje.srce.hr> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "04 Jul 1999 07:21:16 +0200"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> I think the following should reflect the state in 0.91:
> 
> Customization
> =============
> 
> `mm-inline-media-tests'
>      This is an alist where the key is a MIME type, the second element
>      is a function to display the part "inline" (i.e., inside Emacs),
>      and the third element is a form to be `eval'ed to say whether the
>      part can be displayed inline.

I think the third element should be a function that will be called
with one argument, the MIME part.  Besides being more Lispy, it allows 
the programmer to inspect the part when making the decision.

Also, the variable could probably stand a better name.
`mm-inline-media-tests' is, uhm, less than suggestive.

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

> `mm-automatic-display'
>      This is a list of types that are to be displayed "automatically",
>      but only if the above variable allows it.  That is, only inlinable
>      parts are usually displayed automatically, but in the end, this is
>      up to the display agent that's using the MIME library.

Another one that could be named better.  I, for one, am not sure what
"automatical" display means, and how it differs from "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.)

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.

On the other hand, text/x-vcard probably fits this variable perfectly, 
so I guess it's only its default value I have a problem with.

> `mm-all-images-fit'
>      If non-`nil', all images will be deemed to fit into the buffer,
>      even when they don't.

This requires further explanation and possibly a rename.  How about:

    When displaying inline images that are larger than the window
    inline, XEmacs does not enable scrolling, which means that you
    cannot see the whole image.  To prevent this, Gnus tries to
    determine the image size before displaying it inline, and if it
    doesn't fit the window, Gnus will display it externally (e.g. with 
    ImageMagick or xv).  Setting this variable to nil disables this
    check and makes Gnus display all inline images as inline,
    regardless of their size.

Consequently, a good name could be something like
`mm-display-large-images-externally' or
`mm-display-externally-images-larger-than-window', or...



  reply	other threads:[~1999-07-04 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-04  5:21 Lars Magne Ingebrigtsen
1999-07-04 15:55 ` Hrvoje Niksic [this message]
1999-07-04 20:09   ` Kai.Grossjohann
1999-07-05  4:17     ` Lars Magne Ingebrigtsen
1999-07-05  4:16   ` Lars Magne Ingebrigtsen
1999-07-05 13:15     ` Hrvoje Niksic
1999-07-05 13:52       ` Lars Magne Ingebrigtsen
1999-07-05 13:54         ` Hrvoje Niksic
1999-07-06  4:42           ` Lars Magne Ingebrigtsen
1999-07-06 15:17             ` Hrvoje Niksic
1999-07-06 16:01               ` Lars Magne Ingebrigtsen
1999-07-06 21:41                 ` David Kågedal
1999-07-07 11:53                   ` Robert Bihlmeyer
1999-07-08  7:11                     ` Lars Magne Ingebrigtsen
1999-07-04 20:06 ` Kai.Grossjohann
1999-07-05  4:20   ` Lars Magne Ingebrigtsen

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=87so74o1dp.fsf@pc-hrvoje.srce.hr \
    --to=hniksic@srce.hr \
    /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).