(错误“Buffer * scratch *未设置用于解析”)

时间:2014-01-20 01:55:48

标签: emacs cedet

我正在努力在Emacs上启用CEDET(因此我可以通过自动完成等方式获得智能感知)并且我遇到了这个奇怪的错误:

Debugger entered--Lisp error: (error "Buffer *scratch* was not set up for parsing")
  signal(error ("Buffer *scratch* was not set up for parsing"))
  error("Buffer %s was not set up for parsing" "*scratch*")
  semantic-idle-summary-mode()
  eval-buffer(#<buffer  *load*-660706> nil "/home/jorge/.emacs.d/conf-modes/cedet.el" nil t)  ; Reading at buffer position 991
  load-with-code-conversion("/home/jorge/.emacs.d/conf-modes/cedet.el" "/home/jorge/.emacs.d/conf-modes/cedet.el" nil nil)
  load("/home/jorge/.emacs.d/conf-modes/cedet.el" nil nil t)
  load-file("~/.emacs.d/conf-modes/cedet.el")
  eval-buffer(#<buffer  *load*-280517> nil "/home/jorge/.emacs.d/varl.el" nil t)  ; Reading at buffer position 615
  load-with-code-conversion("/home/jorge/.emacs.d/varl.el" "/home/jorge/.emacs.d/varl.el" nil nil)
  load("/home/jorge/.emacs.d/varl.el" nil nil t)
  load-file("~/.emacs.d/varl.el")
  eval-buffer(#<buffer  *load*> nil "/home/jorge/.emacs" nil t)  ; Reading at buffer position 373
  load-with-code-conversion("/home/jorge/.emacs" "/home/jorge/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "\205\262 [...]
  command-line()
  normal-top-level()

这是我的CEDET配置,经过痛苦的实验和在互联网上阅读许多帖子后写的:

;;
;; configuración de CEDET

;;incia CEDET
(semantic-mode 1)
(global-ede-mode 1)
(ede-enable-generic-projects)

(add-to-list 'semantic-default-submodes 'global-semantic-decoration-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-local-symbol-highlight-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-scheduler-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-completions-mode)
(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-mru-bookmark-mode)
(add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-mode)

(semanticdb-enable-gnu-global-databases 'c-mode t)
(semanticdb-enable-gnu-global-databases 'c++-mode t)
;(semantic-load-enable-minimum-features) ;;Debugger entered--Lisp error: (void-function semantic-load-enable-minimum-features)
(semantic-idle-summary-mode)
(semantic-idle-completions-mode)

(when (cedet-ectag-version-check t) ;; Debugger entered--Lisp error: (void-function cedet-ectag-version-check)
  (semantic-load-enable-primary-ectags-support))

这就是我在启动时require

(require 'semantic/bovine/gcc)
(require 'semantic/ia)
(require 'ecb)

最后,我的emacs版本:GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2) of 2013-08-06 on -mnt-storage-buildroots-staging-x86_64-eric

我做错了什么,如何解决这个问题?谢谢!

0 个答案:

没有答案