Avoid CEDET 2.0 for CEDET 1.1 on emacs 24.3

I tried to install cedet 1.1 on emacs but when I init cedet this error occur. How to unload CEDET Version 2.0 and load CEDET 1.1? I used Ubuntu 12.04 or Fedora 19.

Warning (initialization): An error occurred while loading `/home/robin/.emacs':

error: CEDET Version 2.0 already loaded.

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

This is my initialization in my .emacs

(add-to-list 'load-path "~/.emacs.d/cedet-1.1/")
(load-file "~/.emacs.d/cedet-1.1/common/cedet.el")
(setq semantic-load-turn-useful-things-on t)
(global-ede-mode 1)
(global-srecode-minor-mode 1)
(semantic-mode 1)

(require 'semantic/ia)

You just need to load CEDET 1.1 as first package in your Emacs initialization file - before loading any package. Please, take into account, that on some Linuxes, some system-wide packages are loaded & they could load CEDET 2.0 before loading your initialization file.


Rather than using an old version of CEDET, you could try finding the equivalent functionality for CEDET 2.0.

I think in this case, it is a matter of changing

(require 'semantic-make)

to

(require 'semantic/bovine/make)

链接地址: http://www.djcxy.com/p/44858.html

上一篇: CEDET与Emacs 24.5兼容

下一篇: 在emacs 24.3上避免CEDET 2.0 for CEDET 1.1