mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 00:57:48 +00:00
babel: R: Respect value of `ess-ask-for-ess-directory'
This commit is contained in:
parent
17c7786bb0
commit
1d1439f91e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue