Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-06-2004, 04:49 PM   #1
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
Trying to get semantic and C++ intellisense to work on emacs


Anyone been using semantic on emacs?

Im using emacs since a couple months and been
trying to use semantic for a couple of weeks now
without much success. Specifically im trying to find
documentation about how to setup at least the
following two things:

1) jumping to definitions of C++ methods
2) intellisense autocompletion by clicking on the
options in the speedbar

I've tried to get help on the semantic mailing list, but i
have the impression the people there feel like some kind
of snobbish l33t that doesnt bother to answer questions of
mere non-lispers mortals

Please help
Old 12-06-2004, 06:25 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
in your .emacs file put (adjust paths from mine)
the last one is the path to your project source directory and there can be 1 or more that 1
(load-file "~/path/to/cedet-1.0beta3b/common/cedet.el")
(setq semantic-load-turn-useful-things-on t)
(setq semanticdb-project-roots
         (list "/path/to/project/one"
call emacs on the directory where the source files you are working on are with
emacs ./
then scroll through and open (return)
then close
Cntrl.-x k (return)
on each file
then type
M-x semanticdb-save-all-db
now when you open emacs on one of your source files the entire project should be under the menu item "TAGS"
if you navigate that menu and click on something you will jump there and you can navagae around the diferent buffers that are open using the buffer menu

sorry about the second question -- never made any sense out of the speedbar or autocomplete functions yet
i know you can
M-x semantic-ia-complete-symbol
and in order to have it read in stuff so it understands what you are doing
M-x bovinate
M-x TAB can show you more command i just don't really know what they do


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RightAlt doesn't work in Emacs kornerr Linux - General 1 06-13-2005 01:42 PM
'emacs&' doesn't work verbose Debian 27 06-01-2005 08:20 AM
VISUAL=emacs does not work GooGooMuk Slackware 2 01-25-2005 07:24 PM
Trying to get semantic and intellisense to work on emacs Hano Programming 0 12-06-2004 02:38 AM
C/C++ IDE with intellisense suport a2ps Programming 4 01-12-2004 06:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration