这是Emacs在抱怨什么。我偶尔会遇到这个错误,但我刚刚接触Emacs世界,对C也不是很熟悉。现在,Emacs阻止我继续编码,甚至不让我打开括号?这个错误是什么意思?
编辑: 我的Emacs版本:
我的调试信息:
编辑: 我的Emacs版本:
我的调试信息:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p (1953 . 3706))
c-looking-at-inexpr-block((1953 . 3706) (1953 . 3706))
c-inside-bracelist-p(3742 ((1953 . 3706) (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 9156 (9046 . 9137) 3742 (1953 . 3706) 9156 (9046 . 9137) 3742 (1953 . 3706) 9156 (9046 . 9137) 3742 (1953 . 3706) 9156 (9046 . 9137) 3742 (1953 . 3706) 9156 (9046 . 9137) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) 3742 (1953 . 3706) ...))
c-guess-basic-syntax()
c-indent-line()
indent-according-to-mode()
c-electric-continued-statement()
abbrev-insert(while #("while" 0 5 (fontified t face font-lock-keyword-face)) 9785 9790)
#[0 "\304 \211@A\211@A\211@A\211@A\n\211\205Q\305`\306\"\305\306\"\2042\307\310 !\2042\311 \210\312 $V\203O`U\203Ob\210\266\202\266\204\207" [noninteractive last-abbrev-text last-abbrev last-abbrev-location abbrev--before-point copy-marker t window-minibuffer-p selected-window undo-boundary abbrev-insert] 20 "\n\n(fn)"]()
apply(#[0 "\304 \211@A\211@A\211@A\211@A\n\211\205Q\305`\306\"\305\306\"\2042\307\310 !\2042\311 \210\312 $V\203O`U\203Ob\210\266\202\266\204\207" [noninteractive last-abbrev-text last-abbrev last-abbrev-location abbrev--before-point copy-marker t window-minibuffer-p selected-window undo-boundary abbrev-insert] 20 "\n\n(fn)"] nil)
#[771 ":\2030@\301=\203\300@\302A\"\303#\207\304@\305\306\307\310\311\312\300!\313\"\314\315%A##\207\304\316\"\207" [(#0) t append nil apply apply-partially make-byte-code 642 "\300@#\207" vconcat vector [] 7 "\n\n(fn FUNS GLOBAL &rest ARGS)" #[0 "\304 \211@A\211@A\211@A\211@A\n\211\205Q\305`\306\"\305\306\"\2042\307\310 !\2042\311 \210\312 $V\203O`U\203Ob\210\266\202\266\204\207" [noninteractive last-abbrev-text last-abbrev last-abbrev-location abbrev--before-point copy-marker t window-minibuffer-p selected-window undo-boundary abbrev-insert] 20 "\n\n(fn)"]] 12 "\n\n(fn FUNS GLOBAL ARGS)"](nil nil nil)
expand-abbrev()
self-insert-command(1)
c-electric-paren(nil)
call-interactively(c-electric-paren nil nil)
c-inside-bracelist-p
中的一个错误,或者生成了无效的paren-state
。paren-state
元素可以是cons单元格,虽然其中一些代码已经考虑到了这一点,但是调用c-looking-at-inexpr-block
的参数仅为(car paren-state)
,这可能不是整数,但随后被用作整数(因此出现错误)。我不知道在paren-state
中连续有两个cons单元格是否有效,但这就是导致错误的情况。 - philsM-x report-emacs-bug
。 - philsemacs -q
)。发布图片很少有帮助。 - abo-abo