unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* CEDET e smart completion
@ 2011-05-11 10:01 daniele.g
  2011-05-25  4:01 ` Rajanikanth Jammalamadaka
  0 siblings, 1 reply; 2+ messages in thread
From: daniele.g @ 2011-05-11 10:01 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CEDET e smart completion
  2011-05-11 10:01 CEDET e smart completion daniele.g
@ 2011-05-25  4:01 ` Rajanikanth Jammalamadaka
  0 siblings, 0 replies; 2+ messages in thread
From: Rajanikanth Jammalamadaka @ 2011-05-25  4:01 UTC (permalink / raw)
  To: daniele.g; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1928 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2795 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-25  4:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 10:01 CEDET e smart completion daniele.g
2011-05-25  4:01 ` Rajanikanth Jammalamadaka

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).