CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Quick navigation of source code etags definition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 28, 2008, 17:05
Default Anyone here uses emacs + etags
  #1
New Member
 
M. Jensen
Join Date: Mar 2009
Posts: 6
Rep Power: 17
newsboost is on a distinguished road
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?
newsboost is offline   Reply With Quote

Old   December 28, 2008, 19:35
Default I use Netbeans to do it. There
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
I use Netbeans to do it. There's a openFoamWiki article about setting it all up.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   December 29, 2008, 02:22
Default Hi, I use cscope, but not f
  #3
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
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
braennstroem is offline   Reply With Quote

Old   December 29, 2008, 19:19
Default Hi, Thanks both... I don't
  #4
New Member
 
M. Jensen
Join Date: Mar 2009
Posts: 6
Rep Power: 17
newsboost is on a distinguished road
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.
newsboost is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:36.