ob-ruby: clean up the session code some more and work around an I/O sync problem...
commit7585fe449b0d8c8cf29f2721c89202b00de7cfe6
authorAchim Gratz <Stromeko@Stromeko.DE>
Sun, 21 Sep 2014 15:59:49 +0000 (21 17:59 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sun, 21 Sep 2014 15:59:49 +0000 (21 17:59 +0200)
tree9d3fdbf5b01668f96536bb8acdc2a5cfa8f843b2
parent4ef78e68c1796023f5d0b6152c82b8d2f52c0777
ob-ruby: clean up the session code some more and work around an I/O sync problem in comint

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Clean up the session code
  and remove a superfluous `butlast'.  Work around a problem in comint
  where the first prompt in a session may be printed after the
  evaluation has already started, thus producing a spurious line in
  the output.

* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output-1,
  test-ob-ruby/session-output-2 test-ob-ruby/session-output-3): Test
  correct transfer of interpreter state across several session
  invocations.
lisp/ob-ruby.el
testing/lisp/test-ob-ruby.el