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

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

CEDET e smart completion


From: daniele.g
Subject: CEDET e smart completion
Date: Wed, 11 May 2011 12:01:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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




reply via email to

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