Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> It seems you’re mixing inline source blocks and LaTeX fragment. You
> modified the former, but not the latter.

Ooops, I’ll fix that.

>> + (lambda () ; trim content
>> + (goto-char (point-min))
>
> This is not needed. The function is always called at `point-min’.

Got it :)

>> + (skip-chars-forward “ \t”)
>> + (delete-region (point-min) (point))
>> + (goto-char (point-max))
>> + (skip-chars-backward “ \t”)
>> + (delete-region (point) (point-max))))
>
> I’m not sure this clean-up is necessary. Is it?

What cleanup? I just took this from org-edit-inline-src-code.