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

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

Re: CEDET e smart completion


From: Rajanikanth Jammalamadaka
Subject: Re: CEDET e smart completion
Date: Wed, 25 May 2011 00:01:20 -0400

You can also try using these:

http://cx4a.org/software/gccsense/

http://mike.struct.cn/blogs/entry/15/
(https://github.com/mikeandmore/auto-complete-clang)

The second one (Clang auto-complete plugin) is pretty good.

Thanks,
Raj



On Wed, May 11, 2011 at 6:01 AM, daniele.g <dgiglio@iol.it> wrote:
I can't enable smart completion in the way I want. For example, I'm
developing with opencv, so I use the "#include <cv.h>" instruction in my
sources. I'd like that CEDET autocomplete all cv* functions provided by
opencv. How can I get this?

This is my elisp code:
--8<---------------cut here---------------start------------->8---
;; CEDET stuff
(require 'ede)
(require 'semanticdb)
(require 'semantic-ia)
(semantic-load-enable-code-helpers)
(global-semanticdb-minor-mode 1)
;;(global-srecode-minor-mode 1)         ; it returns an error

(setq-mode-local c-mode semanticdb-find-default-throttle
                '(project unloaded system recursive))

(add-hook 'c-mode-common-hook
         '(lambda ()
            'hs-minor-mode
            (local-set-key [(control return)]
                           'semantic-ia-complete-symbol)))

(add-hook 'speedbar-load-hook
         (lambda ()
           (require 'semanticsb)))
--8<---------------cut here---------------end--------------->8---

I suppose this code's incoplete.

,----[ dpkg -l cedet* emacs23 ]
| ||/ Nome                                 Versione
| +++-====================================-=====================
| ii  cedet-common                         1:1.0pre4-3.1
| ii  cedet-contrib                        1:1.0pre4-3.1
| ii  emacs23                              23.2+1-7
`----

Thanks in advance.
--
 L'automobile del futuro sara' piu' veloce del suono.
 Cosi' il guidatore sara' all'ospedale prima di accendere il motore.
               -- Henry Youngman





--
Rajanikanth

reply via email to

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