unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Yann Hodique <yann.hodique@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: BEGIN_SRC..END_SRC
Date: Thu, 10 May 2012 21:35:26 +0900	[thread overview]
Message-ID: <878vh0rz75.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <877gwkzcsm.fsf@gmail.com>

Yann Hodique writes:
 >>>>> "Stephen" == Stephen J Turnbull <stephen@xemacs.org> writes:

 > > Use "Content-Type: text/emacs-lisp" and see what happens.
 > 
 > As I said in a previous mail, it doesn't change anything for GMail, and
 > that is also (unfortunately) conformant.

I disagree.  It may be unfortunate, but it is not conformant.  To
quote the RFCs:

4.1.4.  Unrecognized Subtypes

   Unrecognized subtypes of "text" should be treated as subtype "plain"
   as long as the MIME implementation knows how to handle the charset.
   Unrecognized subtypes which also specify an unrecognized charset
   should be treated as "application/octet-stream". -- RFC 2046

The word "should" in an RFC has a precise (and to many, surprisingly
strong) meaning:

3. SHOULD   This word, or the adjective "RECOMMENDED", mean that there
   may exist valid reasons in particular circumstances to ignore a
   particular item, but the full implications must be understood and
   carefully weighed before choosing a different course. -- RFC 2119

So it isn't optional behavior.  It's required.  It's simply the case
that the authors of RFC 2046 could imagine stuff like Microsoft HTML,
in which case you probably want to treat text/html as binary if you
don't have a decent HTML rendering engine to use.  However, "should"
in the section 4.1.4 is not blanket permission to treat all unknown
text/* as application/octet-stream, as Gmail apparently does.

 > Only [Gnus] we can fix. So in any case, I don't believe we can
 > ever afford not to emit the text/plain alternative for dumb (yet
 > potentially even conformant) MUAs.

Maybe.

But given that we know that Gmail deliberately goes out of its way to
suck in our community (eg, encouraging top-posting, which has its
place but it ain't here[1]), I don't really think we should consider
problems with Gmail an argument against using standard constructs.  If
Thunderbird or nmh or mutt has issues or whatever-the-GNOMEish-MUA-is
does, that's another matter.

 > Given that, since Emacs is probably the only "MUA" that will ever
 > implement a handler for any elisp-related MIME type, whether it's
 > text/emacs-lisp or application/emacs-lisp is probably not that much of
 > an issue (but again, we should use the former)

No, it's the *only* issue here.  If we use text/emacs-lisp, people who
use conformant MUAs have a choice of font-locked display or plain
text.  If we use application/emacs-lisp, people who use conformant
MUAs have a choice of font-locked display or saving it to a file.


Footnotes: 
[1]  Tevye: Rabbi, is there a blessing for the Czar?
     Rabbi: Of course, my son.  (sonorously) May God bless and keep
     the Czar ... (with emphasis) far away from us!




  reply	other threads:[~2012-05-10 12:35 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05  6:30 lexical-binding questions Thierry Volpiatto
2012-05-05  6:45 ` Thierry Volpiatto
2012-05-05  8:16   ` BEGIN_SRC..END_SRC (was: lexical-binding questions) Eli Zaretskii
2012-05-05  8:39     ` BEGIN_SRC..END_SRC Tom Rauchenwald
2012-05-05  8:54       ` BEGIN_SRC..END_SRC Eli Zaretskii
2012-05-05 13:38         ` BEGIN_SRC..END_SRC Bastien
2012-05-05 17:02           ` BEGIN_SRC..END_SRC Eli Zaretskii
2012-05-06 16:03             ` BEGIN_SRC..END_SRC Bastien
2012-05-06 16:46               ` BEGIN_SRC..END_SRC Eli Zaretskii
2012-05-06 17:03                 ` BEGIN_SRC..END_SRC Lars Magne Ingebrigtsen
2012-05-05 14:35         ` BEGIN_SRC..END_SRC Drew Adams
2012-05-05 15:10           ` BEGIN_SRC..END_SRC Antoine Levitt
2012-05-05 15:57             ` BEGIN_SRC..END_SRC Drew Adams
2012-05-05 17:00               ` BEGIN_SRC..END_SRC Peter Münster
2012-05-05 17:35                 ` BEGIN_SRC..END_SRC Drew Adams
2012-05-05 21:38                 ` BEGIN_SRC..END_SRC John Wiegley
2012-05-07  2:25                   ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-07  6:23                     ` BEGIN_SRC..END_SRC Miles Bader
2012-05-07  9:37                       ` BEGIN_SRC..END_SRC Thien-Thi Nguyen
2012-05-06 14:17               ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-05 15:48           ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-05 16:43             ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-05 17:12               ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-07  8:57                 ` BEGIN_SRC..END_SRC Julien Danjou
2012-05-07  9:46                   ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-05 17:36               ` BEGIN_SRC..END_SRC Drew Adams
2012-05-05 19:48           ` BEGIN_SRC..END_SRC Martyn Jago
2012-05-05 20:00             ` BEGIN_SRC..END_SRC Drew Adams
2012-05-07  5:44             ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-07 14:23               ` BEGIN_SRC..END_SRC Wolfgang Jenkner
2012-05-08  4:08                 ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-08  7:37                   ` BEGIN_SRC..END_SRC Bastien
2012-05-08 11:41                     ` BEGIN_SRC..END_SRC Juanma Barranquero
2012-05-08 12:17                       ` BEGIN_SRC..END_SRC Stefan Monnier
2012-05-08 14:32                         ` BEGIN_SRC..END_SRC Andreas Röhler
2012-05-09  1:23                           ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-09 17:31                             ` BEGIN_SRC..END_SRC Stefan Monnier
2012-05-09  0:47                         ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-09  3:50                           ` BEGIN_SRC..END_SRC Miles Bader
2012-05-09 11:35                             ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-09 12:23                               ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-09 13:43                                 ` BEGIN_SRC..END_SRC Lars Magne Ingebrigtsen
2012-05-09 14:57                                   ` BEGIN_SRC..END_SRC Eric Schulte
2012-05-09 17:08                                     ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-09 16:06                                       ` BEGIN_SRC..END_SRC Eric Schulte
2012-05-09 18:20                                         ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-09 16:30                                           ` BEGIN_SRC..END_SRC Eric Schulte
2012-05-09 18:44                                             ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-10  7:44                                         ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-10  7:28                                     ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-10  7:59                                       ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-10 12:35                                         ` Stephen J. Turnbull [this message]
2012-05-10 13:28                                           ` BEGIN_SRC..END_SRC Yann Hodique
2012-05-10 13:51                                           ` BEGIN_SRC..END_SRC Miles Bader
2012-05-15  3:30                                             ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-10 15:21                                           ` BEGIN_SRC..END_SRC Davis Herring
2012-05-15  3:56                                             ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-10  9:02                                       ` BEGIN_SRC..END_SRC René Kyllingstad
2012-05-10 13:05                                         ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-10 13:55                                           ` BEGIN_SRC..END_SRC René Kyllingstad
2012-05-15  3:52                                             ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-16 14:00                                   ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-09 13:52                               ` BEGIN_SRC..END_SRC Tassilo Horn
2012-05-09 17:44                                 ` BEGIN_SRC..END_SRC Tassilo Horn
2012-05-09 17:33                               ` BEGIN_SRC..END_SRC Stefan Monnier
2012-05-09  4:45                           ` BEGIN_SRC..END_SRC Eli Zaretskii
2012-05-09  6:28                           ` BEGIN_SRC..END_SRC Tassilo Horn
2012-05-09  9:30                             ` BEGIN_SRC..END_SRC Peter Münster
2012-06-08  0:20                               ` BEGIN_SRC..END_SRC Lars Magne Ingebrigtsen
2012-05-09 17:36                           ` BEGIN_SRC..END_SRC Stefan Monnier
2012-05-10  0:56                             ` BEGIN_SRC..END_SRC Miles Bader
2012-05-16 14:51                             ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-16 13:05                               ` BEGIN_SRC..END_SRC Eric Schulte
2012-05-16 15:17                                 ` plain-text markdown handler for Gnus (was: BEGIN_SRC..END_SRC) Ted Zlatanov
2012-05-16 14:21                                   ` plain-text markdown handler for Gnus Eric Schulte
2012-05-16 16:29                                     ` Ted Zlatanov
2012-05-06 14:15           ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-06 14:18             ` BEGIN_SRC..END_SRC Lennart Borgman
2012-05-06 14:33               ` BEGIN_SRC..END_SRC Alan Mackenzie
2012-05-06 14:43                 ` BEGIN_SRC..END_SRC Lennart Borgman
2012-05-06 18:57               ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-06 23:20                 ` BEGIN_SRC..END_SRC Lennart Borgman
2012-05-07  2:21                   ` BEGIN_SRC..END_SRC Ted Zlatanov
2012-05-07  9:56                     ` BEGIN_SRC..END_SRC Lennart Borgman
2012-05-07 11:04                 ` BEGIN_SRC..END_SRC Stephen J. Turnbull
2012-05-05 13:29   ` lexical-binding questions Stefan Monnier
2012-05-05 17:59     ` Thierry Volpiatto
2012-05-06  0:08     ` Miles Bader
2012-05-06  2:43       ` Stefan Monnier
2012-05-06  6:00     ` Thierry Volpiatto
2012-05-05 13:26 ` Stefan Monnier
2012-05-05 15:57   ` Thierry Volpiatto
2012-05-07 15:19     ` Stefan Monnier
2012-05-07 15:39       ` Drew Adams
2012-05-15  6:40       ` egnarts-ms
2012-05-15 13:55         ` Stefan Monnier
2012-05-14  3:57 ` egnarts-ms
2012-05-14  4:55   ` Stefan Monnier
2012-05-14 17:09     ` Johan Bockgård
2012-05-15 17:54       ` egnarts-ms
2012-05-15 20:14         ` Stefan Monnier
2012-05-15 22:59           ` Johan Bockgård
2012-05-16  2:05             ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2012-05-08 22:24 BEGIN_SRC..END_SRC Martyn Jago
2012-05-09 17:33 ` BEGIN_SRC..END_SRC Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vh0rz75.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=yann.hodique@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).