[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call blocks as a function from inside elisp code
From: |
Eric S Fraga |
Subject: |
Re: call blocks as a function from inside elisp code |
Date: |
Wed, 19 Jan 2022 16:43:44 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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 for several other
> reasons
Two ways I can think of:
1. use the :post header argument to chain calls or
2. invoke (org-sbe "blockname") although I am not sure if you can pass
variables. org-sbe is a macro in ob-table.el.
There may be (very likely) a more general way to evaluate a src block
from with elisp.
HTH,
eric
--
: Eric S Fraga, with org release_9.5.2-306-g9623da in Emacs 29.0.50