emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [Announcement] Org-babel initial release
Date: Tue, 15 Sep 2009 22:53:44 +0200	[thread overview]
Message-ID: <873a6oaq07.fsf@gmx.de> (raw)
In-Reply-To: <m28wggvuup.fsf@gmail.com> (Eric Schulte's message of "Tue, 15 Sep 2009 14:03:16 -0600")

"Eric Schulte" <schulte.eric@gmail.com> writes:
> Sebastian Rose <sebastian_rose@gmx.de> writes:
>
>> "Eric Schulte" <schulte.eric@gmail.com> writes:
>
>>>
>>> Yes, currently the best way to get a feel for how to add languages would
>>> be to start with an existing language file (I'd suggest
>>> org-babel-python.el or org-babel-ruby.el, or for simpler less
>>> comprehensive language support look at org-babel-ditaa or
>>> org-babel-haskell) and make changes from there.  I agree that a brief
>>> tutorial for adding language support would be helpful.
>>
>>
>> A skeleton maybe?
>> And just a few comments describing the I/O of the basic functions
>> (and/or the global vars/containers that take the results).
>>
>>
>
> Good idea, I'm attaching an org-babel-template.el file which tries to be
> just that.  I'd be interested to hear how it works for you, or if you
> want to make any changes.  Once there is a good version maybe it would
> be a good thing to either add to the babel/lisp/langs directory, or at
> least to post on Worg.


Ahhh - now that I get simple output from PHP...
simple already worked for my, by taking the org-babel-python.el,
replacing org-babel-python-evaluate by org-babel-sh-evaluate and replace
all `python' and `sh' by `php'.

(OK - and wrap the `full-body' into `<?php ' and ' ?>').

But then I screwed it up by replacing the modified org-babel-sh-evaluate
by the  org-babel-python-evaluate function again - now I don't get the
results out... but I'm on the track.



OK - I'll try the template. I need to understand the whole thing anyway
:)


Best wishes

  Sebastian

  reply	other threads:[~2009-09-15 20:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-14 13:44 [Announcement] Org-babel initial release Eric Schulte
2009-09-15  8:20 ` Carsten Dominik
2009-09-15 13:31 ` Miguel Fernando Cabrera
2009-09-15 14:49   ` Eric Schulte
2009-09-15 15:10     ` Eric Schulte
2009-09-15 17:26 ` Sebastian Rose
2009-09-15 17:54   ` Eric Schulte
2009-09-15 19:15     ` Sebastian Rose
2009-09-15 20:03       ` Eric Schulte
2009-09-15 20:53         ` Sebastian Rose [this message]
2009-09-15 17:56   ` Rick Moynihan
2009-09-15 20:07     ` Eric Schulte
2009-09-15 22:02     ` Eric Schulte
2009-10-09 16:38       ` Marcelo de Moraes Serpa
2009-10-09 12:54 ` Org-babel for jython? Eric S Fraga
2009-10-09 15:34   ` Dan Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873a6oaq07.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).