Revert "Obsolete `org-src-associate-babel-session' and related functionality"

This reverts commit 7926045ff5.

`org-src-associate-babel-session' is still useful because:

1. It indicates the need to implement session association to babel
   backend (although we still need to make it more clear for backend
   authors in future).

2. It provides infrastructure for more granular control over session
   association for third-party packages.  For example, we might want
   to disabled session association when it can cause unwanted side
   effects, like starting comint process unconditionally (looking at
   ob-R and other ess-based backends).
This commit is contained in:
Ihor Radchenko 2024-01-05 14:20:14 +01:00
parent d8586fb601
commit 99c9cae25c
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
3 changed files with 0 additions and 19 deletions

View File

@ -20,12 +20,6 @@ examination". This was not documented, was done in the background,
and is not consistent with all other export backends. Now, this
feature is removed.
*** ~org-src-associate-babel-session~ and ~org-babel-<lang>-associate-session~ are now obsolete
This functionality is not documented, rarely used and can be achieved
via ~org-babel-edit-prep-<lang>~ function. The latter is the
new recommended way to setup session in Org src buffers.
*** ~org-print-speed-command~ is now an internal function
The old name is marked obsolete and the new name is

View File

@ -462,16 +462,6 @@ Counting starts at 1."
(define-obsolete-function-alias 'org-string-match-p 'string-match-p "9.0")
;;;; Functions and variables from previous releases now obsolete.
(make-obsolete
'org-src-associate-babel-session
"To be removed in the next release. Use `org-babel-edit-prep:<lang>' instead."
"9.7")
(make-obsolete
'org-src-babel-configure-edit-buffer
"To be removed in the next release. Use a custom `org-src-mode-hook' instead."
"9.7")
(define-obsolete-variable-alias 'org-export-ignored-local-variables
'org-element-ignored-local-variables "Org 9.7")
(define-obsolete-function-alias 'org-habit-get-priority

View File

@ -918,9 +918,6 @@ See also `org-src-mode-hook'."
;;; Babel related functions
;; FIXME: This block is to be removed in the following release.
;; `org-babel-edit-pre:<lang>' can be used in place.
(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