redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.41k stars 616 forks source link

Emacs shell mode 下光标在单引号后卡顿的问题 #1001

Open zuoshifan opened 2 years ago

zuoshifan commented 2 years ago

M-x shell 进入 shell-mode 后,可以正常地输入和执行 shell 命令,但是经常遇到的一个问题是当光标移动到一个单引号(')之后的时候 Emacs 就会卡住,CPU 使用率也会急剧升高,有时通过多次 C-g 可以将 Emacs 从卡顿中挽救回来,有时候却不行,Emacs 完全卡死,无法进行任何操作,只能强制退出。不知道这是什么原因导致的,有没有其他人遇到同样的问题?

redguardtoo commented 2 years ago

See https://ianyepan.github.io/posts/emacs-profiling/ Try M-x profile-start to ping down the problem.