emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Witte <chris@witte.net.au>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [ANN] Org-babel integrated into Org-mode
Date: Fri, 2 Jul 2010 17:50:59 +0200	[thread overview]
Message-ID: <AANLkTilfapIWoc7mq-rloy-GFoL99TLY5X9rEHuZM0nM@mail.gmail.com> (raw)
In-Reply-To: <87r5jr855m.fsf@gmail.com>

Eric,

Thanks, it all appears to be working now.

Cheers,
Chris.

On 28 June 2010 18:59, Eric Schulte <schulte.eric@gmail.com> wrote:
> Hi Christopher,
>
> Christopher Witte <chris@witte.net.au> writes:
>
>> I'm having trouble getting the new version of babel to work with
>> haskell and R under Ubuntu 10.04 using emacs-snapshot.  It works fine
>> for emacs-lisp.  I had to change the variable LISPF in the Makefile
>> to:
>>
>> LISPF      =  org.el                          \
>> .....
>>               babel/ob.el                     \
>>               babel/ob-table.el               \
>>               babel/ob-lob.el                 \
>>               babel/ob-ref.el                 \
>>               babel/ob-exp.el                 \
>>               babel/ob-tangle.el              \
>>               babel/ob-comint.el              \
>>               babel/ob-keys.el                \
>>               babel/langs/ob-emacs-lisp.el    \
>>               babel/langs/ob-haskell.el       \
>>               babel/langs/ob-latex.el \
>>               babel/langs/ob-sh.el    \
>>               babel/langs/ob-asymptote.el     \
>>               babel/langs/ob-R.el     \
>>               babel/langs/ob-gnuplot.el
>>
>> otherwise I couldn't compile my .emacs file, which contains the following:
>>
>
> Hmm, I would think it would be possible to require files which are not
> byte-compiled.  The reason that the language files (aside from
> emacs-lisp) are not compiled by default is that they often have exotic
> requirements which will not be present on most users systems.
>
>>
>> (require 'org-install)
>>
>> ;;(require 'org)
>> ;;(require 'ob)
>> ;;(require 'ob-tangle)
>> ;; org-babel set up
>> (require 'ob-haskell)
>> (require 'ob-latex)
>> (require 'ob-sh)
>> (require 'ob-asymptote)
>> (require 'ob-R)
>> (require 'ob-gnuplot)
>>
>> The following works fine:
>>           #+tblname: example-table
>>           | 1 |
>>           | 2 |
>>           | 3 |
>>           | 4 |
>>
>>           #+source: table-length
>>           #+begin_src emacs-lisp  :var table=example-table
>>           (length table)
>>           #+end_src
>>
>>           #+results: table-length
>>         : 4
>>
>> But when I try the haskell equivalent:
>>           #+source: table-length
>>           #+begin_src haskell  :var table=example-table
>>           length table
>>           #+end_src
>>
>>
>> I get:
>> executing haskell source code block
>> reference 'example-table' not found in this buffer
>> org-babel-ref-resolve-reference: reference 'example-table' not found
>> in this buffer
>>
>> If I try:
>>           #+source: table-length
>>           #+begin_src haskell
>>           length [1,2,3]
>>           #+end_src
>>
>>
>> I get:
>> executing haskell source code block
>> org-babel-execute:haskell: Symbol's function definition is void: session
>>
>
> Thanks for bringing this up, it looks like ob-haskell has fallen victim
> to bit-rot.  I've done a fairly thorough cleanup of the file (just
> pushed up the commit).  Please give it a test run and let me know
> if/where I missed issues.
>
>>
>>
>> I also get a lot of warnings when I compile org-mode, see the attached
>> buiild log.
>>
>
> Yes, the language-specific files have not been manicured for clean
> byte-compilation.  This is certainly something that should happen, but
> probably not in the near term.
>
> Thanks -- Eric
>
>>
>>
>> Thanks for your help,
>>
>> Chris Witte.
>>
>> On 23 June 2010 23:09, Eric Schulte <schulte.eric@gmail.com> wrote:
>>> Hi,
>>>
>>> I've just merged the babel branch into the main branch of Org-mode.
>>> This merge culminates much integration work by Dan Davison and Tom Dye,
>>> as well as myself.
>>>
>>> Babel is now part of Org-mode.
>>>
>>> The biggest changes are:
>>>
>>> 1) Babel now has documentation!  It is part of Org-mode's documentation
>>>
>>>   see Chapter 14 _Working With Source Code_
>>>
>>>   also, the Babel keybindings are now listed in the refcard, and can be
>>>   viewed from any Org-mode buffer by pressing C-c C-v h
>>>
>>> 2) Babel will now be loaded by default along with the rest of Org-mode.
>>>   This means that *everyone* currently using babel will need to change
>>>   their Emacs config and remove the (require 'org-babel-int) and/or
>>>   (require 'org-babel) lines.
>>>
>>>   Support for evaluating emacs-lisp code blocks is loaded by default.
>>>   All other languages will need to be required explicitly.  To conform
>>>   to Emacs filename specifications all language require lines have been
>>>   shortened from e.g.
>>>
>>>   (require 'org-babel-sh)
>>>
>>>   to
>>>
>>>   (require 'ob-sh)
>>>
>>> Thanks -- Eric
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

  reply	other threads:[~2010-07-02 15:51 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-23 21:09 [ANN] Org-babel integrated into Org-mode Eric Schulte
2010-06-23 23:23 ` Sebastian Rose
2010-06-23 23:41   ` Eric Schulte
2010-06-24  0:03 ` Bernt Hansen
2010-06-24  0:39   ` Eric Schulte
2010-06-24  5:12     ` Nathan Neff
2010-06-24  5:42       ` Eric Schulte
2010-06-24  7:31 ` Sébastien Vauban
2010-06-24 16:27   ` Eric Schulte
2010-06-25  8:28     ` Rainer M Krug
2010-06-25 15:37       ` Eric Schulte
2010-06-26  8:45         ` Štěpán Němec
2010-06-26 15:59           ` Eric Schulte
2010-06-26 16:30             ` Štěpán Němec
2010-06-26 17:27               ` Eric Schulte
2010-06-26 18:45                 ` Stephan Schmitt
2010-06-26 19:42               ` Carsten Dominik
2010-06-26 19:51                 ` Štěpán Němec
2010-06-28  7:55         ` Rainer M Krug
2010-06-28 11:53           ` Štěpán Němec
2010-06-28 12:16             ` Rainer M Krug
2010-06-28 12:54               ` Bernt Hansen
2010-06-28 13:18                 ` Rainer M Krug
2010-06-28 13:25                   ` Bernt Hansen
2010-06-28 13:36                     ` Rainer M Krug
2010-06-28 16:03           ` Eric Schulte
2010-06-29  7:11             ` Rainer M Krug
2010-06-28 11:32 ` Christopher Witte
2010-06-28 16:59   ` Eric Schulte
2010-07-02 15:50     ` Christopher Witte [this message]
2010-06-29 18:23 ` Matt Lundin
2010-06-29 19:08   ` Nick Dokos
2010-06-29 21:01     ` Matt Lundin
2010-06-29 21:27       ` Matthew Lundin
2010-06-29 22:12       ` Nick Dokos
2010-06-29 22:03   ` Eric Schulte
2010-06-29 23:09     ` Eric Schulte
2010-06-29 23:11       ` Eric Schulte
2010-06-30  2:21         ` Nick Dokos
2010-06-30  5:37           ` Eric Schulte
2010-06-30  5:40             ` Eric Schulte
2010-06-30 12:13     ` Matthew Lundin
2010-06-30  9:27   ` Carsten Dominik
2010-06-30  9:59     ` Scot Becker
2010-06-30 12:53     ` Matthew Lundin
2010-06-30 13:24       ` Carsten Dominik
2010-06-30 16:25     ` Eric Schulte
2010-06-30 17:01       ` Dan Davison
2010-06-30 17:17         ` Eric Schulte
2010-06-30 23:08           ` Stephan Schmitt
2010-07-01  0:20         ` Matthew Lundin
2010-07-01  6:27         ` Carsten Dominik
2010-07-01 16:11           ` Nick Dokos
2010-07-01 20:24             ` Sébastien Vauban
2010-07-01 22:14               ` Nick Dokos
2010-06-30 19:41       ` Eric Schulte
2010-07-01  7:20       ` Carsten Dominik
2010-07-01 14:55         ` Eric Schulte
2010-07-01 20:39           ` Eric Schulte
2010-07-01 22:13             ` Christian Moe
2010-07-02  4:22             ` Carsten Dominik
2010-07-02 18:52               ` Eric Schulte
2010-07-02  8:38           ` Carsten Dominik
2010-06-30 19:01   ` Eric Schulte
2010-06-30 20:47     ` Matthew Lundin

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=AANLkTilfapIWoc7mq-rloy-GFoL99TLY5X9rEHuZM0nM@mail.gmail.com \
    --to=chris@witte.net.au \
    --cc=emacs-orgmode@gnu.org \
    /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).