Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-21 Thread Aaron Ecay
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 and

Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-20 Thread Eric Schulte
Aaron Ecay aarone...@gmail.com 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

Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-18 Thread Aaron Ecay
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 whether

Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-03 Thread Bastien
Hi Aaron, Aaron Ecay aarone...@gmail.com 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: *

Re: [O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-04-02 Thread Achim Gratz
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))

[O] [PATCH 03/10] Clean up various org-babel-*-maybe commands

2013-03-31 Thread Aaron Ecay
* 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’