Re: call blocks as a function from inside elisp code

2022-01-19 Thread Tom Gillespie
Hi George, Here is an example of how I call nested elisp and python. The python block is an input argument to the elisp block in this case, but the python block could be called directly as well. I'm not sure how to pass arguments to the block from inside elisp via org-babel-eval though, that

Re: call blocks as a function from inside elisp code

2022-01-19 Thread Eric S Fraga
On Wednesday, 19 Jan 2022 at 09:56, George Mauer wrote: > So is there a way to do the equivalent of #+call: > gim/get-python-program-info(filename="foo/bar/some_module.py") from > *inside* an elisp code block? I am aware that I can call things via > noweb, but I'm trying to see if I can avoid that

call blocks as a function from inside elisp code

2022-01-19 Thread George Mauer
Hi everyone, I know that I can call a source block as a function in a header argument such as :var, inside noweb annotations, or with a #+call: as described here https://orgmode.org/manual/Evaluating-Code-Blocks.html I am interested in going one step further though. I have one emacs-lisp block