help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I don't have C++ intellisense with company-mode


From: Jorge Araya Navarro
Subject: Re: I don't have C++ intellisense with company-mode
Date: Wed, 22 Jan 2014 21:42:25 -0600

El jue, 23-01-2014 a las 03:19 +0200, Dmitry Gutov escribió:

> Hi Jorge,
> 
> Jorge Araya Navarro <elcorreo@deshackra.com> writes:
> 
> > I was looking for company-mode to provide intellisense on C++ since it
> > looked easy to install and configure. But I noticed that I got
> > intellisense for many programming languages except C++. I did many
> > screenshots showing that I have no intellisense in emacs[1] compared to
> > that screenshot taken by the author who actually have it[2] (note that
> > in his buffer says "company-semantic" and in my screenshots it just says
> > "company").
> 
> In order to use Semantic, you must have `semantic-mode' enabled. Company
> won't set up CEDET for you.
> 
> For example, you can refer to this guide:
> http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html
> Or just `M-x semantic-mode' for a minimal configuration.
> 
> Another option is to install Clang, then, unless semantic-mode is
> enabled, the company-clang backend will be used.


Hello, Dmitry!

I... well, I have already read that guide. But I tried again this time,
So I did these changes:

on my hooks.el file have no changes under the after-init-hook, which
starts semantic-mode.

On my conf-modes/cedet.el file I did these changes:


(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-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-semantic-idle-summary-mode)

(when (cedet-cscope-version-check t)
  (semanticdb-enable-cscope-databases))


Of course I load them from my varl.el file:


(load-file "~/.emacs.d/conf-modes/emacs-behaivor.el")
(load-file "~/.emacs.d/conf-modes/localization.el")
;; ...
(load-file "~/.emacs.d/conf-modes/org-mode.el")
(load-file "~/.emacs.d/conf-modes/autoindent.el")
(load-file "~/.emacs.d/conf-modes/cedet.el") ;; This runs before (semantic-mode 
1) is evaluated... Or thats what I think...
(load-file "~/.emacs.d/conf-modes/company.el")
(load-file "~/.emacs.d/conf-modes/auto-mode-alist.el")


That's all the changes I did, I swear! Then I restart my emacs, but this
error shows up:


Debugger entered--Lisp error: (void-function cedet-cscope-version-check)
  (cedet-cscope-version-check t)
  (if (cedet-cscope-version-check t) (progn 
(semanticdb-enable-cscope-databases)))
  eval-buffer(#<buffer  *load*-234444> nil 
"/home/jorge/.emacs.d/conf-modes/cedet.el" nil t)  ; Reading at buffer position 
491
  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*-219420> nil "/home/jorge/.emacs.d/varl.el" nil 
t)  ; Reading at buffer position 617
  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.d/init.el" nil t)  ; 
Reading at buffer position 373
  load-with-code-conversion("/home/jorge/.emacs.d/init.el" 
"/home/jorge/.emacs.d/init.el" t t)
  load("/home/jorge/.emacs.d/init" t t)
  #[0 "\205\262 ...  [init-file-user system-type delayed-warnings-list 
user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" 
windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" 
"^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, 
please use `.emacs'") "~/_emacs" t load expand-file-name "init" 
file-name-as-directory "/.emacs.d" file-name-extension "elc" 
file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message 
"Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()


Looks like cedet-cscope-version-check dont have a function defined, I
wonder why because I have CEDET 2.0 shipped from Emacs and according to
the guide it should be evaluated like a function.
Any idea of what (why?) is happening here?
-- 
Pax et bonum.
Jorge Araya Navarro.
Diseñador publicitario, programador Python/C++ y colaborador en Parabola
GNU/Linux-libre.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]