Also sprach Michael Gerz: > Wouldn't it be enough to just run > > command-sequence math-mode on; math-insert \textipa
No. You have to explicitely enter textmode. Read http://wiki.lyx.org/LyX/LinguistLyX#toc2 for details. The char-forward is needed to move the cursor inside. Jürgen