ob-async icon indicating copy to clipboard operation
ob-async copied to clipboard

Fix invalid read syntax error when result overlays are hidden

Open spacebat opened this issue 3 years ago • 3 comments

Prevent org-babel-hide-result-overlays from being inherited by the async process, because overlays are not readable and lead to the following error:

if: Invalid read syntax: "#"

See commit message.

spacebat avatar Nov 12 '20 05:11 spacebat

Thanks for this pr which help me finding out the problem , "'error in process sentinel: async-handle-result: Invalid read syntax: "#"' . But I don't think hiding org-babel-hide-result-overlays is enough, because other variable may cause same phenomenon. Maybe we could wrap async-inject-variables to prevent passing buffer syntax i.e #<buffer scratch>, to closure ? Besides i wonder if it's valid to inject buffer object.

f4nyc avatar Dec 22 '20 13:12 f4nyc

Turns out setting ,(async-inject-variables "\\borg-babel.+" nil "^org-babel-jupyter") also fixes nnicandro/emacs-jupyter/issues/294

malb avatar Mar 06 '21 15:03 malb

Great catch, I was also struggling with this and failed to find a solution until I noticed this PR.

ErkiDerLoony avatar May 05 '21 13:05 ErkiDerLoony