From: Suhail Singh <suhailsingh247@gmail.com>
To: Org mailing list <emacs-orgmode@gnu.org>
Subject: ob-shell: possibly missing initiate-session functions?
Date: Sun, 09 Jun 2024 22:48:10 -0400 [thread overview]
Message-ID: <87cyop3445.fsf@gmail.com> (raw)
Currently (Org 9.7.3), org-babel-switch-to-session invokes
org-babel-initiate-session which tries to invoke
org-babel-<lang>-initiate-session. On a related note, ob-shell defines
org-babel-sh-initiate-session (and uses it within
org-babel-execute:shell).
However, there are no definitions for org-babel-shell-initiate-session
nor org-babel-bash-initiate-session etc. This means that trying to use
org-metadown (which invokes org-babel-switch-to-session) on shell and
bash language session blocks results in the following errors
respectively:
#+begin_comment
org-babel-initiate-session: No org-babel-initiate-session function for shell!
org-babel-initiate-session: No org-babel-initiate-session function for bash!
#+end_comment
Is this a bug? If so, does org-babel-shell-initialize need to be
patched to set up function aliases pointing to
org-babel-sh-initiate-session ?
FWIW, I have been using such aliases in my personal config for bash and
shell language blocks and they seem to behave as expected.
--
Suhail
next reply other threads:[~2024-06-10 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 2:48 Suhail Singh [this message]
2024-06-16 18:53 ` ob-shell: possibly missing initiate-session functions? Matt
2024-06-16 22:54 ` Suhail Singh
2024-06-17 15:45 ` Ihor Radchenko
2024-06-17 18:29 ` Suhail Singh
2024-06-18 12:46 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cyop3445.fsf@gmail.com \
--to=suhailsingh247@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.