CPU pegs to 100%, can't do anything in emacs, C-g etc no keys work. Have to kill emacs. GNU Emacs 25.2.1 Steps to reproduce: emacs -Q emacs-flyspell-hang.xml [file contents at end of this email] M-x flyspell-mode Status line shows: (nXML Valid Fly) When I cut or copy the line in the comment (see comments in attached XML) C-k [line with and C-y Which should paste that text, but instead, it just hangs, and emacs CPU usage goes to 100%. emacs does not respond to any keys, have to kill it. If not using flyspell-mode, it all works fine. Not sure if the bug system handles attachments, so sending the body of the file in this email: File emacs-flyspell-hang.xml: