emacs ispell在乳胶引号上中断

emacs ispell在乳胶引号上中断,emacs,latex,auctex,hunspell,ispell,Emacs,Latex,Auctex,Hunspell,Ispell,我的emacs“ispell”命令运行hunspell,当它点击我的emacs latex缓冲区中引用的部分时(我使用的是AucTEX)就会中断。在我以前的emacs/Linux发行版中,它没有这个问题。例如: as you like to say, vbfs ``You won't know what to do with yourself.'' 运行M-x ispell可正确标记vbfs。但是, as you like to say, ``You won't know what to do

我的emacs“ispell”命令运行hunspell,当它点击我的emacs latex缓冲区中引用的部分时(我使用的是AucTEX)就会中断。在我以前的emacs/Linux发行版中,它没有这个问题。例如:

as you like to say, vbfs ``You won't know what to do with yourself.''
运行
M-x ispell
可正确标记vbfs。但是,

as you like to say, ``You won't know what to do with yourself.'' vbfs
不注册任何错误。此外,一旦点击了文本的引用部分,is似乎会跳过文档的其余部分。这是什么原因造成的?以下是我的
ispell-tex skip-alists
var,供参考:

((("\\\\addcontentsline" ispell-tex-arg-end 2)
  ("\\\\add\\(tocontents\\|vspace\\)" ispell-tex-arg-end)
  ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end)
  ("\\\\bibliographystyle" ispell-tex-arg-end)
  ("\\\\makebox" ispell-tex-arg-end 0)
  ("\\\\e?psfig" ispell-tex-arg-end)
  ("\\\\document\\(class\\|style\\)" . "\\\\begin[  \n]*{[  \n]*document[   \n]*}"))
 (("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0)
  ("list" ispell-tex-arg-end 2)
  ("program" . "\\\\end[    \n]*{[  \n]*program[    \n]*}")
  ("verbatim\\*?" . "\\\\end[   \n]*{[  \n]*verbatim\\*?[   \n]*}")))

在buildvm-15.phx2.fedoraproject.org上运行2013-08-14的GNU Emacs 24.3.1(x86_64-redhat-linux-GNU,GTK+版本3.8.2)时,Ispell会将一对引号传递给Hunspill,而Hunspill不会处理它。 我们可以通过以下建议避免这种情况:

(defadvice ispell发送字符串(在kill quotes激活之前)
(setq字符串(替换字符串“''”中的regexp)))

它用空格替换这对引号。需要空格以避免未对齐。

太棒了!我必须知道,你是怎么想出这个解决办法的?这些知识是从哪里来的,我怎样才能得到我之前已经做了一些关于这个问题的研究。我在工作中使用emacs来分析自动生成的程序输出。因此,我编写了相当多的特殊elisp代码。这样,就不可避免地要更加熟悉elisp。如果您在emacs elisp信息手册和软件包源代码的帮助下查看其他人的问题并进行调查,您将学到很多。在某些情况下,我写了一些代码作为答案,现在我自己使用它圣诞快乐,新年快乐@如果这个解决方案解决了你的问题,别忘了接受这个正确的解决方案。@Thomas明白了;回忆起我是如何登录这个网站的,我遇到了一些严重的问题。