簡體   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