From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: help needed setting up etags on Windows Date: Wed, 19 Jun 2013 23:09:24 +0530 Message-ID: References: <838v27s8ds.fsf@gnu.org> <87txkv7wr0.fsf@gmail.com> <877ghqxngp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1371663597 8062 80.91.229.3 (19 Jun 2013 17:39:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 17:39:57 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Hongxu Chen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 19:40:00 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpMMR-0007Ji-Ex for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 19:39:59 +0200 Original-Received: from localhost ([::1]:34574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMMR-0000xr-2z for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jun 2013 13:39:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMLv-0000Vk-KK for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 13:39:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpMLt-0002x0-LC for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 13:39:27 -0400 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:52825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpMLt-0002wf-BP for help-gnu-emacs@gnu.org; Wed, 19 Jun 2013 13:39:25 -0400 Original-Received: by mail-pa0-f49.google.com with SMTP id ld11so5356875pab.22 for ; Wed, 19 Jun 2013 10:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R6zaHUrzC20TjuzVBwYv8noEzGd0od9adfxEeoLUcaw=; b=G/UCezPPubyrdqBhs7XCIg7ccn0XgBsMsqnYCvBBmRz6c8xG4tLfel+FR6BFAgOu0Y gfuD5FgsjLiKbYAYdw259rwaVGoWhYKtjVDyVbkaoApVUMheYzyu26hgxflrycAobb7p FodG2TPNOpp/aY6MiLYBnoQSHu3BtZ4sSBpRrpvmY/c6+iva7EHXU5oMSS+H0npXYSYm tA3NgaPJqItnVjFA94G1T0uQht4lMp3bnNRCbb5lizkziUU2zoTzNm+D2HKPdrGX/tG/ Xgv89Ct0LhMi9pWI3NOmsNGqqxY8aMBg5OpdJyvzBLPVaxoHdMtuuyc7vE4MQ+Mgz2da YTeA== X-Received: by 10.66.183.196 with SMTP id eo4mr7717105pac.156.1371663564140; Wed, 19 Jun 2013 10:39:24 -0700 (PDT) Original-Received: by 10.70.87.38 with HTTP; Wed, 19 Jun 2013 10:39:24 -0700 (PDT) In-Reply-To: <877ghqxngp.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91609 Archived-At: cscope seems to run pretty well - http://linux.die.net/man/1/xcscope is useful to get started. Regards, Kashyap On Wed, Jun 19, 2013 at 6:32 PM, Hongxu Chen wrote: > "Ludwig, Mark" writes: > > > I hope you will share your results/decision at some point. > Here are my related configuration links for C/C++ development: > 1. > https://github.com/HongxuChen/dotfiles/blob/master/_emacs.d/config/init-cc-mode.el > General cc mode settings > 2. > https://github.com/HongxuChen/dotfiles/blob/master/_emacs.d/config/init-flymake.el > Add a flymake clang for single files > 3. auto-complete-clang+yasnippet+autopair for editing assistance > 4. fic-mode for highlight FIXME/TODO etc. > 5. source code navigation: > (1) tag based: xgtags.el and xcscope.el(for header files that I never > modify since I cscope seems more accurate than xgtags). > (2) semantic based: cc-lookup(a simple script I write, based on > clang-lookup; it only looks for declaration/definition, no reference > support, no name refactoring support, and more improvements are > expected) > https://github.com/HongxuChen/cc-lookup > 6. I also use directory local variables quite a lot > > There are also several clang based tools for C/C++ coding: > 1. https://github.com/Sarcasm/irony-mode > auto complete headers and code, syntax check; I cannot make the trigger > key right and there are some bugs for its plugins. > 2. https://github.com/Golevka/emacs-clang-complete-async > a client-server version of auto-complete-completion; faster than > auto-complete-clang but many bugs > 3. https://github.com/Andersbakken/rtags > Powerful tag system, there is a series video about it on Youtube, lookup > defintion/declaration/reference, rename refactoring, code completion; > but I don't know how to configure right:-( > 4. company-mode > It's inferior to auto-complete and I don't use it. > > > > I've used etags for decades but have been doing only C coding. > > I'm on the cusp of switching to a C++ project, and etags just doesn't > cut it. > > I'll be interested in what you find with Ebrowse. > > I've also seen chatter about CEDET being good for C++. > Personally I don't like CEDET(together with ECB) since it's too Emacsy > and I come from Vim; the most important thing is that it sucks quite > often and the speed is not satisfying. But there seems a clang semantics > analysis on it and I hope it would make a hit. > > > > > Cheers, > > Mark Ludwig > > > > -----Original Message----- > > From: help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org [mailto: > help-gnu-emacs-bounces+ludwig.mark=siemens.com@gnu.org] On Behalf Of C K > Kashyap > > Sent: Tuesday, June 18, 2013 11:25 PM > > To: Hongxu Chen > > Cc: help-gnu-emacs@gnu.org > > Subject: Re: help needed setting up etags on Windows > > > > I am going to give cscope (infact, I forgot, I always used cscope with > vim > > :) ) > > I'll readup on ebrowse as well .... > > > > Thank you very much, > > Kashyap > > > > > > On Wed, Jun 19, 2013 at 6:16 AM, Hongxu Chen > wrote: > > > >> Eli Zaretskii writes: > >> > >> >> Date: Tue, 18 Jun 2013 17:59:09 +0530 > >> >> From: C K Kashyap > >> >> > >> >> Could someone please help me get started with setting up etags for a > >> large > >> >> C++ source base? I'd like to use emacs on cygwin. I assume etags is > the > >> >> right tool for source indexing with emacs. > >> > > >> > For C++, you will be better off with ebrowse, a program that also > >> > comes with Emacs. It understands C++ much better than etags does, and > >> > provides similar commands (so you don't lose anything). Check out the > >> > Ebrowse manual, which is part of the Emacs distribution, for details. > >> > >> I guess cscope would be better, and there is an elisp script called > >> xcscope.el. > >> http://cscope.sourceforge.net/ > >> http://inst.eecs.berkeley.edu/~cs186/fa05/debugging/xcscope.el > >> > >> But it sucks when you need to modify some of your source code since the > >> update of cscope database always takes much time(AFAIK, there is no > >> incremental update at all); so it would be rather annoying if the code > >> base is large and there is a need to update the tag database > >> frequently. > >> There is another tagging system called GNU Global, however > >> it seems not available in cygwin. > >> > >> -- > >> Regards, > >> Hongxu Chen > >> > >> > > -- > Regards, > Hongxu Chen >