0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 22:47:56 +00:00

babel: R: Respect value of `ess-ask-for-ess-directory'

This commit is contained in:
Erik Iverson 2010-08-23 23:06:55 -04:00 committed by Dan Davison
parent 17c7786bb0
commit 1d1439f91e

View file

@ -155,7 +155,8 @@ This function is called by `org-babel-execute-src-block'."
"If there is not a current R process then create one."
(unless (string= session "none")
(let ((session (or session "*R*"))
(ess-ask-for-ess-directory (not (cdr (assoc :dir params)))))
(ess-ask-for-ess-directory
(and ess-ask-for-ess-directory (not (cdr (assoc :dir params))))))
(if (org-babel-comint-buffer-livep session)
session
(save-window-excursion