You can just use cl-letf:

(cl-letf (((symbol-function 'org-babel-csharp--find-dotnet-version) #'ignore))
  ...)

Way simpler, applied, thanks.

Go ahead.
This commit
https://cgit.git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=526a7d1cc65409d5546b009f54fed28726a9457d

adds the patch to the org-mode repository.

I added it to `BTEST_OB_LANGUAGES' as a comment following the examples of R and ruby.

I will send a separate patch for the worg repo.

On 03.08.25 14:15, Ihor Radchenko wrote:
Maximilian Kueffner <poverobuosodon...@gmail.com> writes:

together with a test
https://codeberg.org/buoso/csharp-babel/src/commit/944c1a0c9106c52fd88e7631dd380adebcac90f7/test-ob-csharp.el#L311-L319
(let ((advice (advice-add 'org-babel-csharp--find-dotnet-version :override 
#'(lambda () nil))))
You can just use cl-letf:

(cl-letf (((symbol-function 'org-babel-csharp--find-dotnet-version) #'ignore))
  ...)

after addressing the above, could you
prepare a patch against org-mode repo?
If the above is ok with you, I would go ahead and follow this documentation
https://orgmode.org/worg/org-contribute.html#devs
adding it to the org-mode repo, prepare a documentation addition to the
worg repo, and add a news entry.
Go ahead.


Reply via email to