From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: evaluation issue with ocaml code (due to changes to org-babel-comint-with-output) Date: Tue, 08 Dec 2015 10:14:37 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Jqp-0004Uy-I1 for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:06:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Jql-0006X1-G4 for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:06:47 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Jql-0006We-AM for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:06:43 -0500 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ty= pe 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 ty= pe 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 =E2=80=A6 Thanks for any help regarding this (for instance telling me how to edebug macros). Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated December 6, 2015, Mauna Loa Obs.): 400.80= ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWZp99AAoJEAQNCjtO0uXHihEIAJZSRLxY76SHOR9SQjQvdgFJ Azb62vBMzRAuD7XpTQ8r6wRiZDqGIBZdO8tVzljNITSlAy8W2mUP3hJeSGuaM0YD Cybfu0QKHhRYYm8tNkJoY60qxm5VM6U9Fzv/gmKdikxyMXeZTN2UVR8i1imxExrL /rF+aJPVrwnyTFCNSaq1gizmYAtmpEsFFArNnf8C9nDXGujpECdvLXTUYBDv/kEM oa6k82kkhl0tdAP499DZBYR+F8ybuLf+hZwtfRJsTfBh76qHMUrKThk2PWwBI5Np dwesyYK7pdSIC5K2AVcMVQPCL+lwwvGgChUQnH3XOkSyDHTwEh769QVxjd+OdRU= =T79j -----END PGP SIGNATURE----- --=-=-=--