Le 16/12/16 à 15h25, Mosè Giordano a écrit : > 2016-12-16 15:17 GMT+01:00 Denis Bitouzé <[email protected]>: >> But what's the point with `\\|foo'? AFAICS: >> >> ┌──── >> │ (setq LaTeX-document-regexp "myenv") >> └──── >> >> does the trick as well. > > \(a\|b\) > > matches "a" or "b" (but in the variable you don't need to put the > outer parentheses, and you have to double escape the backslash), you > have to include both "document" and "myenv" in order to indent both in > the same way. With your setting I'm not sure the "document" > environment will be indented correctly.
I see. So you meant `myenv' instead of `foo', don't you? Anyway, regarding your explanation, I couldn't see the point with the `\' before `\|myenv' in: ┌──── │ (setq LaTeX-document-regexp "document\\|myenv") └──── -- Denis _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
