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