Ihor Radchenko writes: > This is not a problem. We can just apply appropriate 'display property > in `org-src-font-lock-fontify-block', manually replacing the tab with > appropriate number of spaces (as in the origin buffer). Ok, that works, thanks. Here are two patches, the first that removes the special case logic for LaTeX fragments, and the second that implements what you suggest, and applies on top of the first one. Does that look ok to you ? NB: Calling newline-and-indent from the middle of a line is currently broken, but that has nothing to do with this change. -- Sébastien Miquel