在每个 .tex
文件中,当我键入A
(shift a) 以接受一个新单词时,我会Wrong type argument: sequencep, 1
在 minibuffer 或消息缓冲区中收到错误消息:
ispell-add-per-file-word-list: Wrong type argument: sequencep, 1
如果我在文件底部添加类似于以下内容的行:
% LocalWords: hello
我可以(A)接受有限数量的单词,大体上最多 50 个新单词字符,直到行尾。然后我再次得到同样的错误。如果我像前面一样添加另一行,因此:
% LocalWords: hello <words added by ispell ...>
% LocalWords: again
我可以再继续到行尾。此后错误再次显示。
至于我的初始化文件,我有这些看似无辜的行:
(setenv "DICPATH" (concat exec-directory "../hunspell/dict"))
(setq-default ispell-program-name
(concat exec-directory "../hunspell/hunspell.exe"))
(setq ispell-extra-args '("-t"))
(setq ispell-local-dictionary-alist
'(
(nil "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-d" "en_US") nil utf-8)
("english" "[A-Za-z]" "[^A-Za-z]" "['.]" nil ("-d" "en_GB") nil utf-8)
("italian"
"[A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]"
"[^A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]"
"[-.]" nil ("-d" "it_IT") nil iso-8859-1)
))
总而言之,每当需要开始本地文件字典的新行时,ispell-add-per-file-word-list
都会遇到麻烦。