ob: Fix block evaluation in a narrowed buffer
commit2f2a80fe062df5eaacbd5bc3a34a52f6684dcee9
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 24 Oct 2012 15:23:20 +0000 (24 17:23 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 28 Oct 2012 15:21:30 +0000 (28 16:21 +0100)
treed4c9d734aa93ae29058988a63f70e0ddab3b6d38
parentccc98ebc2de5aa3c228042ef63f5e287b0232422
ob: Fix block evaluation in a narrowed buffer

* lisp/ob.el (org-babel-where-is-src-block-result): Insert new results
  keyword in current narrowed part of buffer, if necessary. Small
  refactoring.
(org-babel-insert-result): Do not widen buffer when new results have
to be inserted.  Therefore, results inserted after the last block of
a narrowed buffer still belong to the narrowed part of the buffer.
* testing/lisp/test-ob.el: Add tests.
* testing/lisp/test-ob-exp.el: Move test to test-ob.el
lisp/ob.el
testing/lisp/test-ob-exp.el
testing/lisp/test-ob.el