* lisp/ob-R.el (org-babel-edit-prep:R): Add docstring

This commit is contained in:
Ihor Radchenko 2023-10-02 16:29:10 +03:00
parent 3c29e77b51
commit 3fcf3d2e24
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ this variable.")
(defvar ess-current-process-name) ; dynamically scoped
(defvar ess-local-process-name) ; dynamically scoped
(defun org-babel-edit-prep:R (info)
"Initiate R session for Org edit buffer, as needed.
The session name is taken from INFO."
(let ((session (cdr (assq :session (nth 2 info)))))
(when (and session
(string-prefix-p "*" session)