Juan Manuel Macías <maciasch...@posteo.net> writes: > My first approach was actually to define some options for > org-babel-process-comment. But I noticed that a header with properties, > for example: > ... > > I think the culprit is the '(match-end 0)' in > org-babel-tangle-single-block: > > ... > (org-back-to-heading t) ; Sets match data > (match-end 0)) ;; <========= > (error (point-min)))
I think that the existing code can be improved. Relying on the undocumented behavior of (org-back-to-heading) is not ideal. Not to mention code blocks before first headline. It would be great if you rewrite the existing code to suite both the defaults and the proposed behavior. Best, Ihor