2009-09-14 41 views
4

安裝的Clojure當我用EPL包管理器,並安裝Clojure的-mode.el V1.5我得到很多的警告和錯誤在Emacs

我在安裝的主要模式

In clojure-mode: 
clojure-mode.el:174:34:Warning: reference to free variable `paredit-mode' 
clojure-mode.el:174:51:Warning: reference to free variable `paredit-version' 

In clojure-font-lock-extend-region-def: 
clojure-mode.el:210:33:Warning: reference to free variable `font-lock-beg' 
clojure-mode.el:217:30:Warning: assignment to free variable `font-lock-beg' 
clojure-mode.el:218:33:Warning: reference to free variable `font-lock-end' 
clojure-mode.el:220:19:Warning: assignment to free variable `font-lock-end' 

In clojure-font-lock-extend-region-comment: 
clojure-mode.el:235:26:Warning: reference to free variable `font-lock-beg' 
clojure-mode.el:232:49:Warning: reference to free variable `font-lock-end' 
clojure-mode.el:236:17:Warning: assignment to free variable `font-lock-beg' 
clojure-mode.el:240:17:Warning: assignment to free variable `font-lock-end' 

In clojure-indent-function: 
clojure-mode.el:357:33:Warning: reference to free variable 
    `calculate-lisp-indent-last-sexp' 

In clojure-slime-config: 
clojure-mode.el:533:11:Warning: assignment to free variable 
    `swank-clojure-classpath' 

In end of data: 
clojure-mode.el:630:1:Warning: the following functions are not known to be defined: 
    imenu--generic-function, slime-setup, 
    swank-clojure-slime-mode-hook 
得到這些錯誤

然後,當我試圖爲MX Clojure的安裝,我得到

cannot find file cmdproxy.exe in the emac's bin folder. 

我不明白這是什麼意思。請幫幫我。我不想使用ClojureBox。

+0

有可能不是用emacs掛在這裏了太多的Clojure程序員 - 你可以嘗試Clojure的谷歌組:http://groups.google.com/group/clojure – 2009-09-14 15:44:11

回答

4

很可能您可以忽略編譯錯誤(這是您在第一個塊中報告的內容)。這些變量可能只有在適當的包被加載時纔會使用。

關於cmdproxy.exe錯誤,它看起來像你在Windows上運行。那是對的嗎? 該可執行文件應與Emacs可執行文件位於同一目錄中。如果不是,那麼你應該重新安裝Emacs。如果是在該目錄中,檢查變量exec-path的(通過鍵入C-h v exec-path RET)的值,以確保含有Emacs的可執行文件的目錄是在該exec-path

我在香草窗口中從Emacs運行子進程時遇到了問題(因爲我沒有安裝常用的可執行文件,例如diff)。所以我建議安裝Cygwin並從Cygwin shell運行Emacs。最顯着的原因是M-x clojure-install要求安裝git(如果您尚未安裝它)。