From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maciej Katafiasz Newsgroups: gmane.emacs.help Subject: Re: Emacs and C++ codesense Date: Thu, 26 Apr 2007 02:35:25 +0000 (UTC) Message-ID: References: <1177512998.732034.286160@s33g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1177554956 23694 80.91.229.12 (26 Apr 2007 02:35:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 02:35:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 26 04:35:50 2007 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 1Hgtpl-0006Ns-RB for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 04:35:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgtvS-0001lv-5o for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2007 22:41:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgtvH-0001lq-W8 for help-gnu-emacs@gnu.org; Wed, 25 Apr 2007 22:41:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgtvG-0001le-FO for help-gnu-emacs@gnu.org; Wed, 25 Apr 2007 22:41:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgtvG-0001lb-C6 for help-gnu-emacs@gnu.org; Wed, 25 Apr 2007 22:41:30 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HgtpZ-0003yV-5C for help-gnu-emacs@gnu.org; Wed, 25 Apr 2007 22:35:37 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HgtpW-0007k2-OH for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 04:35:34 +0200 Original-Received: from users.kollegienet.dk ([130.226.173.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2007 04:35:34 +0200 Original-Received: from mathrick by users.kollegienet.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2007 04:35:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: users.kollegienet.dk User-Agent: pan 0.120 (Plate of Shrimp) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:43200 Archived-At: Den Wed, 25 Apr 2007 07:56:38 -0700 skrev spamfilteraccount@gmail.com: > I'm looking for solutions for working with C++ code in Emacs. > > I'd like the following: > > - Jumping to the definition of the symbol I'm standing on when I press > a key. I know tags is useful for that, but they don''t seem to work > properly in every case, only in most of the cases and I'd like a > proper solution. I think you'll have to stick with tags, just make sure you use exuberant-ctags, it has much more fancy support for things. A solution based on semantic is possible, but not available as of yet. > - Show the documentation of the current symbol in a tooltip when > pressing a key. The tooltip is not a big deal. I can do it if I can > get the documentation somehow. See semantic-idle-completion-mode, semantic-ia-show-doc, although that depends on how much info you want. You do get the prototype though. > - Inteligent completion of the current symbol when I press a key. > > I don't want ECB, because I don't want separate windows within the > frame showing information. I like to work in a single frame and get > information only if I press a key explicitly. That's good, since ECB doesn't concern itself with completion :). > I suspect semantic can do some or all of the above. Is it true? Is > there a solution out of the box which works like described above or I > have to learn how the semantic api works and implement my own > solution? How good is semantic's C++ parsing/support? Semantic should fit the bill. There's semantic-ia-complete-symbol[-menu], and also semantic-hover-completion.el, which I'm going to post in a minute. I'm not exactly sure how much stress the C++ support can stand, as I don't code C++, but basic testing says it works pretty well. Cheers, Maciej