From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: ocaml babel no longer works? Date: Sat, 09 Feb 2013 22:17:38 +0100 Message-ID: <868v6xuqz1.fsf@somewhere.org> References: <876221i41q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric Schulte wrote: > Alan Schmitt writes: >> I have found the problem: I was missing a new line at the end of the >> #+END_SRC. >> >> Unfortunately the evaluation of the code does not work with recent >> tuareg. I first had to add: >> >> (defalias 'tuareg-run-caml 'tuareg-run-ocaml) >> >> to my configuration file. >> >> But even with this it gets stuck saying "executing Ocaml code >> block..." until I ctrl-G it. I'll try to see what is happening. Any >> suggestion as how to debug this? > > I would recommend evaluating first org-babel-execute:ocaml then possibly > org-babel-prep-session:ocaml in "edebug" mode. This can be done by > running `eval-defun' on these functions with a prefix argument, or > equivalently doing "M-: (eval-defun t)". Or, even shorted, C-u C-M-x with point somewhere in the defun. Best regards, Seb -- Sebastien Vauban