From: Jorge Araya Navarro <elcorreo@deshackra.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: help-gnu-emacs@gnu.org
Subject: Re: I don't have C++ intellisense with company-mode
Date: Wed, 22 Jan 2014 21:42:25 -0600 [thread overview]
Message-ID: <1390448545.13181.12.camel@localhost.localdomain> (raw)
In-Reply-To: <87sisfcx57.fsf@yandex.ru>
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.
next prev parent reply other threads:[~2014-01-23 3:42 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 20:53 I don't have C++ intellisense with company-mode Jorge Araya Navarro
2014-01-23 1:19 ` Dmitry Gutov
2014-01-23 3:42 ` Jorge Araya Navarro [this message]
2014-01-23 11:32 ` Dmitry Gutov
2014-01-23 19:15 ` Jorge Araya Navarro
2014-01-23 19:58 ` Dmitry Gutov
2014-01-24 5:22 ` Jorge Araya Navarro
2014-01-24 7:06 ` 贺新超
2014-01-24 7:46 ` Jorge Araya Navarro
2014-01-24 17:05 ` David Engster
2014-01-24 17:24 ` Dmitry Gutov
2014-01-25 0:08 ` Jorge Araya Navarro
2014-01-25 5:27 ` Dmitry Gutov
2014-01-25 5:41 ` Jorge Araya Navarro
2014-01-25 7:48 ` Dmitry Gutov
2014-01-25 8:35 ` David Engster
2014-01-24 18:07 ` Jorge Araya Navarro
2014-01-24 19:20 ` David Engster
2014-01-24 11:06 ` Dmitry Gutov
2014-01-24 18:02 ` Jorge Araya Navarro
2014-01-23 14:11 ` Stefan Monnier
2014-01-23 19:07 ` Jorge Araya Navarro
2014-01-23 19:17 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390448545.13181.12.camel@localhost.localdomain \
--to=elcorreo@deshackra.com \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).