all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emac in large projects
Date: Mon, 19 Feb 2007 19:58:29 +0100	[thread overview]
Message-ID: <871wkm7z56.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1171900635.549711.91890@m58g2000cwm.googlegroups.com

"Ask" <ask.q@indiatimes.com> writes:
> I am a new learner of Emacs. How is it used for large projects. At
> least, how do we find all occurrences of a function, how do we jump to
> definition of a variable or function. There are other tools to do that
> - gid, cscope etc. Can it be done from within the emacs editor
> itself ?

There are add-on IDE's.

For example, have a look at http://cedet.sourceforge.net  for C/C++ development,
or at http://common-lisp.net/project/slime for Common Lisp development.


For the specific feature you ask, you can build a TAGS file for your
project, scanning all the source and header files with the etags
command, and using the find-tag command (M-.) to find definitions, etc.

For example, I put this target in my Makefile:

etags tags:
	find $$(pwd) \( -name \*.lisp \
					-o -name \*.[hc] \
					-o -name \*.hh -o -name \*.cc \
				\) -print | etags -

M-x tags-reset-tags-table RET
M-x compile RET tags RET

Then I type the name of a function and M-.
it asks for confirmation of the name of the function,
and for the path to the TAGS file built by make tags above, (the first
time after a tags-reset-tags-table), and the goes to the definition.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

HEALTH WARNING: Care should be taken when lifting this product,
since its mass, and thus its weight, is dependent on its velocity
relative to the user.

  parent reply	other threads:[~2007-02-19 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 15:57 emac in large projects Ask
2007-02-19 18:52 ` Robert Thorpe
2007-02-19 18:58 ` Pascal Bourguignon [this message]
2007-02-19 19:21   ` Tassilo Horn
2007-02-20 15:26     ` Hadron
2007-03-01 14:49 ` Ken Goldman
2007-03-01 16:07   ` Hadron
  -- strict thread matches above, loose matches on Subject: below --
2007-02-20 21:42 A Soare
     [not found] <mailman.4825.1172007761.2155.help-gnu-emacs@gnu.org>
2007-02-20 22:43 ` Hadron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871wkm7z56.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.