emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Table (used a "spreadsheet") org-sbe issues when the value is a


From: Nicolas Goaziou
Subject: Re: [O] Table (used a "spreadsheet") org-sbe issues when the value is a string
Date: Thu, 07 Sep 2017 18:04:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Alex Bennée <address@hidden> writes:

> So more correctly when org-confirm-babel-evaluate is set it breaks due
> to info not containing a character position for the TBLFM code. I fixed
> this by patching org-babel-check-confirm-evaluate:
>
> modified   lisp/ob-core.el
> @@ -242,7 +242,8 @@ should be asked whether to allow evaluation."
>                   (and export (equal eval "query-export"))
>                   (if (functionp org-confirm-babel-evaluate)
>                       (save-excursion
> -                       (goto-char (nth 5 info))
> +                       (when (nth 5 info)
> +                         (goto-char (nth 5 info)))
>                         (funcall org-confirm-babel-evaluate
>                                  ;; language, code block body
>                                  (nth 0 info) (nth 1 info)))
>
> I'm not sure the goto-char is legitimate anyway as the documentation for
> org-confirm-babel-evaluate says nothing about point being set while it
> executes.

I agree and removed `goto-char'. Thank you for the analysis and the
patch.

Regards,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]