From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dror Atariah Subject: Re: specifying the coding language resulting from a a :results code source block Date: Fri, 12 Sep 2014 09:27:34 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113449fa05e4330502d93822 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLGb-000693-AH for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:27:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSLGa-0006Cq-1D for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:27:37 -0400 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:57056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLGZ-0006Ck-Lf for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:27:35 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so611327pdj.8 for ; Fri, 12 Sep 2014 00:27:34 -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: Ista Zahn Cc: "emacs-orgmode@gnu.org" --001a113449fa05e4330502d93822 Content-Type: text/plain; charset=UTF-8 Indeed, this seems to do the trick! Thanks! On Thu, Sep 11, 2014 at 8:19 PM, Ista Zahn wrote: > Can't you just do > > #+begin_src foo :wrap src bar > hello world > #+end_src > > ? > > Best, > Ista > > > On Thu, Sep 11, 2014 at 5:11 AM, Dror Atariah wrote: > > Is there some change in the status of this issue? Can one now specify the > > language of the result? > > > > Cheers, > > Dror > > > > ---------- > > 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: > >> > >>> 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 > --001a113449fa05e4330502d93822 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Indeed, this seems to do the trick!
Thanks!

On Thu, Sep 11, 2014 a= t 8:19 PM, Ista Zahn <istazahn@gmail.com> wrote:
Can't you just do

#+begin_src foo :wrap src bar
=C2=A0 =C2=A0hello world
#+end_src

?

Best,
Ista


On Thu, Sep 11, 2014 at 5:11 AM, Dror Atariah <drorata@gmail.com> wrote:
> Is there some change in the status of this issue? Can one now specify = the
> language of the result?
>
> Cheers,
> Dror
>
> ----------
> Mahalo Tom,
>
> It looks like that's what I'll be doing for the ruby block.=C2= =A0 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 <address@hidden> writes:
>>
>>> I have a Ruby block that creates some dot code.=C2=A0 I'd = like to be able
>>> to have the #+RESULTS block enclosed
>>> in a src block that starts "#+BEGIN_SRC dot".=C2=A0 = Using :results value
>>> code generates the enclosing SRC block,
>>> but using the same language (Ruby) used to generate the code.= =C2=A0 Is
>>> there a way to specify the coding language
>>> of a generated #+RESULTS=C2=A0 src block?
>>>
>>> Thanks,
>>>
>>> Greg
>>>
>> Aloha Greg,
>>
>> This works for me with an emacs-lisp code block named harris-matri= x that
>> generates dot code.
>>
>> #+header: :var input=3Dharris-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.tsdy= e.com


--001a113449fa05e4330502d93822--