From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: emacs as a C++ IDE Date: Sat, 04 Oct 2008 20:48:50 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223149280 14772 80.91.229.12 (4 Oct 2008 19:41:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2008 19:41:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 21:42:17 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmD11-0007nS-GI for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 21:42:11 +0200 Original-Received: from localhost ([127.0.0.1]:39158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmCzy-0005sl-74 for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 15:41:06 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 71 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1+vBq/+Z5LG23pHL52Hsj/0acUCNGGdT9kp3L3cQoyCqchyuDpbwp9T/lApltXGRwhVPDJ3tFtM/MoUEv4ElE+hGk6gz6hIL909s8HSoBvjc/IhnF6wLHDSQq91Gxjp0EFyUVNG+tNA2Q== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sat, 4 Oct 2008 18:48:22 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18RZo6DQTKes5Oj/ochrFKYxRYia0vigYc6KW6Ntj9tCg== Cancel-Lock: sha1:SgeZI5NTE1Q4pI4Yp+3Ks2vvg18= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:163020 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58362 Archived-At: alessandro.bernardini.1979@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