From b57a91f8dd41bff16f91d69b276880c3a1db5dd9 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 14 Aug 2012 23:57:24 +0200 Subject: [PATCH] ob-R.el (org-babel-edit-prep:R): Don't set the session * ob-R.el (org-babel-edit-prep:R): Don't set the session. See the discussion for this issue here: http://article.gmane.org/gmane.emacs.orgmode/58600 Thanks to Mikhail Titov and to Andrew Young for exploring it. --- lisp/ob-R.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 861f36a09..361428d92 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -80,8 +80,7 @@ (defun org-babel-edit-prep:R (info) (let ((session (cdr (assoc :session (nth 2 info))))) (when (and session (string-match "^\\*\\(.+?\\)\\*$" session)) - (save-match-data (org-babel-R-initiate-session session nil)) - (setq ess-local-process-name (match-string 1 session))))) + (save-match-data (org-babel-R-initiate-session session nil))))) (defun org-babel-expand-body:R (body params &optional graphics-file) "Expand BODY according to PARAMS, return the expanded body."