emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Eric Schulte <schulte.eric@gmail.com>
Subject: Re: ocaml babel no longer works?
Date: Thu, 14 Feb 2013 10:34:08 -0700	[thread overview]
Message-ID: <87sj4ylrzj.fsf@gmail.com> (raw)
In-Reply-To: <m2liarcpi7.fsf@polytechnique.org> (Alan Schmitt's message of "Thu, 14 Feb 2013 08:40:16 +0100")

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hi Eric,
>
> Eric Schulte writes:
>
>>> The suggestion: instead of appending '"org-babel-ocaml-eoe";;' to the
>>> code, how simply put ';;' (which will make sure everything is flushed)
>>> then detect the toplevel is done by seeing the string '# ' at the
>>> beginning of the line? Would there be an issue with the fact that this
>>> line does not have a newline? If so, an alternative suggestion would be
>>> to use the longer ';; "org-babel-ocaml-eoe";;' which makes sure the
>>> phrase in the input won't interact with the marker.
>>>
>>
>> You can customize the `org-babel-ocaml-eoe-output' and
>> `org-babel-ocaml-eoe-indicator' variables so that they match the above.
>> If this proves generally useful then I'd be happy to admit this change
>> to the core.
>
> I'll have a look at it (as soon as my European grant deadline as
> passed).

Great.

> The one thing I don't know about org-babel-comint-with-output is the
> following: what does it do with the last line if it does not have a
> carriage return? (After running a command, the toplevel outputs '# '
> with no carriage return. Will it be part of the returned string?)
>

This prompt should not be returned as ob-comint-w/output handles things
like removing echo'd inputs, prompts etc...  However, although I'm still
writing OCaml fairly regularly I removed tuareg during a recent hard
drive switch in favor of the default caml-mode, so I can't test this
directly with an OCaml code block (another reason why I'm excited at the
prospect of someone else's eyes on ob-caml).

>
>> I hope these pointers are useful.
>
> They definitely are. As ocaml is not only my language of choice but one
> I have the chance of teaching, I'll clearly look into this.
>
> Thanks again,
>
> Alan
>

Cheers,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

  reply	other threads:[~2013-02-14 17:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-08 14:23 ocaml babel no longer works? Alan Schmitt
2013-02-09 12:06 ` Alan Schmitt
2013-02-09 21:09   ` Eric Schulte
2013-02-09 21:17     ` Sebastien Vauban
2013-02-11 21:23     ` Alan Schmitt
2013-02-13 16:24       ` Eric Schulte
2013-02-14  7:40         ` Alan Schmitt
2013-02-14 17:34           ` Eric Schulte [this message]
2013-05-02  9:49         ` Alan Schmitt
2013-05-03 15:57           ` Eric Schulte
2013-05-07  7:56             ` Alan Schmitt
2013-05-06  6:20           ` 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=87sj4ylrzj.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=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).