unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Klaus Berndl <klaus.berndl@sdm.de>
Subject: Re: Nifty C++ features
Date: 27 Jan 2004 17:47:09 +0100	[thread overview]
Message-ID: <u8yjt1gqa.fsf@sdm.de> (raw)
In-Reply-To: bv60te$jhv$1@news.net.uni-c.dk

On Tue, 27 Jan 2004, David Rasmussen wrote:

>  How do I get emacs to open the file that a variable, function or class
>  is defined in, given that it is in the current directory?
>  
>  Example:
>  
>  int main()
>  {
>     Position pos;
>     cout << pos << endl;
>  
>     Moves mvs;
>     generateMoves(pos,mvs);
>     for (int i = 0; i < mvs.size(); ++i)
>       cout << mvs[i] << " ";
> }
>  
>  I want to be able to place the cursor anywhere in the "generateMoves"
>  string, and press some keys, and then emacs should open, in a new
>  buffer, the file where generateMoves is defined.

For this you either need etags (ctags) - which is already shipped with Emacs
or the latest cedet-library (incl. semantic 2.0) which offers such
functionality too - current released beta is not perfect (AFAIK) but the
CVS-code of this library runs pretty well.

Klaus

>  
>  /David

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220

      parent reply	other threads:[~2004-01-27 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-27 15:51 Nifty C++ features David Rasmussen
2004-01-27 16:08 ` Bruce Ingalls
2004-01-27 16:47 ` Klaus Berndl [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=u8yjt1gqa.fsf@sdm.de \
    --to=klaus.berndl@sdm.de \
    /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.
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).