From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75739 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: quoting Emacs Lisp Date: Thu, 20 Jan 2011 22:31:55 +0100 Message-ID: <87k4hzb6t0.fsf@keller.adm.naquadah.org> References: <87lj2fxxwn.fsf@keller.adm.naquadah.org> <871v47mgzd.fsf_-_@lifelogs.com> <87d3nrcmks.fsf@keller.adm.naquadah.org> <87pqrrl1g7.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1295559141 26416 80.91.229.12 (20 Jan 2011 21:32:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Jan 2011 21:32:21 +0000 (UTC) Cc: ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M24090@lists.math.uh.edu Thu Jan 20 22:32:16 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pg275-0001Ut-E4 for ding-account@gmane.org; Thu, 20 Jan 2011 22:32:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Pg26x-0005mW-9D; Thu, 20 Jan 2011 15:32:07 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Pg26v-0005mQ-Q1 for ding@lists.math.uh.edu; Thu, 20 Jan 2011 15:32:05 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pg26u-0002nt-Mx for ding@lists.math.uh.edu; Thu, 20 Jan 2011 15:32:05 -0600 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pg26t-0001Vb-Rh for ding@gnus.org; Thu, 20 Jan 2011 22:32:03 +0100 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 6617811C001; Thu, 20 Jan 2011 22:31:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 69D6B5C14C; Thu, 20 Jan 2011 22:31:56 +0100 (CET) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1Pg26l-0004rv-Rz; Thu, 20 Jan 2011 22:31:55 +0100 Mail-Followup-To: Ted Zlatanov , ding@gnus.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75739 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jan 20 2011, Ted Zlatanov wrote: > That's cool. We should publicize it more, it's extremely useful, Isn't it! :) > especially if it takes off and other MUAs support it, and such bells and > whistles are always popular with the Gnus users. Can you explain more, > with examples for other languages (and how to add more if they are > missing)? Well, the block is extracted by Gnus and displayed inline as an org-mode buffer (see commit 2d2f709ab067c5688f325fc64c618988ed6fd178 for implementation detail, it's really simple). The font lock is then done by org-mode itself with the help of Babel[1]. Note that attaching file inline (or making them rendered inline with `K=C2=A0i') is now also supported by Gnus if the file has a correct content-type. I've added for example shell script colorization with commit 6242139e39fe923bf469377ed1d64487c900d0eb. You just have to copy/paste this for other language you usually find in attached file. This should be fontified: --=-=-= Content-Type: text/x-sh Content-Disposition: inline; filename=arf.sh # Some comment echo foo --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [1] http://orgmode.org/worg/org-contrib/babel/ =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk04qcsACgkQpGK1HsL+5c2lTgCeJwMVWWhVhDfBlGCK3oPTNpJP uGgAoNTzpBdmSfy4Vbn0bUbBfFIl11lw =HkYs -----END PGP SIGNATURE----- --==-=-=--