1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-28 10:56:57 +00:00

ob-R: improve prompt detection regexp. Thanks to the users of ess-tracebug for this new regexp

* lisp/ob-R.el (org-babel-R-evaluate-session): Improve prompt
  detection regexp.
This commit is contained in:
Eric Schulte 2011-09-01 12:03:33 -06:00
parent e887881e13
commit a611170b57

View File

@ -294,7 +294,7 @@ last statement in BODY, as elisp."
(mapcar
(lambda (line) ;; cleanup extra prompts left in output
(if (string-match
"^\\([ ]*[>+][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line)
"^\\([ ]*[>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line)
(substring line (match-end 1))
line))
(org-babel-comint-with-output (session org-babel-R-eoe-output)