简体   繁体   English

在Cygwin中从Emacs(w32版本)中的MELPA编译auctex时出现奇怪的行为

[英]Strange behaviour when compiling auctex from MELPA in Emacs (w32 version) in Cygwin

I tried to compile the auctex from Emacs MELPA. 我试图从Emacs MELPA编译auctex。 The version is: 11.88.4 版本是:11.88.4

When I first open a .tex file, compile AUCTEX, and change to "TeX-latex-mode", Emacs will work properly, the menu bar also change to latex state. 当我第一次打开.tex文件,编译AUCTEX并更改为“ TeX-latex-mode”时,Emacs将正常运行,菜单栏也将更改为乳胶状态。

However, when I close Emacs, restart Emacs again and open a .tex file, Emacs will give: 但是,当我关闭Emacs时,再次重新启动Emacs并打开一个.tex文件,Emacs将给出:

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

And auctex will not work... 而且auctex将不起作用...

It seems the problem is in autoloading certain state when initialize the auctex for a tex file. 似乎问题是在初始化tex文件的auctex时自动加载某些状态。

Any help? 有什么帮助吗?

Problem Solved! 问题解决了! My mistake. 我的错。

I modularised my init.el and separated the LaTeX settings to latex.el , which conflict with the latex.el in auctex. 我将init.el模块化,并将LaTeX设置分离为latex.el ,这与auctex中的latex.el冲突。

I renamed the file to latex_settings and everyting works fine. 我将文件重命名为latex_settings并且latex_settings正常。 (A small warning that no docstring for 'tex-start-shell', but that's fine.) (一个小的警告,即“ tex-start-shell”没有文档字符串,但这很好。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM