ob-ref: Fix "Marker points into wrong buffer" error
commitcaf851d44dd6c8d8338df956b385a5965bae19ca
authorAchim Gratz <Stromeko@Stromeko.DE>
Tue, 12 Nov 2013 20:55:53 +0000 (12 21:55 +0100)
committerBastien Guerry <bzg@altern.org>
Fri, 24 Jan 2014 10:26:39 +0000 (24 11:26 +0100)
tree1f68ac605d279574674c3a3dff48ddb5bfd9a070
parent91940f514e436254336990f9bfc0d25da4528fd0
ob-ref: Fix "Marker points into wrong buffer" error

* lisp/ob-ref.el (org-babel-ref-parse): If
  `org-babel-current-src-block-location' is a marker, it can be from
  another buffer, use marker-position instead in this case.

Introduced with r114064 on Emacs trunk.  Not sure if this is a bug in
Org or Emacs, but the patch restores the previous behaviour.
lisp/ob-ref.el