emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* specifying the coding language resulting from a a :results code source block
@ 2012-06-27  1:08 Greg Tucker-Kellogg
  2012-06-27  2:22 ` Thomas S. Dye
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Tucker-Kellogg @ 2012-06-27  1:08 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

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


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: specifying the coding language resulting from a a :results code source block
  2012-06-27  1:08 Greg Tucker-Kellogg
@ 2012-06-27  2:22 ` Thomas S. Dye
  2012-06-27  4:20   ` Greg Tucker-Kellogg
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas S. Dye @ 2012-06-27  2:22 UTC (permalink / raw)
  To: Greg Tucker-Kellogg; +Cc: Org Mode List

Greg Tucker-Kellogg <gtuckerkellogg@gmail.com> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: specifying the coding language resulting from a a :results code source block
  2012-06-27  2:22 ` Thomas S. Dye
@ 2012-06-27  4:20   ` Greg Tucker-Kellogg
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Tucker-Kellogg @ 2012-06-27  4:20 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

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 <gtuckerkellogg@gmail.com> 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


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: specifying the coding language resulting from a a :results code source block
@ 2014-09-11  9:11 Dror Atariah
  2014-09-11 18:19 ` Ista Zahn
  0 siblings, 1 reply; 6+ messages in thread
From: Dror Atariah @ 2014-09-11  9:11 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

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 <address@hidden> 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

[-- Attachment #2: Type: text/html, Size: 2030 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: specifying the coding language resulting from a a :results code source block
  2014-09-11  9:11 specifying the coding language resulting from a a :results code source block Dror Atariah
@ 2014-09-11 18:19 ` Ista Zahn
  2014-09-12  7:27   ` Dror Atariah
  0 siblings, 1 reply; 6+ messages in thread
From: Ista Zahn @ 2014-09-11 18:19 UTC (permalink / raw)
  To: Dror Atariah; +Cc: emacs-orgmode@gnu.org

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 <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.  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.  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: specifying the coding language resulting from a a :results code source block
  2014-09-11 18:19 ` Ista Zahn
@ 2014-09-12  7:27   ` Dror Atariah
  0 siblings, 0 replies; 6+ messages in thread
From: Dror Atariah @ 2014-09-12  7:27 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

Indeed, this seems to do the trick!
Thanks!

On Thu, Sep 11, 2014 at 8:19 PM, Ista Zahn <istazahn@gmail.com> 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 <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.  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.  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
>

[-- Attachment #2: Type: text/html, Size: 2718 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-12  7:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-11  9:11 specifying the coding language resulting from a a :results code source block Dror Atariah
2014-09-11 18:19 ` Ista Zahn
2014-09-12  7:27   ` Dror Atariah
  -- strict thread matches above, loose matches on Subject: below --
2012-06-27  1:08 Greg Tucker-Kellogg
2012-06-27  2:22 ` Thomas S. Dye
2012-06-27  4:20   ` Greg Tucker-Kellogg

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).