Hi Eric,
2013ko apirilak 20an, Eric Schulte-ek idatzi zuen:
> Could re-calculating the info cause referenced blocks to be executed
> more than once?
>
> If so then we should continue passing the info and *not* simply
> re-calculate it later on.
This is a very good question. I will look into it
Aaron Ecay writes:
> Hi Bastien,
>
> Thanks for your comments.
>
> 2013ko apirilak 3an, Bastien-ek idatzi zuen:
>
> [...]
>
>>> org-babel-get-src-block-info is a potentially expensive operation, which
>>> is why its ‘light’ argument exists. But in any case, it is overkill to
>>> query the whole
Hi Bastien,
Thanks for your comments.
2013ko apirilak 3an, Bastien-ek idatzi zuen:
[...]
>> org-babel-get-src-block-info is a potentially expensive operation, which
>> is why its ‘light’ argument exists. But in any case, it is overkill to
>> query the whole info, if all that is needed is wheth
Hi Aaron,
Aaron Ecay writes:
> * lisp/ob-core.el (org-babel-if-in-src-block): New macro
> (org-babel-execute-src-block-maybe),
> (org-babel-expand-src-block-maybe),
> (org-babel-load-in-session-maybe),
> (org-babel-pop-to-session-maybe): Use it
A slightly enhanced version:
* lisp/ob-core.el (o
Aaron Ecay writes:
> * lisp/ob-core.el (org-babel-if-in-src-block): New macro
[…]
> +(defmacro org-babel-when-in-src-block (&rest body)
> + `(if (or (org-babel-where-is-src-block-head)
> + (org-babel-get-inline-src-block-matches))
> + (progn
> + ,@body
> + t)
> + nil)
* lisp/ob-core.el (org-babel-if-in-src-block): New macro
(org-babel-execute-src-block-maybe),
(org-babel-expand-src-block-maybe),
(org-babel-load-in-session-maybe),
(org-babel-pop-to-session-maybe): Use it
org-babel-get-src-block-info is a potentially expensive operation, which
is why its ‘light’