Try as I might, I can't get CEDET to do anything. Emacs 24.3. I downloaded the most recent CEDET snapshot. I took Alex Ott's setup file from the bottom of his (not so) Gentle Introduction, and changed the first line to point to my cedet-bzr.
I visited hello_world.cpp. I execute M-x semantic-mode.
Now what do I do? Should anything look different? (It doesn't.)
A glance at Alex's setup file suggests that C-c? should do something, but Emacs complains that that key combination is not bound. I really need some hand-holding here!
Edit: I really think the problem might be: "What do I do next?" How do I know it's installed and ready? What should I expcect? Should there be new menu items? Do I have to do something to turn it on? What should my first steps be? Right now, Emacs looks and behaves as if nothing has happened, but I may not be trying the right things. More generally: how do I use it?
Edit #2 (still using Alex's setup file)
Here's my setup on emacs 24.3.1 on ubuntu 13.04:
(load "~/cedet-snapshot/cedet-devel-load.el")
(semantic-add-system-include "~/misc/include/" 'c++-mode)
(set-default 'semantic-case-fold t)
Here, ~/misc/include/
refers to the includes of some library that
you could be using that isn't installed to /usr/include/
.
I enable 'semantic-mode occasionally since it can be slow, but after it's enabled, 'semantic-ia-complete-symbol works.
I was installing a fresh Ubuntu on my new SSD and I've discovered that CEDET stopped working. Here's how I got it back on the track:
cd ~/.emacs.d/semanticdb
rm -rf *
Then in a C++ buffer M-x semantic-force-refresh
.
It may ask you something about debugging the hooks, just say type y.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With