繁体   English   中英

在Emacs 23中使用package-install安装python-mode时出现错误

[英]Errors when installing python-mode using package-install in emacs 23

我正在科学linux上运行emacs 23。 我正在尝试使python-mode工作,但是当我尝试通过package-install [RET] -python-mode安装它时,会收到一长串警告,从以下内容开始:

Leaving directory `/home/umroot/.emacs.d/elpa/python-mode-20150909.2301'

Compiling file /home/umroot/.emacs.d/elpa/python-mode-20150909.2301/python-mode.el at Tue Sep 29 11:08:29 2015

Entering directory `/home/umroot/.emacs.d/elpa/python-mode-20150909.2301/'
python-mode.el:2315:7:Warning: variable assignment to constant
    `py-block-closing-keywords-re'

并以

In py-complete-initialize:
pycomplete.el:413:9:Warning: reference to free variable
    `py-set-complete-keymap-p'
pycomplete.el:423:11:Warning: assignment to free variable `ac-sources'
pycomplete.el:430:32:Warning: assignment to free variable `company-backends'
pycomplete.el:434:17:Warning: reference to free variable `python-mode-map'

In end of data:
pycomplete.el:437:1:Warning: the following functions are not known to be defined: pymacs-load,
    py-backward-def, py-backward-class, pycomplete-pycompletions,
    pycomplete-pydocstring, pycomplete-pyhelp,
    pycomplete-pysignature, pycomplete-pylocation,
    pycomplete-pyparse

我不知道这里还有什么其他意义。 我正在为蟒蛇使用Anaconda。

python-mode.el在每次提交/上传之前都要经过测试。 到目前为止,还没有已知的关键错误。

尽管如此,将看如何减少警告。 的情况下

python-mode.el:2315:7:警告:将变量分配给常量

`py-block-closing-keywords-re'

例如,使用“ defvar”而不是“ defconst”应使其消失。

感谢报告。

暂无
暂无

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

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