emacs打开python文件(600行左右)非常卡顿、
参考了之前的帖子还是不知道怎么处理,求助。
环境:emacs25+UBuntu16
profiler-start, profiler-report得到:
emacs打开python文件(600行左右)非常卡顿、
参考了之前的帖子还是不知道怎么处理,求助。
环境:emacs25+UBuntu16
profiler-start, profiler-report得到:
目前注释了
show-paren-function@fix-show-paren-function
的内容,勉强能用,不知道还有其他结局方案?
升级到Emacs26+
谢谢你的回复,试了Emacs26.1,但是还是一样的问题:frowning_face:
你把show-paren-mode
关了试试呢
目前来看,只能把这个关了,sign,不过还是很感谢!
我也碰到这个问题了,确实是把这段代码注释了就好了,奇怪啊,难道是效率问题?
(define-advice show-paren-function (:around (fn) fix-show-paren-function)
"Highlight enclosing parens."
(cond ((looking-at-p "\\s(") (funcall fn))
(t (save-excursion
(ignore-errors (backward-up-list))
(funcall fn)))))
估计是 backward-up-list 太慢,可以改用 emacs 29 引入的 python-ts-mode