2016-12-16 15:34 GMT+01:00 Denis Bitouzé <dbito...@wanadoo.fr>: > I see. So you meant `myenv' instead of `foo', don't you?
Yes, I didn't look back to the name of the environment ;-) > Anyway, regarding your explanation, I couldn't see the point with the > `\' before `\|myenv' in: > > ┌──── > │ (setq LaTeX-document-regexp "document\\|myenv") > └──── The plain regexp would actually be document\|myenv but in Lisp code you have to escape the backslash, so you should use document\\|myenv See https://www.emacswiki.org/emacs/RegularExpression#RegexpsInEmacs Bye, Mosè _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex