NB: This problem seems to be limited to mma-mode (for Mathematica).
For example, suppose I define a snippet like this:
# key: test # name: test # -- $1 $1
Then, I test it (with
C-c C-t). After I type the first character (
x), my terminal looks like this (the
▮ indicates the position of the cursor).
Note that a couple of spurious spaces were added in front of the mirrored
This behavior continues with every additional keystroke, as long as mirroring is taking place:
It happens even if the keystroke is for a backspace:
As I said at the beginning, I see this problem only with mma-mode.
Now, mma-mode is not maintained, AFAICT. Therefore, the most I can hope for is some workaround.
Any ideas on how I could prevent the addition of spurious spaces before mirrors?