fixup! lisp/ob-emacs-lisp.el: Throw an error when session is requested

This commit is contained in:
Ihor Radchenko 2024-04-09 16:35:44 +03:00
parent d1c6f91ced
commit 9d636473be
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ by `org-edit-src-code'.")
(concat "(pp " body ")")
body))
(org-babel-emacs-lisp-lexical lexical))))
(when session (error "ob-emacs-lisp backend does not support sessions"))
(when (and session (not (equal session "none")))
(error "ob-emacs-lisp backend does not support sessions"))
(org-babel-result-cond result-params
(let ((print-level nil)
(print-length nil))