比如下列代码块
我要用命令注释掉这一行时,会出错:
Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 2) 3)
org-edit-src-code(nil nil nil)
org-comment-or-uncomment-region(2485 2499 nil)
comment-region(2485 2499 nil)
comment-or-uncomment-region(2485 2499)
evilnc--working-on-region(2485 2499 comment-or-uncomment-region)
evilnc--comment-or-uncomment-region(2485 2499)
(lambda (b e) (evilnc--fix-buggy-major-modes) (evilnc--comment-or-uncomment-region b e))(2485 2499)
evilnc--operation-on-lines-or-region((lambda (b e) (evilnc--fix-buggy-major-modes) (evilnc--comment-or-uncomment-region b e)) 1)
evilnc-comment-or-uncomment-lines(1)
(let ((evilnc-invert-comment-line-by-line nil)) (evilnc-comment-or-uncomment-lines arg))
spacemacs/comment-or-uncomment-lines(1)
funcall-interactively(spacemacs/comment-or-uncomment-lines 1)
call-interactively(spacemacs/comment-or-uncomment-lines nil nil)
command-execute(spacemacs/comment-or-uncomment-lines)
直接运行这一句也会出错:
(org-comment-or-uncomment-region 2485 2499 nil)
其中 2485 和 2499 分别是这一行的行首和行尾 pos
在邮件组的同学帮忙把这个问题反映给 org 开发者吧,谢谢!