From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: evaluation issue with ocaml code (due to changes to org-babel-comint-with-output) Date: Mon, 14 Dec 2015 13:04:57 +0100 Message-ID: References: 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]:46274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8RsB-0003Wg-AT for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 07:05:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8Rs7-00074B-Fk for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 07:04:59 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:26105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8Rs7-000742-9h for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 07:04:55 -0500 In-Reply-To: (Alan Schmitt's message of "Tue, 08 Dec 2015 10:14:37 +0100") 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 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 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 =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 13, 2015, Mauna Loa Obs.): 401.3= 1 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWbrBpAAoJEAQNCjtO0uXHxm4H/2qw8iH+5gLd7I/O50NkbPBG LNkzAJwi6aCbwXMuf6OedzX0ZsJNCG7fe0Gzw8M9pooGhNRnWsQIIIMelBavnRci DCZjfeHbAPuhbs/1N29X3xVFUQNWc8yGlq5RpD3r6Z8ZcMTRkmy0gehFNuynKWvt MDVutq3DH5nlFP78vN2aQhqJMmohKnd4tUGIWzj9jDc95kYpcu62dhfBkBvwJIia Jeu92/fxzMgtd3kFidBiykKpZtS+RVL0534lnMY72dYSOYzYGeE/E6ObxyUZp+hG 7zjbL3woilZrIfA1PC4XDpe3bKi3WvIZ2dwnv2Ymb3z0tgXzCaTh+K7A2ZPKmzw= =4YFt -----END PGP SIGNATURE----- --=-=-=--