首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >emacs ispell在乳胶引号上断裂

emacs ispell在乳胶引号上断裂
EN

Stack Overflow用户
提问于 2013-12-16 12:38:52
回答 1查看 204关注 0票数 4

我的emacs "ispell“命令在点击emacs乳胶缓冲区中引用的部分(我使用的是AucTEX)时中断。使用我以前的emacs/Linux发行版,它没有这个问题。示例:

代码语言:javascript
复制
as you like to say, vbfs ``You won't know what to do with yourself.''

正确运行M-x ispell标记vbfs。然而,

代码语言:javascript
复制
as you like to say, ``You won't know what to do with yourself.'' vbfs

不注册任何错误。此外,一旦它被击中,引用的部分文本,似乎是跳过其余的文档。是什么导致的?作为参考,这里是我的ispell-tex-skip-alists var:

代码语言:javascript
复制
((("\\\\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上运行GNU 24.3.1 (x86_64-redhat-linux-gnu,GTK+ 3.8.2版)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-21 23:50:26

我法术将一对引号传递给Hun拼写,这并不能应付它。我们可以通过以下建议来避免这种情况:

代码语言:javascript
复制
(defadvice ispell-send-string (before kill-quotes activate)
  (setq string (replace-regexp-in-string "''" "  " string)))

它用空格替换一对引号。这些空格是必需的,以避免不对齐.

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20611169

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档