[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Refactor org-babel-shell-initialize? (was Re: ob-shell intentions an
From: |
Ihor Radchenko |
Subject: |
Re: Refactor org-babel-shell-initialize? (was Re: ob-shell intentions and paperwork (was Bash results broken?)) |
Date: |
Thu, 05 Jan 2023 08:32:15 +0000 |
Ihor Radchenko <yantar92@posteo.net> writes:
>> Is there a way to see the definition of`org-babel-execute:csh' using the
>> current `org-babel-shell-initialize', that is, when generated by a function?
>
> https://github.com/Wilfred/helpful displays the function code in such
> scenario. Probably, I need to raise this problem on emacs-devel.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60568
>> (alist-get "csh" org-babel-shell-set-prompt-commands nil nil 'equal)
>>
>> Then, it will return the prompt associated with "csh".
>
> Good point. Would you mind making a patch?
Fixed on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=93339de71
>>
>> I'm curious your thoughts about removing the `:set' function from
>> `org-babel-shell-names' and using `add-variable-watcher' instead. In my
>> explorations, the watcher gets called when using customize, as well as when
>> a new shell is added to `org-babel-shell-names' using `add-to-list'.
>
> I have never seen using variable watcher for this purpose.
> I suggest asking on emacs-devel first to hear what they think of it.
https://yhetil.org/emacs-devel/87a62xiewa.fsf@localhost/T/#u
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>