ob-core: fix regression when org-confirm-babel-evaluate is a functionp
commit8cf4ceb30488b07817c5debbd0fbdb0e081f1fef
authorAchim Gratz <Stromeko@Stromeko.DE>
Mon, 1 Jul 2013 20:19:54 +0000 (1 22:19 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Mon, 1 Jul 2013 20:20:48 +0000 (1 22:20 +0200)
treeaa38e2f710fcfd03134975237ec9ce5595fbb192
parent79ce6174fd79f07562bfb3480fde9312a9c3912f
ob-core: fix regression when org-confirm-babel-evaluate is a functionp

* lisp/ob-core.el (org-babel-check-confirm-evaluate): Return result of
  evaluating the function pointed to by`org-confirm-babel-evaluate'
  when it is a functionp and its value as a variable otherwise.

This fixes a regression introduced in 5fe486807e and restores the fix
applied earlier in 8d272b0d3b (and then replaced by a cond form in
ece347e32c, which later got factored out again).
lisp/ob-core.el