emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: evaluation issue with ocaml code (due to changes to org-babel-comint-with-output)
Date: Tue, 08 Dec 2015 10:14:37 +0100	[thread overview]
Message-ID: <m2twnt8fpe.fsf@charm-wifi.irisa.fr> (raw)

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

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 6, 2015, Mauna Loa Obs.): 400.80 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

             reply	other threads:[~2015-12-08 15:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08  9:14 Alan Schmitt [this message]
2015-12-14 12:04 ` evaluation issue with ocaml code (due to changes to org-babel-comint-with-output) Alan Schmitt
2015-12-16 20:29   ` Alan Schmitt
2015-12-18  8:18     ` Alan Schmitt
2015-12-18 21:38       ` Nicolas Goaziou
2015-12-21  8:06         ` Alan Schmitt

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=m2twnt8fpe.fsf@charm-wifi.irisa.fr \
    --to=alan.schmitt@polytechnique.org \
    --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).