mlf176f2/fold-dwim-org — pull request #5 by ThibautVerron (2013-11-19 13:50:38+00:00)
Title: Outline and TeX-fold for latex-mode

Hello,

This is an attempt at getting outline and tex to work with fold-dwim.

Outline seems to be working, but indentation gets in the way when testing if the folding is really strict in outline-mode. Outline-minor-mode (for example in latex) seems to be working fine.

LaTeX is working, but I disabled folding of macros when using strict mode, as it would make little sense.
Context is even more of a pain, because fold-dwim-auctex-env-or-macro returns 'macro, when on a starting line. I'm not familiar enough with ConTeXt syntax to know if moving the point further around wouldn't break things.

I couldn't test texinfo because for some reason, indentation gets in the way. In doubt, I kept the fallback behavior.
I couldn't figure out a way to approach the problem for tex.