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