HI,

I've tried both suggestions, but I'm still having the same issue. AC and semantic work fine separately, but together they don't.

Any other suggestion?

Pamela


On Thu, Apr 11, 2013 at 6:12 PM, Alex Ott <alexott@gmail.com> wrote:
ok, looks correct...

here is my configs: https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el & https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-autocomplete.el


On Thu, Apr 11, 2013 at 5:24 PM, Pamela Carreño <carrenopamela@gmail.com> wrote:
Hi Alex,

Thank you for your answer, but I thought this function

(defun alexott/cedet-hook ()
  (local-set-key [(control return)] 'semantic-ia-complete-symbol-menu)
  (local-set-key "\C-c?" 'semantic-ia-complete-symbol)
  ;;
  (local-set-key "\C-c>" 'semantic-complete-analyze-inline)   
  (local-set-key "\C-c=" 'semantic-decoration-include-visit)
 
  (local-set-key "\C-cv" 'semantic-ia-show-variants)
  (local-set-key "\C-cj" 'semantic-ia-fast-jump)
  (local-set-key "\C-cq" 'semantic-ia-show-doc)
  (local-set-key "\C-cs" 'semantic-ia-show-summary)
  (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle)
  (local-set-key (kbd "C-c <left>") 'semantic-tag-folding-fold-block)
  (local-set-key (kbd "C-c <right>") 'semantic-tag-folding-show-block)

  (add-to-list 'ac-sources 'ac-source-semantic-raw)
  (add-to-list 'ac-sources 'ac-source-semantic)
)

(add-hook 'semantic-init-hooks 'alexott/cedet-hook)
(add-hook 'c-mode-common-hook 'alexott/cedet-hook)
(add-hook 'c++-mode-hook 'alexott/cedet-hook)


was setting ac and semantic from hook. Am I wrong?

Also, after printing ac-sources from scratch buffer this is what I get

(ac-source-features ac-source-functions ac-source-yasnippet ac-source-variables ac-source-symbols ac-source-semantic ac-source-semantic-raw ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers)

So I think It's not only a buffer-local setting.


On Thu, Apr 11, 2013 at 11:48 AM, Alex Ott <alexott@gmail.com> wrote:
I thin the problem is that ac-sources is buffer-local when it's set. So you either need to set it from hook, or use setq-default...


On Thu, Apr 11, 2013 at 10:53 AM, Pamela Carreño <carrenopamela@gmail.com> wrote:
Hi,

After several trials, I can force some suggestions with M-x ac-complete-semantic-raw.

I think the problem is due to auto-complete not taking semantic as one of its sources or to some complex interaction between semantic and AC.

The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be enough. And I don't understand why.

Pamela


---------- Forwarded message ----------
From: Pamela Carreño <carrenopamela@gmail.com>
Date: Wed, Apr 10, 2013 at 10:05 PM
Subject: Problem between semantic and auto-complete
To: cedet-semantic@lists.sourceforge.net


Hello,

Unfortunately I had to re-install my OS so I updated my emacs and cedet versions (I'm using the last snapshots). I'm also using the same configuration files that had worked pretty well with my c++ projects. However,  now the name auto-completion is not working.

More specifically, before re-installing my system if I started to write a variable's name, cedet showed me all the possible matches among all the variables already defined in the same file. Now I have no suggestions and I thinks it's related to how semantic and auto-complete work together.

When I'm working on different types of files (lisp, latex, org...) auto-complete works fine. Also semantic works as expected: I can jump from definitions to implementations, I can search a method definition, I can see all the members of a
particular object, and the function prototypes are showed too.

It's just the name complete that does not work, and as I'm using the same configuration files and I followed step by step the same process I used the first time to install cedet and other tools (gtags, cscope...), I can't see the cause of this problem.

Here are my configurations files:

ii) my cedet configuration based on Alex's tutorial http://pastebin.com/QkUGtkve

Can someone give me some hints about what I'm doing wrong or missing here?

Also, I'm new to cedet and I would appreciate some suggestions about how to improve my current configuration to work better on c++ projects.

Thanks,

Pamela



--
Pamela Carreño Medrano
PhD. candidate in Computer Science
IRISIA Lab/ Seaside team
University of Southern Brittany - UBS
Vannes, France

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
cedet-semantic mailing list
cedet-semantic@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic




--
With best wishes,                    Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott



--
Pamela Carreño Medrano
PhD. candidate in Computer Science
IRISIA Lab/ Seaside team
University of Southern Brittany - UBS
Vannes, France



--
With best wishes,                    Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott



--
Pamela Carreño Medrano
PhD. candidate in Computer Science
IRISIA Lab/ Seaside team
University of Southern Brittany - UBS
Vannes, France