在每个.tex文件中,当我键入A (shift a)接受一个新词时,我在微型缓冲区或消息缓冲区中收到错误消息Wrong type argument: sequencep, 1:
ispell-add-per-file-word-list: Wrong type argument: sequencep, 1如果我在文件的底部添加类似以下内容的行:
% LocalWords: hello我得到了can (A),除了有限数量的单词,基本上是50个字符的新单词,也就是到行尾为止。然后我又得到了同样的错误。如果我像前一行一样添加另一行,则:
% LocalWords: hello <words added by ispell ...>
% LocalWords: again 我可以再走一遍直到队伍的尽头。此后,错误再次显示。
至于我的init文件,我有以下几行明显没有问题的代码:
(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就会遇到麻烦。
发布于 2014-03-13 03:39:49
This suggested workaround帮我解决了这个问题。为了给后人摘录,解决方法是将以下代码添加到Emacs启动代码中:
(add-hook 'TeX-mode-hook #'(lambda ()
(setq-local comment-padding " ")))根本原因是has subsequently been fixed的Emacs bug。所以这个问题应该在Emacs 24.4和更高版本中完全消失。
https://stackoverflow.com/questions/17002686
复制相似问题