【问题标题】:Strange behaviour when compiling auctex from MELPA in Emacs (w32 version) in Cygwin在 Cygwin 的 Emacs(w32 版本)中从 MELPA 编译 auctex 时出现奇怪的行为
【发布时间】:2015-04-27 02:31:18
【问题描述】:

我试图从 Emacs MELPA 编译 auctex。版本为:11.88.4

当我第一次打开一个 .tex 文件,编译 AUCTEX,并更改为“TeX-latex-mode”时,Emacs 将正常工作,菜单栏也更改为 Latex 状态。

但是,当我关闭 Emacs,再次重启 Emacs 并打开一个 .tex 文件时,Emacs 会给出:

Debugger entered--Lisp error: (error "Autoloading failed to define function TeX-latex-mode")

而 auctex 将不起作用...

似乎问题在于初始化 tex 文件的 auctex 时自动加载某些状态。

有什么帮助吗?

【问题讨论】:

  • 这个函数位于latex.ellocate-library latex 找到了吗?
  • 这就是问题所在。在我编译 auctex 后,该命令给出了正确的位置,“~/.emacs.d/elpa/auctex-11.88.4/latex.elc。”但是一旦我再次关闭并重新打开 Emacs,它就会给出错误的位置——我定义自己的 lisp 的文件夹。我该怎么办?
  • 听起来像是load-path 问题。你在你的init文件中设置了吗?或者也许一些初始化需要延迟到包加载后......你的 emacs 版本是什么?
  • 24.5.我有 (add-to-list 'load-path' "~/.emacs.d/x_lisp/") 之类的东西,但这不应该影响 auctex,不是吗?
  • 你有其他的包加载和工作吗?

标签: emacs auctex


【解决方案1】:

问题解决了!我的错。

我将 init.el 模块化并将 LaTeX 设置分离为 latex.el,这与 auctex 中的 latex.el 冲突。

我将文件重命名为latex_settings,一切正常。 (一个小警告,没有 'tex-start-shell' 的文档字符串,但这很好。)

【讨论】:

    猜你喜欢
    • 2013-02-25
    • 2013-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多