ob-core: refactor org-babel-confirm-evaluate, do not confirm evaluation if cache...
commitbe0883940d9fdb379d02a545c9a0d67f06b38ea1
authorAchim Gratz <Stromeko@Stromeko.DE>
Sat, 9 Mar 2013 00:34:09 +0000 (9 01:34 +0100)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sat, 9 Mar 2013 20:33:19 +0000 (9 21:33 +0100)
tree9d624ec3c6f63fd0e780ae0442b682e16139d1bb
parent5fe486807e618029dda041300855ef6e3c6a7626
ob-core: refactor org-babel-confirm-evaluate, do not confirm evaluation if cache is current

* lisp/ob-core.el (org-babel-check-confirm-evaluate): New macro to
  establish bindings based on INFO.
* lisp/ob-core.el (org-babel-check-evaluate): New defsubst that checks
  if the evaluation of a code block is disabled.  Refactors the first
  part of the original function `org-babel-confirm-evaluateĀ“.
* lisp/ob-core.el (org-babel-confirm-evaluate): New defsubst that
  checks if the user should be queried and returns the answer.  Keeps
  the second part of the original function `org-babel-confirm-evaluateĀ“.
* lisp/ob-core.el (org-babel-execute-src-block): Do not ask for
  confirmation if the cached result is current.
lisp/ob-core.el