Daniel Fleischer writes: > I just found this thread after math-related things stopped working. I > have two use cases that don't work now: > > 1. Inserting a dollar pair $$ using `cdlatex-dollar` (it thinks we're > inside a math environment). > > 2. Inserting of cdlatex environments using their built-in completions, e.g. > ali > eqn > stopped working. Thanks for reporting! So, the docstring was erroneous at the end. Can you try to test the attached patch?