emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babel
@ 2009-09-15  8:58 Jörg Hagmann
  2009-09-15  9:15 ` org-babel David Maus
  2009-09-15  9:30 ` org-babel Carsten Dominik
  0 siblings, 2 replies; 11+ messages in thread
From: Jörg Hagmann @ 2009-09-15  8:58 UTC (permalink / raw)
  To: Emacs-orgmode

org-babel doesn't work here. First question: do I have the current 
org-version? I updated today and have 6.30trans (On 2 computers, Mac 
Leopard and ubuntu).

If that's ok, next:
I have

(require 'org-babel-init)
(require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and 
inf-ruby
(org-babel-load-library-of-babel)

in .emacs

Starting emacs gives the Message:

An error has occurred while loading `/Users/bonasia/.emacs':
File error: Cannot open load file, org-babel-init

I either don't have the current version or misunderstood something.

Thanks, Jörg

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

* Re: org-babel
  2009-09-15  8:58 org-babel Jörg Hagmann
@ 2009-09-15  9:15 ` David Maus
  2009-09-15  9:30 ` org-babel Carsten Dominik
  1 sibling, 0 replies; 11+ messages in thread
From: David Maus @ 2009-09-15  9:15 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode

At Tue, 15 Sep 2009 10:58:01 +0200,
Jörg Hagmann wrote:
> 
> org-babel doesn't work here. First question: do I have the current 
> org-version? I updated today and have 6.30trans (On 2 computers, Mac 
> Leopard and ubuntu).
> 
> If that's ok, next:
> I have
> 
> (require 'org-babel-init)
> (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and 
> inf-ruby
> (org-babel-load-library-of-babel)
> 
> in .emacs

org-babel resides in contrib/babel, so you have to copy the content of
contrib/babel/lisp to some place where emacs can find it.

Regards,
  -- David

-- 
OpenPGP... 0x316F4BE4670716FD
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com
ICQ....... 241051416

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

* Re: org-babel
  2009-09-15  8:58 org-babel Jörg Hagmann
  2009-09-15  9:15 ` org-babel David Maus
@ 2009-09-15  9:30 ` Carsten Dominik
  2009-09-15 13:03   ` org-babel Jörg Hagmann
  1 sibling, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2009-09-15  9:30 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode

Hi Jörg,

you need to have the contrib/lisp directory of Org on your load path.

- Carsten

On Sep 15, 2009, at 9:58 AM, Jörg Hagmann wrote:

> org-babel doesn't work here. First question: do I have the current  
> org-version? I updated today and have 6.30trans (On 2 computers, Mac  
> Leopard and ubuntu).
>
> If that's ok, next:
> I have
>
> (require 'org-babel-init)
> (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and  
> inf-ruby
> (org-babel-load-library-of-babel)
>
> in .emacs
>
> Starting emacs gives the Message:
>
> An error has occurred while loading `/Users/bonasia/.emacs':
> File error: Cannot open load file, org-babel-init
>
> I either don't have the current version or misunderstood something.
>
> Thanks, Jörg
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-babel
  2009-09-15  9:30 ` org-babel Carsten Dominik
@ 2009-09-15 13:03   ` Jörg Hagmann
  2009-09-15 14:19     ` org-babel Jörg Hagmann
  0 siblings, 1 reply; 11+ messages in thread
From: Jörg Hagmann @ 2009-09-15 13:03 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs-orgmode

Thank you, David and Carsten.

Now it works with shell scripts.

With Ruby, I get:
Source block produced no output (Using the first example from the manual)

Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu.

?

Thanks, Jörg

Carsten Dominik wrote:
> Hi Jörg,
>
> you need to have the contrib/lisp directory of Org on your load path.
>
> - Carsten
>
> On Sep 15, 2009, at 9:58 AM, Jörg Hagmann wrote:
>
>> org-babel doesn't work here. First question: do I have the current 
>> org-version? I updated today and have 6.30trans (On 2 computers, Mac 
>> Leopard and ubuntu).
>>
>> If that's ok, next:
>> I have
>>
>> (require 'org-babel-init)
>> (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and 
>> inf-ruby
>> (org-babel-load-library-of-babel)
>>
>> in .emacs
>>
>> Starting emacs gives the Message:
>>
>> An error has occurred while loading `/Users/bonasia/.emacs':
>> File error: Cannot open load file, org-babel-init
>>
>> I either don't have the current version or misunderstood something.
>>
>> Thanks, Jörg
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

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

* Re: org-babel
  2009-09-15 13:03   ` org-babel Jörg Hagmann
@ 2009-09-15 14:19     ` Jörg Hagmann
  2009-09-15 14:43       ` org-babel Eric Schulte
  0 siblings, 1 reply; 11+ messages in thread
From: Jörg Hagmann @ 2009-09-15 14:19 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs-orgmode

Sorry for the question below. I needed "require 'date'"; maybe a first 
example not needing to load anything would avoid this kind of noise.

In any case, thanks a lot for this tool!

Cheers, Jörg

Jörg Hagmann wrote:
> Thank you, David and Carsten.
>
> Now it works with shell scripts.
>
> With Ruby, I get:
> Source block produced no output (Using the first example from the manual)
>
> Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu.
>
> ?
>
> Thanks, Jörg
>
> Carsten Dominik wrote:
>> Hi Jörg,
>>
>> you need to have the contrib/lisp directory of Org on your load path.
>>
>> - Carsten
>>
>> On Sep 15, 2009, at 9:58 AM, Jörg Hagmann wrote:
>>
>>> org-babel doesn't work here. First question: do I have the current 
>>> org-version? I updated today and have 6.30trans (On 2 computers, Mac 
>>> Leopard and ubuntu).
>>>
>>> If that's ok, next:
>>> I have
>>>
>>> (require 'org-babel-init)
>>> (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and 
>>> inf-ruby
>>> (org-babel-load-library-of-babel)
>>>
>>> in .emacs
>>>
>>> Starting emacs gives the Message:
>>>
>>> An error has occurred while loading `/Users/bonasia/.emacs':
>>> File error: Cannot open load file, org-babel-init
>>>
>>> I either don't have the current version or misunderstood something.
>>>
>>> Thanks, Jörg
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

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

* Re: org-babel
  2009-09-15 14:19     ` org-babel Jörg Hagmann
@ 2009-09-15 14:43       ` Eric Schulte
  2009-09-15 15:09         ` org-babel Stephan Schmitt
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Schulte @ 2009-09-15 14:43 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: Emacs-orgmode, Carsten Dominik

Hi Jörg,

Thanks for the catch, I've added "require 'date'" to the initial ruby
example. -- Eric

Jörg Hagmann <joerg.hagmann@unibas.ch> writes:

> Sorry for the question below. I needed "require 'date'"; maybe a first
> example not needing to load anything would avoid this kind of noise.
>
> In any case, thanks a lot for this tool!
>
> Cheers, Jörg
>
> Jörg Hagmann wrote:
>> Thank you, David and Carsten.
>>
>> Now it works with shell scripts.
>>
>> With Ruby, I get:
>> Source block produced no output (Using the first example from the manual)
>>
>> Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu.
>>
>> ?
>>
>> Thanks, Jörg
>>
>> Carsten Dominik wrote:
>>> Hi Jörg,
>>>
>>> you need to have the contrib/lisp directory of Org on your load path.
>>>
>>> - Carsten
>>>
>>> On Sep 15, 2009, at 9:58 AM, Jörg Hagmann wrote:
>>>
>>>> org-babel doesn't work here. First question: do I have the current
>>>> org-version? I updated today and have 6.30trans (On 2 computers,
>>>> Mac Leopard and ubuntu).
>>>>
>>>> If that's ok, next:
>>>> I have
>>>>
>>>> (require 'org-babel-init)
>>>> (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode,
>>>> and inf-ruby
>>>> (org-babel-load-library-of-babel)
>>>>
>>>> in .emacs
>>>>
>>>> Starting emacs gives the Message:
>>>>
>>>> An error has occurred while loading `/Users/bonasia/.emacs':
>>>> File error: Cannot open load file, org-babel-init
>>>>
>>>> I either don't have the current version or misunderstood something.
>>>>
>>>> Thanks, Jörg
>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Remember: use `Reply All' to send replies to the list.
>>>> Emacs-orgmode@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>

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

* Re: org-babel
  2009-09-15 14:43       ` org-babel Eric Schulte
@ 2009-09-15 15:09         ` Stephan Schmitt
  2009-09-15 15:54           ` org-babel Eric Schulte
  0 siblings, 1 reply; 11+ messages in thread
From: Stephan Schmitt @ 2009-09-15 15:09 UTC (permalink / raw)
  To: Eric Schulte; +Cc: Emacs-orgmode, Carsten Dominik

Hi Eric,

apropos require:  if the result of an emacs-lisp source block is a list, a 
function from org-table.el is needed (orgtbl-to-orgtbl, or so) which is not 
loaded by default.  In other words, somewhere a (require org-table) is missing.

Nice tool, btw,
	Stephan

Eric Schulte wrote:
> Hi Jörg,
> 
> Thanks for the catch, I've added "require 'date'" to the initial ruby
> example. -- Eric
> 
> Jörg Hagmann <joerg.hagmann@unibas.ch> writes:
> 
>> Sorry for the question below. I needed "require 'date'"; maybe a first
>> example not needing to load anything would avoid this kind of noise.
>>
>> In any case, thanks a lot for this tool!
>>
>> Cheers, Jörg
>>
>> Jörg Hagmann wrote:
>>> Thank you, David and Carsten.
>>>
>>> Now it works with shell scripts.
>>>
>>> With Ruby, I get:
>>> Source block produced no output (Using the first example from the manual)
>>>
>>> Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu.
>>>
>>> ?
>>>
>>> Thanks, Jörg
>>>
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-babel
  2009-09-15 15:09         ` org-babel Stephan Schmitt
@ 2009-09-15 15:54           ` Eric Schulte
  0 siblings, 0 replies; 11+ messages in thread
From: Eric Schulte @ 2009-09-15 15:54 UTC (permalink / raw)
  To: Stephan Schmitt; +Cc: Emacs-orgmode, Carsten Dominik

Hi Stephan,

You are correct, surprisingly org-table isn't explicitly required
anywhere in org-babel.  It must have already been loaded in every
previous usage.  I've just pushed a fix to this issue.

Thanks -- Eric

Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:

> Hi Eric,
>
> apropos require:  if the result of an emacs-lisp source block is a
> list, a function from org-table.el is needed (orgtbl-to-orgtbl, or so)
> which is not loaded by default.  In other words, somewhere a (require
> org-table) is missing.
>
> Nice tool, btw,
> 	Stephan
>
> Eric Schulte wrote:
>> Hi Jörg,
>>
>> Thanks for the catch, I've added "require 'date'" to the initial ruby
>> example. -- Eric
>>
>> Jörg Hagmann <joerg.hagmann@unibas.ch> writes:
>>
>>> Sorry for the question below. I needed "require 'date'"; maybe a first
>>> example not needing to load anything would avoid this kind of noise.
>>>
>>> In any case, thanks a lot for this tool!
>>>
>>> Cheers, Jörg
>>>
>>> Jörg Hagmann wrote:
>>>> Thank you, David and Carsten.
>>>>
>>>> Now it works with shell scripts.
>>>>
>>>> With Ruby, I get:
>>>> Source block produced no output (Using the first example from the manual)
>>>>
>>>> Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu.
>>>>
>>>> ?
>>>>
>>>> Thanks, Jörg
>>>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* org-babel
@ 2010-01-22  5:40 Richard Riley
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Riley @ 2010-01-22  5:40 UTC (permalink / raw)
  To: Emacs-orgmode mailing list


Two questions/requests on this nice module

1) Open src blocks to edit : I found docs which said C-c c-o or C-c '
should open src blocks. The first executes it according to the docs. So
how to open? Is there no standard binding I might need to enable?

2) I set up the emacs init as described in the org-babel web pages
http://orgmode.org/worg/org-contrib/babel/intro.php#sec-8.2.1 and I am
up and running but only after I manually created my emacs-init.el which
corresponds to the emacs-init.org file that org-babel processes as my
emacs init file. My understanding was that babel should create that file
from the code snippets in the org file on its own.  Or does it need to
be turned on? It doesnt create by default as the instructions seem to
suggest.


Small bug - Further to (2) the instructions here
http://orgmode.org/worg/org-contrib/babel/intro.php incorrectly contain
"org" as the path following a git clone (src/org/contrib/lisp etc) - it
should be org-mode on the path.



regards,

r.

-- 
Google Talk : rileyrgdev@googlemail.com  http://www.google.com/talk

ASCII ribbon campaign ( )
 - against HTML email  X
             & vCards / \

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

* org-babel
@ 2014-07-10 15:10 Federico Beffa
  2014-07-27 14:24 ` org-babel Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Beffa @ 2014-07-10 15:10 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

is there any plan to make org-babel a minor-mode (similarly to orgtbl)?

Regards,
Fede

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

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

* Re: org-babel
  2014-07-10 15:10 org-babel Federico Beffa
@ 2014-07-27 14:24 ` Bastien
  0 siblings, 0 replies; 11+ messages in thread
From: Bastien @ 2014-07-27 14:24 UTC (permalink / raw)
  To: Federico Beffa; +Cc: emacs-orgmode

Hi Federico,

Federico Beffa <beffa@ieee.org> writes:

> is there any plan to make org-babel a minor-mode (similarly to
> orgtbl)?

I'm not sure what it means but the answer is "no" :)

-- 
 Bastien

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

end of thread, other threads:[~2014-07-28 17:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15  8:58 org-babel Jörg Hagmann
2009-09-15  9:15 ` org-babel David Maus
2009-09-15  9:30 ` org-babel Carsten Dominik
2009-09-15 13:03   ` org-babel Jörg Hagmann
2009-09-15 14:19     ` org-babel Jörg Hagmann
2009-09-15 14:43       ` org-babel Eric Schulte
2009-09-15 15:09         ` org-babel Stephan Schmitt
2009-09-15 15:54           ` org-babel Eric Schulte
  -- strict thread matches above, loose matches on Subject: below --
2010-01-22  5:40 org-babel Richard Riley
2014-07-10 15:10 org-babel Federico Beffa
2014-07-27 14:24 ` org-babel Bastien

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