emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] evaluation issue with ocaml code (due to changes to org-babel-co


From: Alan Schmitt
Subject: Re: [O] evaluation issue with ocaml code (due to changes to org-babel-comint-with-output)
Date: Mon, 14 Dec 2015 13:04:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Hello,

I could use some help to debug this. Could someone please tell me how to
debug a macro (I would like to step through it using edebug)?

Thanks,

Alan

On 2015-12-08 10:14, Alan Schmitt <address@hidden> writes:

> Hello,
>
> I have found that commit f0bf77e82a3d37ba7548aa40198bc982e9875f1b breaks
> evaluation of ocaml code. With the following init file (the
> `package-initialize' is there for tuareg to be available):
>
> #+begin_src emacs-lisp
> (add-to-list 'load-path "/Users/schmitta/projets/org-mode/lisp")
>
> (require 'org)
>
> (package-initialize)
>
> (org-babel-do-load-languages
>  'org-babel-load-languages
>  '((ocaml . t)))
> #+end_src
>
> When I evaluate this block I get this result:
>
> #+BEGIN_SRC ocaml :results code verbatim :exports results
> 1 + "toto";;
> #+END_SRC
>
> #+results:
> #+BEGIN_SRC ocaml
> Characters 4-10:
>   1 + "toto";;;;
>       ^^^^^^
> Error: This expression has type string but an expression was expected of type
>          int
> #+END_SRC
>
> After commit f0bf77e82a3d37ba7548aa40198bc982e9875f1b I get this:
>
> #+results:
> #+BEGIN_SRC ocaml
> ;;
>       ^^^^^^
> Error: This expression has type string but an expression was expected of type
>          int
> #+END_SRC
>
> I tried to debug this but `org-babel-comint-with-output' is a macro and
> I don't know how to debug macros …
>
> Thanks for any help regarding this (for instance telling me how to
> edebug macros).
>
> Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated December 13, 2015, Mauna Loa Obs.): 401.31 ppm

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]