* help needed setting up etags on Windows @ 2013-06-18 12:29 C K Kashyap 2013-06-18 12:37 ` Doug Lewan 2013-06-18 16:15 ` Eli Zaretskii 0 siblings, 2 replies; 11+ messages in thread From: C K Kashyap @ 2013-06-18 12:29 UTC (permalink / raw) To: help-gnu-emacs Hi folks, 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. Regards, Kashyap ^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: help needed setting up etags on Windows 2013-06-18 12:29 help needed setting up etags on Windows C K Kashyap @ 2013-06-18 12:37 ` Doug Lewan 2013-06-18 12:41 ` C K Kashyap 2013-06-18 16:15 ` Eli Zaretskii 1 sibling, 1 reply; 11+ messages in thread From: Doug Lewan @ 2013-06-18 12:37 UTC (permalink / raw) To: C K Kashyap, help-gnu-emacs@gnu.org I don't think there's anything to do. `cd' to your source directory and run `etags file1.c file2.c ...' and you'll have a tags file. Type `M-x .' with the cursor on the symbol of interest, tell emacs that you want to use TAGS as the tags file and it should find the symbol. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 If the majority of cooking accidents happen in the kitchen, then why don't we just cook in other rooms? -----Original Message----- From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of C K Kashyap Sent: Tuesday, 2013 June 18 08:29 To: help-gnu-emacs@gnu.org Subject: help needed setting up etags on Windows Hi folks, 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. Regards, Kashyap ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-18 12:37 ` Doug Lewan @ 2013-06-18 12:41 ` C K Kashyap 2013-06-18 12:53 ` C K Kashyap 0 siblings, 1 reply; 11+ messages in thread From: C K Kashyap @ 2013-06-18 12:41 UTC (permalink / raw) To: Doug Lewan; +Cc: help-gnu-emacs@gnu.org For starters, I cant seem to find a way to install etags in my cygwin setup.. Regards, Kashyap On Tue, Jun 18, 2013 at 6:07 PM, Doug Lewan <dougl@shubertticketing.com>wrote: > I don't think there's anything to do. > > `cd' to your source directory and run `etags file1.c file2.c ...' and > you'll have a tags file. Type `M-x .' with the cursor on the symbol of > interest, tell emacs that you want to use TAGS as the tags file and it > should find the symbol. > > ,Douglas > Douglas Lewan > Shubert Ticketing > (201) 489-8600 ext 224 > > If the majority of cooking accidents happen in the kitchen, then why don't > we just cook in other rooms? > > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto: > help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of C > K Kashyap > Sent: Tuesday, 2013 June 18 08:29 > To: help-gnu-emacs@gnu.org > Subject: help needed setting up etags on Windows > > Hi folks, > > 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. > > Regards, > Kashyap > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-18 12:41 ` C K Kashyap @ 2013-06-18 12:53 ` C K Kashyap 0 siblings, 0 replies; 11+ messages in thread From: C K Kashyap @ 2013-06-18 12:53 UTC (permalink / raw) To: Doug Lewan; +Cc: help-gnu-emacs@gnu.org Looks like etags is part of the ctags package on cygwin... Regards, Kashyap On Tue, Jun 18, 2013 at 6:11 PM, C K Kashyap <ckkashyap@gmail.com> wrote: > For starters, I cant seem to find a way to install etags in my cygwin > setup.. > > Regards, > Kashyap > > > On Tue, Jun 18, 2013 at 6:07 PM, Doug Lewan <dougl@shubertticketing.com>wrote: > >> I don't think there's anything to do. >> >> `cd' to your source directory and run `etags file1.c file2.c ...' and >> you'll have a tags file. Type `M-x .' with the cursor on the symbol of >> interest, tell emacs that you want to use TAGS as the tags file and it >> should find the symbol. >> >> ,Douglas >> Douglas Lewan >> Shubert Ticketing >> (201) 489-8600 ext 224 >> >> If the majority of cooking accidents happen in the kitchen, then why >> don't we just cook in other rooms? >> >> -----Original Message----- >> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto: >> help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of >> C K Kashyap >> Sent: Tuesday, 2013 June 18 08:29 >> To: help-gnu-emacs@gnu.org >> Subject: help needed setting up etags on Windows >> >> Hi folks, >> >> 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. >> >> Regards, >> Kashyap >> > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-18 12:29 help needed setting up etags on Windows C K Kashyap 2013-06-18 12:37 ` Doug Lewan @ 2013-06-18 16:15 ` Eli Zaretskii 2013-06-19 0:46 ` Hongxu Chen 1 sibling, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2013-06-18 16:15 UTC (permalink / raw) To: help-gnu-emacs > Date: Tue, 18 Jun 2013 17:59:09 +0530 > From: C K Kashyap <ckkashyap@gmail.com> > > 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-18 16:15 ` Eli Zaretskii @ 2013-06-19 0:46 ` Hongxu Chen 2013-06-19 4:24 ` C K Kashyap 0 siblings, 1 reply; 11+ messages in thread From: Hongxu Chen @ 2013-06-19 0:46 UTC (permalink / raw) To: Eli Zaretskii; +Cc: help-gnu-emacs Eli Zaretskii <eliz@gnu.org> writes: >> Date: Tue, 18 Jun 2013 17:59:09 +0530 >> From: C K Kashyap <ckkashyap@gmail.com> >> >> 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-19 0:46 ` Hongxu Chen @ 2013-06-19 4:24 ` C K Kashyap 2013-06-19 12:16 ` Ludwig, Mark 0 siblings, 1 reply; 11+ messages in thread From: C K Kashyap @ 2013-06-19 4:24 UTC (permalink / raw) To: Hongxu Chen; +Cc: help-gnu-emacs@gnu.org 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 <leftcopy.chx@gmail.com> wrote: > Eli Zaretskii <eliz@gnu.org> writes: > > >> Date: Tue, 18 Jun 2013 17:59:09 +0530 > >> From: C K Kashyap <ckkashyap@gmail.com> > >> > >> 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 > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: help needed setting up etags on Windows 2013-06-19 4:24 ` C K Kashyap @ 2013-06-19 12:16 ` Ludwig, Mark 2013-06-19 13:02 ` Hongxu Chen 0 siblings, 1 reply; 11+ messages in thread From: Ludwig, Mark @ 2013-06-19 12:16 UTC (permalink / raw) To: C K Kashyap, Hongxu Chen; +Cc: help-gnu-emacs@gnu.org I hope you will share your results/decision at some point. 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++. 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 <leftcopy.chx@gmail.com> wrote: > Eli Zaretskii <eliz@gnu.org> writes: > > >> Date: Tue, 18 Jun 2013 17:59:09 +0530 > >> From: C K Kashyap <ckkashyap@gmail.com> > >> > >> 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 > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-19 12:16 ` Ludwig, Mark @ 2013-06-19 13:02 ` Hongxu Chen 2013-06-19 17:39 ` C K Kashyap 0 siblings, 1 reply; 11+ messages in thread From: Hongxu Chen @ 2013-06-19 13:02 UTC (permalink / raw) To: Ludwig, Mark; +Cc: help-gnu-emacs@gnu.org, C K Kashyap "Ludwig, Mark" <ludwig.mark@siemens.com> 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 <leftcopy.chx@gmail.com> wrote: > >> Eli Zaretskii <eliz@gnu.org> writes: >> >> >> Date: Tue, 18 Jun 2013 17:59:09 +0530 >> >> From: C K Kashyap <ckkashyap@gmail.com> >> >> >> >> 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: help needed setting up etags on Windows 2013-06-19 13:02 ` Hongxu Chen @ 2013-06-19 17:39 ` C K Kashyap 0 siblings, 0 replies; 11+ messages in thread From: C K Kashyap @ 2013-06-19 17:39 UTC (permalink / raw) To: Hongxu Chen; +Cc: help-gnu-emacs@gnu.org 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 <leftcopy.chx@gmail.com> wrote: > "Ludwig, Mark" <ludwig.mark@siemens.com> 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 <leftcopy.chx@gmail.com> > wrote: > > > >> Eli Zaretskii <eliz@gnu.org> writes: > >> > >> >> Date: Tue, 18 Jun 2013 17:59:09 +0530 > >> >> From: C K Kashyap <ckkashyap@gmail.com> > >> >> > >> >> 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 > ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.1910.1371558556.22516.help-gnu-emacs@gnu.org>]
* Re: help needed setting up etags on Windows [not found] <mailman.1910.1371558556.22516.help-gnu-emacs@gnu.org> @ 2013-08-28 11:53 ` Glen Stark 0 siblings, 0 replies; 11+ messages in thread From: Glen Stark @ 2013-08-28 11:53 UTC (permalink / raw) To: help-gnu-emacs On Tue, 18 Jun 2013 17:59:09 +0530, C K Kashyap wrote: > Hi folks, > > 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. > > Regards, > Kashyap I can't speak specifically to cygwin, but this is what I do under gnu/ linux, and I don't see any reason it would fail under cygwin. I'm happy with the results with the exception that I can only do a single source tree (so far). I find the results better for C++ than etags. 1. From the cygwin installer, install gnu-global or gtags (I don't know the name in cygwin). Alternatively install from tarball. 2. In the root of your source tree, run gtags. This will create three files containing tagging information. 3. Install ggtags using emacs package manager. 4. alt-x ggtags-mode will start ggtags mode. From there alt-. will jump to a given tag. See ggtags docs for further usage. Hope that helps. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-08-28 11:53 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-18 12:29 help needed setting up etags on Windows C K Kashyap 2013-06-18 12:37 ` Doug Lewan 2013-06-18 12:41 ` C K Kashyap 2013-06-18 12:53 ` C K Kashyap 2013-06-18 16:15 ` Eli Zaretskii 2013-06-19 0:46 ` Hongxu Chen 2013-06-19 4:24 ` C K Kashyap 2013-06-19 12:16 ` Ludwig, Mark 2013-06-19 13:02 ` Hongxu Chen 2013-06-19 17:39 ` C K Kashyap [not found] <mailman.1910.1371558556.22516.help-gnu-emacs@gnu.org> 2013-08-28 11:53 ` Glen Stark
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).