From 8e4b9b3a6a24ae3cb502733e8a07da7637020551 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 6 Feb 2011 15:03:02 +0000 Subject: [PATCH] ob: python: Don't bother removing echoed output in value mode * lisp/ob-python.el (org-babel-python-evaluate-session): Pass nil as remove-echo part of META argument to `org-babel-comint-with-output' The regexp matching involved in this procedure can fail on large input data, so we only do it when necessary (i.e. output mode). --- lisp/ob-python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 1fb1d4614..db1d865a2 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -265,7 +265,7 @@ last statement in BODY, as elisp." (org-babel-python-table-or-string results))) (let ((tmp-file (org-babel-temp-file "python-"))) (org-babel-comint-with-output - (session org-babel-python-eoe-indicator t body) + (session org-babel-python-eoe-indicator nil body) (let ((comint-process-echoes nil)) (input-body body) (dump-last-value tmp-file (member "pp" result-params))