2013-12-07 50 views
0

我使用emacs 24.3devel的版本無法卸載emacs的一個

我從後備箱CEDET安裝Gentoo的版本...它克隆到〜/ .emacs.d /網站口齒不清/ CEDET-BZR(感謝Alex OTT),它加載了整個事情的cedet.el始於:

;; Do checkout of fresh CEDET, and use this config (don't forget to change path below) 
(setq cedet-root-path 
    (file-name-as-directory (expand-file-name 
     ~/.emacs.d/site-lisp/cedet-bzr/"))) 
    (add-to-list 'Info-directory-list 
     "~/.emacs.d/site-lisp/doc/info") 

要絕對肯定的缺乏在我的emacs配置的障礙,我搬到了.emacs文件並嘗試運行emacs與下面的init.el: (add-to-list'load-path「〜/ .emacs.d/config」) (load「cedet.el」) (add-to-list 'load-path(展開文件名稱 「〜/ .emacs.d /網站口齒不清/ ECB /」))

它給了我如下因素:

Debugger entered--Lisp error: (error "Cannot unload builtin CEDET since it is already loaded.") 
    signal(error ("Cannot unload builtin CEDET since it is already loaded.")) 
    error("Cannot unload builtin CEDET since it is already loaded.") 
    (progn (error "Cannot unload builtin CEDET since it is already loaded.")) 
    (if (featurep (quote cedet)) (progn (error "Cannot unload builtin CEDET since it is already loaded."))) 
    cedet-remove-builtin() 
    eval-buffer(#<buffer *load*-732142> nil "/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-remove-builtin.el" nil t) ; Reading at buffer position 2476 
    load-with-code-conversion("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-remove-builtin.el" "/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-remove-builtin.el" nil nil) 
    load("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-remove-builtin.el" nil nil t) 
    load-file("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-remove-builtin.el") 
    (if (boundp (quote cedet-bootstrap-in-progress)) nil (load-file (expand-file-name "cedet-remove-builtin.el" CEDETDIR))) 
    (let ((CEDETDIR (file-name-directory (or load-file-name (buffer-file-name))))) (if (boundp (quote cedet-bootstrap-in-progress)) nil (load-file (expand-file-name "cedet-remove-builtin.el" CEDETDIR))) (add-to-list (quote load-path) CEDETDIR) (add-to-list (quote load-path) (expand-file-name "lisp/cedet" CEDETDIR)) (add-to-list (quote load-path) (expand-file-name "lisp/eieio" CEDETDIR)) (add-to-list (quote load-path) (expand-file-name "lisp/speedbar" CEDETDIR)) (require (quote eieio)) (require (quote ede)) (if (boundp (quote cedet-bootstrap-in-progress)) nil (message "Loading autoloads from CEDET development.") (load (expand-file-name "lisp/eieio/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/speedbar/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/cedet/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/cedet/ede/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/cedet/cogre/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/cedet/srecode/loaddefs.el" CEDETDIR) nil t t) (load (expand-file-name "lisp/cedet/semantic/loaddefs.el" CEDETDIR) nil t t) (setq Info-directory-list (cons (expand-file-name "doc/info" CEDETDIR) Info-default-directory-list))) (require (quote cedet-compat))) 
    eval-buffer(#<buffer *load*-120873> nil "/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-devel-load.el" nil t) ; Reading at buffer position 2893 
    load-with-code-conversion("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-devel-load.el" "/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-devel-load.el" nil nil) 
    load("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-devel-load.el" nil nil t) 
    load-file("/home/pasha/.emacs.d/site-lisp/cedet-bzr/cedet-devel-load.el") 
    eval-buffer(#<buffer *load*-946311> nil "/home/pasha/.emacs.d/config/cedet.el" nil t) ; Reading at buffer position 587 
    load-with-code-conversion("/home/pasha/.emacs.d/config/cedet.el" "/home/pasha/.emacs.d/config/cedet.el" nil nil) 
    load("cedet.el")`enter code here` 
    eval-buffer(#<buffer *load*> nil "/home/pasha/.emacs.d/init.el" nil t) ; Reading at buffer position 63 
    load-with-code-conversion("/home/pasha/.emacs.d/init.el" "/home/pasha/.emacs.d/init.el" t t) 
    load("/home/pasha/.emacs.d/init" t t) 
    #[0 "\205\262 

我應該執行什麼進一步的行動?

回答

1

你可以嘗試刪除附帶提供的emacs從load-path第一

(setq load-path (remove-if (lambda (x) (string-match-p "cedet" x)) load-path)) 

在​​CEDET然後添加新CEDET到load-path

+0

這對我來說,似乎都不清楚..'警告(初始化):發生錯誤而載入/home/pasha/.emacs': 錯誤:不能卸載內置CEDET,因爲它已經loaded.' 但隨着 - 調試初始化它在回溯中不給我任何東西! – pashazz

+0

http://pastebin.kde.org/p8iyzey7g是加載路徑變量 – pashazz

+0

它可能是其他一些軟件包中有來自CEDET的(某些)文件。您可以嘗試在加載路徑中的目錄中的文件中搜索'(提供'cedet)''。爲了增加安全性,您可以嘗試刪除原始CEDET。目錄。 –