From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Tucker-Kellogg Subject: Re: specifying the coding language resulting from a a :results code source block Date: Wed, 27 Jun 2012 12:20:16 +0800 Message-ID: <5FCE8CEA-0D40-494C-9185-031330C93111@gmail.com> References: <14E52B13-8DC5-45EB-83ED-6B876C162D71@gmail.com> Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/signed; boundary="Apple-Mail=_A10AF8DD-C26D-41FD-9B64-2435C784C1A4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjjjs-0001Wr-O7 for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 00:20:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjjjq-0000Gw-PQ for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 00:20:24 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:45831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjjjq-0000Co-GK for emacs-orgmode@gnu.org; Wed, 27 Jun 2012 00:20:22 -0400 Received: by dakp5 with SMTP id p5so867190dak.0 for ; Tue, 26 Jun 2012 21:20:20 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode List --Apple-Mail=_A10AF8DD-C26D-41FD-9B64-2435C784C1A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Mahalo Tom, It looks like that's what I'll be doing for the ruby block. That said, = it would be great if the :results code argument would allow a language = specification. Greg On Jun 27, 2012, at 10:22 AM, Thomas S. Dye wrote: > Greg Tucker-Kellogg writes: >=20 >> I have a Ruby block that creates some dot code. I'd like to be able >> to have the #+RESULTS block enclosed >> in a src block that starts "#+BEGIN_SRC dot". Using :results value >> code generates the enclosing SRC block, >> but using the same language (Ruby) used to generate the code. Is >> there a way to specify the coding language >> of a generated #+RESULTS src block? =20 >>=20 >> Thanks, >>=20 >> Greg >>=20 > Aloha Greg, >=20 > This works for me with an emacs-lisp code block named harris-matrix = that > generates dot code. >=20 > #+header: :var input=3Dharris-matrix > #+header: :file temp.pdf=20 > #+header: :cmdline -Tpdf > #+header: :results output > #+BEGIN_SRC dot > $input > #+END_SRC >=20 > It's not quite what you were after, but it might help? >=20 > All the best, > Tom >=20 > --=20 > Thomas S. Dye > http://www.tsdye.com --Apple-Mail=_A10AF8DD-C26D-41FD-9B64-2435C784C1A4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJP6ooBAAoJEJeUx0HgY+4FsPgIAOfQGfmQoIWmY8JU/ftobQO3 dPrk3uTqH28OAtE3SXNClk+/usKU1o8WWVQxxP9Fq46iplx7TUqgfp/3rOrE1ybI zTB078P4IjoqJ+e+FX/cQfbW8phVn3FrH0tR/nJ4vTfC89n1H+rKb6rL/esmliI2 7RhBbm0q3QoY4vUnnVle2qo6KmdkVHfMRCh2jZ/1a4loYDraffkeWk7FlyddnZ97 4rHKPaUeq08WwVEYx4iJqjo8V+frofEshV0KYq6NAdI3gu8I7zQT4T1aLXYIWCet gXx025sTG0U2thbRr/pzFykrW4JC7c9moF7965yZPcjRNxrG/o4tXGAiQ9utM1A= =W7i1 -----END PGP SIGNATURE----- --Apple-Mail=_A10AF8DD-C26D-41FD-9B64-2435C784C1A4--