I try to comments 1.4K+ lines in a C++ function by using M-;
or rectangle insert string //
.
Wait for several minutes, Emacs still no respond. I have to kill Emacs.
In this case, how could I locate what cause the Emacs use 100% CPU and looks like do nothing?
Emacs: 25.0
OS: Ubuntu 14.04
M-x comment-region
(after activating the region) instead ofM-;
? If not, then use it. – Drew Aug 11 '15 at 14:31