babel: evaluation of code blocks now requires confirmation
commit0ea1432d319cbf6bc82ed924b25d03070c570f10
authorEric Schulte <schulte.eric@gmail.com>
Wed, 30 Jun 2010 19:25:22 +0000 (30 12:25 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Mon, 5 Jul 2010 18:14:49 +0000 (5 11:14 -0700)
tree60809faedc3d7aec57cdfa4da698301f23c3f962
parent6d4cf4db847d2cc8fc69ac105df938d024446350
babel: evaluation of code blocks now requires confirmation

* lisp/babel/ob.el (org-confirm-babel-evaluate): variable used to
  control evaluation of code blocks, default value it t, meaning all
  code block evaluation requires confirmation

  (org-babel-confirm-evaluate): function used to request confirmation
  of code block evaluation from the user

  (org-babel-execute-src-block): this function is the single point of
  entry for evaluation of code blocks (whether initiated through lob
  call, through direct code block evaluation, or as part of file
  exportation).  Every time this function is called it will now
  request confirmation from the user.  The newly added
  `org-confirm-babel-evaluate' variable can be used to configure this
  behavior.

  (org-babel-no-eval-on-ctrl-c-ctrl-c): This variable can be used to
  inhibit evaluation of code blocks with C-c C-c.

* lisp/org.el (org-ctrl-c-ctrl-c): added documentation of code block
  evaluation behavior

* lisp/babel/ob-keys.el (org-babel-key-bindings): adding keybindings
  for executing code blocks and for opening their results
lisp/babel/ob-keys.el
lisp/babel/ob.el
lisp/org.el