2012-07-02 31 views
3

我下載並編譯了CEDET的開發分支,我根據網頁上的指南加載它,但是當我啓動Emacs時,我得到EIEIO(bzr,cedet 1.1)不加載emacs,版本1.3已經加載

error: EIEIO Version 1.3 already loaded; load CEDET at the beginning of your init file to avoid this.

這是字面上我的.emacs在〜/的.emacs第一行:

(load-file "~/.emacs.d/cedet/common/cedet.el") 
(semantic-load-enable-excessive-code-helpers) 

(global-ede-mode t) 

(require 'semantic-ia) 
(require 'semantic-gcc) 
(require 'semanticdb) 

我認真看不出有什麼不好。我也是一個Emacs新手:P感謝您的幫助。 乾杯

回答

3

IMO錯誤是自我描述。將您的代碼片段放置在.emacs

當前加載的開發版本有點不同。這是我的.emacs文件的相關部分。 (因此,CEDET的變化路徑)

(unless (featurep 'cedet) 
    (when (file-directory-p "~/.emacs.d/el-get/cedet") 
    (progn 
     (add-to-list 'load-path "~/.emacs.d/el-get/cedet") 
     (load-file "~/.emacs.d/el-get/cedet/cedet-devel-load.el")))) 

;;; ede 
(setq semantic-default-submodes 
     '(;; cache(?) 
     global-semanticdb-minor-mode 

     global-semantic-highlight-edits-mode 
     global-semantic-idle-local-symbol-highlight-mode 
     ;; global-cedet-m3-minor-mode 

     ;; code helpers 
     global-semantic-idle-scheduler-mode 
     global-semantic-idle-summary-mode 
     global-semantic-idle-completions-mode 

     ;; eye candy 
     global-semantic-decoration-mode 
     global-semantic-highlight-func-mode 
     global-semantic-highlight-edits-mode 
     global-semantic-stickyfunc-mode 

     ;; debugging semantic itself 
     ;;global-semantic-show-parser-state-mode 1 ;; show the parsing state in the mode line 
     ;;global-semantic-show-unmatched-syntax-mode 1 
     )) 

(global-ede-mode 1) 
+0

感謝您的答覆,但事情是那些線是從字面上對我的.emacs上方的第一批 –

+0

嗯..你怎麼會在第一時間安裝的Emacs 。?在site-lisp中是否安裝了任何導致eieio加載的軟件包? – kindahero

+0

我有一個emacs 24.1的快照,我認爲CEDET已經與它捆綁在一起了,除此之外,我有emacs-goodies。如何檢查誰在加載eieio?它仍然不應該加載.emacs的第一行之前,它應該嗎? /: –