org-export: Fix expansion of babel calls in included files
commitccc98ebc2de5aa3c228042ef63f5e287b0232422
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 18 Oct 2012 18:44:24 +0000 (18 20:44 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 28 Oct 2012 15:21:30 +0000 (28 16:21 +0100)
tree37281e0cada8722db94d9d82fbc031377c6ba90c
parenta729fae0f720005ef8146fe65a116965a40d8e4e
org-export: Fix expansion of babel calls in included files

* contrib/lisp/org-export.el (org-export-as):
  `org-current-export-file' should refer to current, temporary, buffer
  containing included contents, not to original buffer with include
  keywords.
(org-export-with-current-buffer-copy): Buffer copy must contain the
whole buffer, possibly narrowed to a proper part, not only the
narrowed part.
* testing/lisp/test-org-export.el: Tweak tests.
contrib/lisp/org-export.el
testing/lisp/test-org-export.el