From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yann Hodique Newsgroups: gmane.emacs.devel Subject: Re: BEGIN_SRC..END_SRC Date: Thu, 10 May 2012 09:59:53 +0200 Message-ID: <877gwkzcsm.fsf@gmail.com> References: <871umzrvfw.fsf@gmail.com> <87wr4rqg6g.fsf@gmail.com> <83d36j59gv.fsf@gnu.org> <87r4uz58e3.fsf@sec.modprobe.de> <83aa1n57p4.fsf@gnu.org> <5D17181ED92C4552AE8D4404DD035CA0@us.oracle.com> <87vck8sfyv.fsf@uwakimon.sk.tsukuba.ac.jp> <85obq05aua.fsf@iznogoud.viz> <87r4uvs4ae.fsf@uwakimon.sk.tsukuba.ac.jp> <87397b15u7.fsf@gnu.org> <87y5p2nhc3.fsf@catnip.gol.com> <87k40lsfuv.fsf@uwakimon.sk.tsukuba.ac.jp> <87k40ljtay.fsf@gmx.com> <87fwb8sdeh.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336636825 16199 80.91.229.3 (10 May 2012 08:00:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 08:00:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 10 10:00:24 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSOIR-00037h-0l for ged-emacs-devel@m.gmane.org; Thu, 10 May 2012 10:00:23 +0200 Original-Received: from localhost ([::1]:32799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSOIQ-0005KF-Ft for ged-emacs-devel@m.gmane.org; Thu, 10 May 2012 04:00:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSOII-0005Ju-1L for emacs-devel@gnu.org; Thu, 10 May 2012 04:00:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSOIB-0000ou-F2 for emacs-devel@gnu.org; Thu, 10 May 2012 04:00:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSOIB-0000mo-4G for emacs-devel@gnu.org; Thu, 10 May 2012 04:00:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SSOI8-00030v-Tm for emacs-devel@gnu.org; Thu, 10 May 2012 10:00:04 +0200 Original-Received: from aannecy-552-1-228-163.w83-197.abo.wanadoo.fr ([83.197.116.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 10:00:04 +0200 Original-Received: from yann.hodique by aannecy-552-1-228-163.w83-197.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 10:00:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: aannecy-552-1-228-163.w83-197.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEUEBgMUFBEnIR07MStT QjlvWkyEbl2ccWaVe2mpi3qxj3bDoIz+//wlCgCYAAACWUlEQVQ4EQXBQXIVVRQA0HNvGPNvJ45J 98epQhIdK6ALsNyA63EPLsEtWFQ5FlLFVDodHVr8fh0dQj/PSQAAgAQAAEgAGG4mEKoSAKyGgerV WgIIxKBoWkgAh2GwRmwjqkuAyPNpsNYh0UQCVMXFNA3DVCNVPQFy+PH6qxfD0CJCaxKgIr97+er5 2u56VyUBhouxb49evZjqSNsiAdrBEu2/r6/H+6L3BITMQdX556+UEAmo0nvheP3DpFdPwOAqCvrZ TbBFAnHgMiCclRjGBOLhAmBzpM4T6Mfr8w3othGJc+J63AuwX+qn94kr8sgJQNNa4jSaWNdf30At 9w1JXhzHYoirT7fwpDNI8ubm6TlWw4r+184aSX/08urKsa+vpyv++eWPFT0Jj4JlOv4UXX/d17eU 5BNTa2MeLfppev6i2CT9dqcW8njb3np32+iSmpM2whft2cPoDJL2D2D/eHF/64mgKvFhsZvJsw/d ZdautpboP9+GxKd3z+JwcNK6hLkF+L0P9e+73lRI6F0H4qkvd7ZeCYzgG/PdaBW9WgLLwjzfXX7Y vL+rbosExb6vYluet7ulqd4TMLZFU/Xbx1NTm0ro3HN1mudhX060Q7WEmE5jrfk03ebdAlsl+LuW bpm+NY19URWHLSHGsbdZm4fH86nQVQLn+5ytnR2tc9O2h23NKtR0ue7z3v+cTwt1eaghI4ZhaDn1 u97Wpc2Ndt9aS8TAxXn/8P5Nv1uJDFUZnMba43pa53UN9H2vLjufPX/IiJtjnZYJojqp9zEek2c3 399MhRAR/gfpVBU4QWr2iwAAAABJRU5ErkJggg== Cancel-Lock: sha1:asGzGkBgfQByNhjmLiTuJAwhdPk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150414 Archived-At: >>>>> "Stephen" == Stephen J Turnbull writes: > No, at least in this case Gmail and gmx are behaving conformantly; > there is no requirement that an MUA implement any kind of behavior for > the "application" content type, except providing a way to save the > media to a file. Which they did. > Gnus is not incorrect, but it *is* behaving non-portably by providing > a display method for the rare and non-portable (and probably > unregistered) MIME type "application/emacs-lisp". > 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. Basically GMail displays *any* content-type it doesn't know about (including the text/emacs-lisp or text/lisp variants) as an attachment named "noname", exactly as shown in Eric's screenshot. That's obviously a bad idea and not in the spirit of RFC 2046 (which says in 4.1.4 that those *should* be treated as text/plain), but I'm not sure anybody at Google really cares :) A fallback to application/octet-stream, which is probably what's happening here, is indeed correct... > The MIME *approach* probably *is* portable; you didn't test it. > The MIME *type* application/emacs-lisp is *non*-portable. That's > exactly what the "application" type is for. Agreed, and again we should definitely teach Emacs/Gnus to recognize some text/something for elisp code. As of today, when attaching or inlining emacs-lisp code in a Gnus message, the default value for mime type is that application/emacs-lisp, and that's a bug. Only that last part 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. 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) Yann. -- The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice. -- REBEC OF GINAZ