cit-shell-file-name but then my LaTeX exports don't work any
>>> longer.
>>>
>>> Is is it possible to extend org-mode's src blocks with
>>> org-babel-shell-names to use either MSYS2 or MinGW shells (instead of
>>> cmd.exe)? Unfortunately ob-shell.el doesn't guide me further and I
>>> can't find examples or the respective lisp files on how to define the
>>> execution functions.
>>>
>>> GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30,
>>> cairo version 1.15.10) of 2022-01-14
>>>
>>> Org mode version 9.4.6 (9.4.6-13-g4be129-elpaplus @
>>> /home/dieter/.emacs.d/elpa/org-plus-contrib-20210920/)
>>
>> I'm not aware that I did anything special to get these results, except
>> add `(shell . t)` to `org-babel-load-languages`. I mean, it is entirely
>> possible that I did, in some other context. I think it's just a matter
>> of having bash in your path.
>
> Yes, you are right, when using
>
>> #+begin_src sh
>
> It seems that I'm also running some bash shell! :-) Previously I was
> using the src block in this way:
>
> #+begin_src shell
>
> and here the shell seems to be com.exe.
>
> But I'm not sure if I'm halfway there with "sh"? I need to run the
> following MSYS2 command AND switch between two arguments (for building
> Emacs).
>
> \MSYS2\msys2_shell.cmd -mingw64
>
> and
>
> \MSYS2\msys2_shell.cmd -msys.
>
> How could I achieve this within a src block?
>
> Thanks
>
>
>
> End of Emacs-orgmode Digest, Vol 192, Issue 6
> *
--
Tianshu Wang
ed by newer advice-add with
> a function containing body of the old advice.
Yes, I replaced the original code with advice-add (not fully tested).
(advice-add 'server-execute :before
(defun enable-org-protocol (&rest r)
(unless (featurep 'org-protocol)
rsion 9.6.6 (release_9.6.6 @
/opt/homebrew/Cellar/emacs-head@30/30.0.50_1/share/emacs/30.0.50/lisp/org/)
--
Tianshu Wang
Emacs 30.1 (build 1, aarch64-apple-darwin24.3.0, NS appkit-2575.40
Version 15.3.1 (Build 24D70))
of 2025-02-28
Package: Org mode version 9.8-pre (release_9.7.30-371-g5b419c @
/Users/wangtianshu/.config/emacs/straight/build/30.1/org/)
--
Tianshu Wang