fixed bug causing extra prompt in ob-confirm-evaluate in some cases
* lisp/ob.el (org-babel-confirm-evaluate): fixed bug causing extra prompt in ob-confirm-evaluate in some cases
This commit is contained in:
parent
eb0068e9cd
commit
8d272b0d3b
|
@ -180,10 +180,10 @@ of potentially harmful code."
|
||||||
(let* ((eval (or (cdr (assoc :eval (nth 2 info)))
|
(let* ((eval (or (cdr (assoc :eval (nth 2 info)))
|
||||||
(when (assoc :noeval (nth 2 info)) "no")))
|
(when (assoc :noeval (nth 2 info)) "no")))
|
||||||
(query (or (equal eval "query")
|
(query (or (equal eval "query")
|
||||||
(and (functionp org-confirm-babel-evaluate)
|
(if (functionp org-confirm-babel-evaluate)
|
||||||
(funcall org-confirm-babel-evaluate
|
(funcall org-confirm-babel-evaluate
|
||||||
(nth 0 info) (nth 1 info)))
|
(nth 0 info) (nth 1 info))
|
||||||
org-confirm-babel-evaluate)))
|
org-confirm-babel-evaluate))))
|
||||||
(if (or (equal eval "never") (equal eval "no")
|
(if (or (equal eval "never") (equal eval "no")
|
||||||
(and query
|
(and query
|
||||||
(not (yes-or-no-p
|
(not (yes-or-no-p
|
||||||
|
|
Loading…
Reference in New Issue