0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

ob-ruby: fix a24775dc79 again

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Temporarily disable the
  irb prompt to ensure that the output is properly recognized using
  the standard settings from inf-ruby and no extra settings in .irbrc
  or other configuration files from Ruby.  Remove superfluous
  `comint-send-input' that produced a spurious empty line in output.
* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output): Remove
  spurious emtpy line in expected output.
This commit is contained in:
Achim Gratz 2014-09-21 12:57:44 +02:00
parent e228cd1060
commit 4ef78e68c1
2 changed files with 4 additions and 3 deletions

View file

@ -221,8 +221,10 @@ return the value of the last statement in BODY, as elisp."
(mapc
(lambda (line)
(insert (org-babel-chomp line)) (comint-send-input nil t))
(list "conf.echo=false" body "conf.echo=true" org-babel-ruby-eoe-indicator))
(comint-send-input nil t)) 2)
(list "conf.echo=false;_org_prompt_mode=conf.prompt_mode;conf.prompt_mode=:NULL"
body
"conf.prompt_mode=_org_prompt_mode;conf.echo=true" org-babel-ruby-eoe-indicator))
) 2)
"\n") "[\r\n]")) "\n"))
(value
(let* ((tmp-file (org-babel-temp-file "ruby-"))

View file

@ -39,7 +39,6 @@ puts s
#+end_src
#+RESULTS:
:
: 3
")))