Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

emacs as a C++ IDE

871 views
Skip to first unread message

alessandro.be...@gmail.com

unread,
Oct 4, 2008, 11:57:30 AM10/4/08
to
I want to use Emacs for C++ programming with SuSE LINUX and Windows
Vista.

I have readed the Emacs manual and searched the web, but i still have
those questione:

- how can i have interactive help in emacs writing C++ code ? If i
write a C++ keyword, I would like to get help and informations and
examples about it, only typing a command.

- how can i browse classes in emacs ? Is cscope the best tool ? I
woluld like to have informations about any classes or functions in my
code, and to browse it easily. I need informations not only about the
classes in my file, but in all header files too and so on recursively,
INCLUDING the standard library. Is this possible ?

- what about ecb ? What other tools i need ?

Thank you very much in advance !

A.B.

Eli Zaretskii

unread,
Oct 4, 2008, 2:41:43 PM10/4/08
to help-gn...@gnu.org
> From: alessandro.be...@gmail.com
> Date: Sat, 4 Oct 2008 08:57:30 -0700 (PDT)

>
> - how can i browse classes in emacs ?

Emacs comes with Ebrowse, which is documented in its own manual (also
part of the Emacs distribution).


Richard Riley

unread,
Oct 4, 2008, 2:48:50 PM10/4/08
to
alessandro.be...@gmail.com writes:

> I want to use Emacs for C++ programming with SuSE LINUX and Windows
> Vista.
>
> I have readed the Emacs manual and searched the web, but i still have
> those questione:
>
> - how can i have interactive help in emacs writing C++ code ? If i
> write a C++ keyword, I would like to get help and informations and
> examples about it, only typing a command.

I'll throw in some keywords which might help you get started.

Google up devhelp. More gnome (and therefore C in a lot of cases). You
can also bind a key to "manual-entry" for word at point assuming you
have the required manual pages. Also consider eldoc for context
sensitive help if the required functions can be written for the language
you are interested in.

Use cscope and also consider etags. I then have:
,----
| (require 'etags-select)
| (global-set-key "\M-." 'etags-select-find-tag-at-point)
| (global-set-key "\M-#" 'pop-tag-mark)
`----

Good for C/C++ and elisp and php and ... I think.

Also there is a commercial offering :

http://www.xref.sk/xrefactory/main.html

The standard c++browser for emacs is, I believe, ebrowse but I have no
idea as to its status or abilities.

http://www.gnu.org/software/emacs/manual/ebrowse.html

Lastly look at Cedet. I never really got autocompletion working properly
before I changed to another project but it looks promising.

>
> - how can i browse classes in emacs ? Is cscope the best tool ? I
> woluld like to have informations about any classes or functions in my
> code, and to browse it easily. I need informations not only about the
> classes in my file, but in all header files too and so on recursively,
> INCLUDING the standard library. Is this possible ?
>
> - what about ecb ? What other tools i need ?

I'm not sure, personally, about ecb. It is configurable but the default
layout takes a lot of real estate for little practical gain in my
opinion.

I would love to see a collection of what others have achieved with emacs
as a C/C++ IDE.

Lastly, if you dont get what you want look up using eclipse - it's IDE
features for things like refactoring, context help are much superior to
Emacs at this stage IMO. The disadvantages are ... its not emacs.

>
> Thank you very much in advance !
>
> A.B.

--
Don't get smart alecksy
With the galaxy
Leave the atom alone.
~E.Y. Harburg, "Leave the Atom Alone," 1957

Wei Weng

unread,
Oct 4, 2008, 11:31:01 PM10/4/08
to

I use ecb with semantic 1.0, and a CVS build of emacs 23.

ECB is pretty good. :)

You can use ebrowse if you want to have a global view of all the classes in
all of your related C++ projects.

Thanks
Wei


lingyu...@googlemail.com

unread,
Oct 27, 2008, 11:21:20 PM10/27/08
to

in my memory there're four tools you could use:
Ebrowse
etags
escope
xrefacotry

you could find the information in google.

alex

unread,
Nov 9, 2008, 7:52:28 AM11/9/08
to
On Oct 28, 4:21 am, lingyu.ma...@googlemail.com wrote:
> On 10月4日, 下午11时57分, alessandro.bernardini.1...@gmail.com wrote:
>
>
>
> > I want to use Emacs for C++ programming with SuSE LINUX and Windows
> > Vista.
>
> > I have readed the Emacs manual and searched the web, but i still have
> > those questione:
>
> > - how can i have interactive help in emacs writing C++ code ? If i
> > write a C++ keyword, I would like to get help and informations and
> > examples about it, only typing a command.
>
> > - how can i browse classes in emacs ? Is cscope the best tool ? I
> > woluld like to have informations about any classes or functions in my
> > code, and to browse it easily. I need informations not only about the
> > classes in my file, but in all header files too and so on recursively,
> > INCLUDING the standard library. Is this possible ?
Thank you very much !
0 new messages