瀏覽代碼

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.
Bastien Guerry 12 年之前
父節點
當前提交
b57a91f8dd
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lisp/ob-R.el

+ 1 - 2
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."