在emacs 23中使用package-install安装python-mode时出错

时间:2015-09-29 15:17:06

标签: emacs

我在tech linux上运行emacs 23。我试图让python模式工作,但当我尝试通过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。

1 个答案:

答案 0 :(得分:0)

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

尽管如此,还是会看看如何减少警告。在

的情况下

python-mode.el:2315:7:警告:变量赋值给常量

`py-block-closing-keywords-re'

例如使用“defvar”而不是“defconst”应该让它消失。

感谢报道。