From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lowell Kirsh Newsgroups: gmane.emacs.help Subject: Re: how to find delaration of a variable Date: Thu, 22 Apr 2004 18:36:45 -0700 Organization: Department of Computer Science, UBC Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082684932 25574 80.91.224.253 (23 Apr 2004 01:48:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2004 01:48:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 23 03:48:46 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGpo3-0004Fh-00 for ; Fri, 23 Apr 2004 03:48:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGpmK-0001mH-Qr for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Apr 2004 21:46:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cs.ubc.ca!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: cascade.cs.ubc.ca Original-X-Trace: mughi.cs.ubc.ca 1082684205 28561 142.103.7.7 (23 Apr 2004 01:36:45 GMT) Original-X-Complaints-To: usenet@cs.ubc.ca Original-NNTP-Posting-Date: Fri, 23 Apr 2004 01:36:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322 X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:122607 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17896 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17896 thanks. it works well most of the time. I have one question though: sometimes it will take me to the declaration of the a variable of the same name but in a different file. Is there any way I can make sure it looks in the current file for the declaration before going to other file? Lowell David Kastrup wrote: > Lowell Kirsh writes: > > >>Is there an elisp function similar to find-variable-at-point that >>would work for non-lisp code? I'd like to use it to jump to the >>declaration of whatever variable is at point. > > > First run > etags *.c *.h > > and then press M-. on the variable in question (specifying the local > TAGS file that etags generated, if you get asked for it). >