From b16086d9af92e8b1865f53d984e675ef2c5b3db9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 7 Sep 2017 17:43:32 +0200 Subject: [PATCH] Fix `org-confirm-babel-evaluate' with `org-sbe' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/ob-core.el (org-babel-check-confirm-evaluate): Do not move point, as it is neither necessary nor expected by `org-babel-check-confirm-evaluate'. Reported-by: Alex Bennée http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00167.html --- lisp/ob-core.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index b1fd5ff4a..00f968a0a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -241,11 +241,9 @@ should be asked whether to allow evaluation." (query (or (equal eval "query") (and export (equal eval "query-export")) (if (functionp org-confirm-babel-evaluate) - (save-excursion - (goto-char (nth 5 info)) - (funcall org-confirm-babel-evaluate - ;; language, code block body - (nth 0 info) (nth 1 info))) + (funcall org-confirm-babel-evaluate + ;; Language, code block body. + (nth 0 info) (nth 1 info)) org-confirm-babel-evaluate)))) (cond (noeval nil)