Well, now I do have found a bug ;). It's related to the limit issue I mentioned before. Indeed the problem with rehighlighting broken environments and highlighting new environments also happens for basic latex fontification when org-highlight-latex-and-related is set to '(latex), it has nothing to do with my modification in order to call org-src-font-lock-fontify-block. It seems that once you break the multiline structure (for example, by putting a space between "be" and "gin") org mode syntax highlighter is unable to identify it again once recomposed. More generally, it's unable to identify environments entered after the initial loading of the file into the buffer, being them slight "repairments" of previously existing ones or just brand new environments. Of course, systematically ignoring the search bound is not the right solution. I think some kind of region extension function is missing here.
- [O] Bug: Add option to fontify latex blocks [9.1.9 (releas... Carlos Pita
- Re: [O] Bug: Add option to fontify latex blocks [9.1.... Carlos Pita
- Re: [O] Bug: Add option to fontify latex blocks [... Nicolas Goaziou
- Re: [O] Bug: Add option to fontify latex bloc... Carlos Pita
- Re: [O] Bug: Add option to fontify latex ... Carlos Pita
- Re: [O] Bug: Add option to fontify l... Carlos Pita
- Re: [O] Bug: Add option to fontify latex ... Nicolas Goaziou
- Re: [O] Bug: Add option to fontify l... Carlos Pita
- Re: [O] Bug: Add option to fonti... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Nicolas Goaziou
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Carlos Pita
- Re: [O] Bug: Add option to f... Nicolas Goaziou