From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge Araya Navarro Newsgroups: gmane.emacs.help Subject: Re: I don't have C++ intellisense with company-mode Date: Wed, 22 Jan 2014 21:42:25 -0600 Message-ID: <1390448545.13181.12.camel@localhost.localdomain> References: <1390424024.2349.11.camel@localhost.localdomain> <87sisfcx57.fsf@yandex.ru> Reply-To: elcorreo@deshackra.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1390448567 11362 80.91.229.3 (23 Jan 2014 03:42:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 03:42:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 04:42:55 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6BBt-00025s-Rs for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 04:42:54 +0100 Original-Received: from localhost ([::1]:38746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6BBt-00039l-6l for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jan 2014 22:42:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6BBc-00038X-UH for help-gnu-emacs@gnu.org; Wed, 22 Jan 2014 22:42:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6BBV-0003aN-Md for help-gnu-emacs@gnu.org; Wed, 22 Jan 2014 22:42:36 -0500 Original-Received: from shared.dohost.us ([188.165.91.212]:47225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6BBV-0003Yn-8V for help-gnu-emacs@gnu.org; Wed, 22 Jan 2014 22:42:29 -0500 Original-Received: from [186.176.239.70] (port=33529 helo=[192.168.0.110]) by shared.dohost.us with esmtpsa (SSLv3:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1W6BE9-0004mK-Dj; Thu, 23 Jan 2014 03:45:14 +0000 In-Reply-To: <87sisfcx57.fsf@yandex.ru> X-Mailer: Evolution 3.10.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shared.dohost.us X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - deshackra.com X-Get-Message-Sender-Via: shared.dohost.us: authenticated_id: elcorreo@deshackra.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 188.165.91.212 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95553 Archived-At: El jue, 23-01-2014 a las 03:19 +0200, Dmitry Gutov escribiĆ³: > Hi Jorge, > > Jorge Araya Navarro 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(# 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(# 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(# 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.