From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: code completion Date: Wed, 12 Mar 2008 12:23:49 +0100 Organization: A noiseless patient Spider Message-ID: References: <47D69250.6050902@telenet.be> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205322085 1903 80.91.229.12 (12 Mar 2008 11:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 11:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 12 12:41:50 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 1JZPKZ-0004WM-31 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2008 12:41:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZPK0-0004sQ-JP for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2008 07:40:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: feeder.motzarella.org U2FsdGVkX19nqraUTw321DB6lqmJxdzqMS7hiHUPzKGnZ3wmNrijU6rqoL3jmZTGk4E+6b+e7k5DbxoPkXv5GF1def2/QhlGQnKy0HbCLM1scrTLfDoXT+RWg5cP2ePQpGxRpA33i5LnX2dz6j0XJw== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Wed, 12 Mar 2008 11:23:51 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/RDkzYuUAx8C7QezZ6RtGDEKECpjb4f0ezlyrhXFnnnQ== Cancel-Lock: sha1:Gf2zAwH7K5JEL/6F9mKhkxkvgVM= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:156913 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:52284 Archived-At: Bastien writes: > Alain Muls writes: > >> I checked and tried several possibilities to have code completion in >> c++ but none is working as I would like. I tried etags, global, >> xrefactory. Which one can give me the possible (correct) completions >> of a method in c++, eg. > > Maybe you can contact the developers/maintainers directly and ask them > about the missing feature: > > etags: Roland McGrath > Xrefactory: vittek@xref-tech.com > > (I don't know global.) > >> if I press (preferably), I would like it to suggest >> >> getCartesian() >> getGeodetic() > > Shouldn't be that hard to add this. Have you tried? I would be interested in your solutions and the toolsets you have tried for C/C++ code navigation as I'm still humming and harring myself. Last night a I spent a few hours downloading and installing and configuring the latest cedet. After setting up project paths, c-paths and turning on the semantic idle completion scheduler it works reasonably well for C. Only things that did not complete were fields protected by guard flags (to be expected), structs represented by typedefs and structs defined in the c file as opposed to an h file - I'm not sure if by design or not - but this is quite a subset. I prepared a post yesterday that got "drafted" in a system reset but it pretty much also recommended cscope as a wonderful C tool for emacs code navigation - the linux kernel also comes with a cscope target in its Makefile which is handy.