From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: specifying the coding language resulting from a a :results code source block Date: Tue, 26 Jun 2012 16:22:07 -1000 Message-ID: References: <14E52B13-8DC5-45EB-83ED-6B876C162D71@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjhta-0003h7-Ho for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 22:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjhtY-0008MQ-KA for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 22:22:18 -0400 Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:58044) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SjhtY-0008LP-9N for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 22:22:16 -0400 In-Reply-To: <14E52B13-8DC5-45EB-83ED-6B876C162D71@gmail.com> (Greg Tucker-Kellogg's message of "Wed, 27 Jun 2012 09:08:50 +0800") 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: Greg Tucker-Kellogg Cc: Org Mode List Greg Tucker-Kellogg writes: > 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? > > Thanks, > > Greg > Aloha Greg, This works for me with an emacs-lisp code block named harris-matrix that generates dot code. #+header: :var input=harris-matrix #+header: :file temp.pdf #+header: :cmdline -Tpdf #+header: :results output #+BEGIN_SRC dot $input #+END_SRC It's not quite what you were after, but it might help? All the best, Tom -- Thomas S. Dye http://www.tsdye.com