make src block location available to execution backends
commitf301bbcc862c2acc61749bc1e24895bf69cd4d06
authorVitalie Spinu <spinuvit@gmail.com>
Thu, 6 Jun 2013 10:04:02 +0000 (6 12:04 +0200)
committerEric Schulte <schulte.eric@gmail.com>
Thu, 6 Jun 2013 15:13:58 +0000 (6 09:13 -0600)
treeb158ab4e50b78448a985887d53178b20aea80b4d
parentbceb151b7eb6a1edd274b98bac72e6a33a6fb4eb
make src block location available to execution backends

* lisp/ob-core.el (org-babel-where-is-src-block-head): return
  point-marker instead of point.

  (org-babel-current-exec-src-block-head): new global variable which is
  bound during `org-babel-execute-src-block-maybe'

  (org-babel-get-src-block-info): return a list of 7 elements, last
  being the header location

Evaluation backends might need to use the exact location of the block in
original org file. For example when inserting the correct source
references for visual debugging. With this patch the information on
current block is available in `org-babel-current-exec-src-block-head'.
lisp/ob-core.el