Function: org-src-associate-babel-session

org-src-associate-babel-session is an interactive and byte-compiled function defined in org-src.el.gz.

Signature

(org-src-associate-babel-session INFO)

Documentation

Associate edit buffer with comint session.

INFO should be a list similar in format to the return value of org-babel-get-src-block-info.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
;;; Babel related functions

(defun org-src-associate-babel-session (info)
  "Associate edit buffer with comint session.
INFO should be a list similar in format to the return value of
`org-babel-get-src-block-info'."
  (interactive)
  (let ((session (cdr (assq :session (nth 2 info)))))
    (and session (not (string= session "none"))
	 (let ((f (intern (format "org-babel-%s-associate-session"
                                  (nth 0 info)))))
           (and (fboundp f) (funcall f session))))))