Both #8998 and #8999 report inifinite loop with abbrev mode.

See the analysis at the bottom of #8998 for the cause of this problem.