See that question: https://emacs.stackexchange.com/questions/36423/emacs-hangs-on-c-mode-when-writting-the-character I was looking at cc-engine.el source code but it was impossible to me to find anything.