ob-eval: Do not use read-only mode, switch to compilation mode only once
commitec8f245d27113d51ed5fda4cd18387acef61286c
authorAchim Gratz <Stromeko@Stromeko.DE>
Wed, 10 Sep 2014 09:22:43 +0000 (10 11:22 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Wed, 10 Sep 2014 09:22:43 +0000 (10 11:22 +0200)
treec19d91db008ea0aa78f139c57c1b5aff1bc12003
parent2f8067c9152d2c41320760728c89d799bc51c598
ob-eval: Do not use read-only mode, switch to compilation mode only once

* lisp/ob-eval.el (org-babel-eval): Switch to compilation mode only if
  the current mode is not already (a derived mode of)
  compilation-mode.  Remove the read-only state from the buffer
  directly without using `read-only-mode'.
lisp/ob-eval.el