|
[Sponsors] |
Quick navigation of source code etags definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 28, 2008, 17:05 |
Anyone here uses emacs + etags
|
#1 |
New Member
M. Jensen
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
Anyone here uses emacs + etags on source code files? Or perhaps there's another tool than etags, that can be used?
The reason to use such tools is for quickly navigating to program code definitions like it is possible in visual studio under windows. I think one needs to go to ~/OpenFOAM/OpenFOAM-1.5.x/src and type something like: find . -name "*.[chCH]" -print | | etags - to create the tags table. Is this right, and is there anything else to consider or know about? Would this be all that's required or necessary for quickly jumping around, i.e. see class definitions? |
|
December 28, 2008, 19:35 |
I use Netbeans to do it. There
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
I use Netbeans to do it. There's a openFoamWiki article about setting it all up.
|
|
December 29, 2008, 02:22 |
Hi,
I use cscope, but not f
|
#3 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 |
Hi,
I use cscope, but not frequently (yet) ... http://cscope.sourceforge.net/ http://meditate.pdl.cmu.edu/pdl-emacs-talk-20040608.pdf Try xcscope.el and ascope.el Fabian |
|
December 29, 2008, 19:19 |
Hi,
Thanks both... I don't
|
#4 |
New Member
M. Jensen
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
Hi,
Thanks both... I don't like netbeans, kdevelop and eclipse but I got emacs working with cscope: download latest: http://cscope.sourceforge.net/#downloads I already got cscope installed as part of my distro, therefore: As I remember it, I took these 2 files (from contrib-dir) and placed them here: /usr/local/bin/cscope-indexer (chmod +x) /usr/share/emacs/22.2/lisp/xcscope.el (where /usr/share/emacs/22.2 is emacs load path) Then I added to .emacs: (setq cscope-do-not-update-database t) ;;(load-file "/usr/share/emacs/22.2/lisp/xcscope.el") (require 'xcscope) Not sure about what 2nd line does, I think third line does the same, anyway it seem to work the same whether or not 2nd line is commented or not. Then I went to ~/OpenFOAM/ and ran (build database recursively, not sure if "q" for quick indexing works): cscope -R -q -b & And everything seem to work... I'm happy about this, I can quickly dig into symbols and files. Thanks again, if you have any comments or ideas please let me know. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface reaction source definition. | windhair | CFX | 0 | March 17, 2008 05:36 |
Definition of point source | George | Siemens | 0 | February 22, 2007 04:19 |
Please help me run UDF code for source | Suga | FLUENT | 1 | February 3, 2006 03:40 |
2D ALE Source Code | Shukla | Main CFD Forum | 5 | October 27, 2005 00:44 |
SIMPLE/QUICK source code | Ray | Main CFD Forum | 7 | May 1, 2001 12:32 |