From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matzi Kratzi Newsgroups: gmane.emacs.devel Subject: etags Date: Mon, 9 Nov 2009 07:53:35 +0100 Message-ID: <7f9b11c90911082253h4defb4acwbb2ea1e42e87c685@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1257749643 21253 80.91.229.12 (9 Nov 2009 06:54:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 06:54:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 09 07:53:55 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7O8O-0006CX-0s for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 07:53:52 +0100 Original-Received: from localhost ([127.0.0.1]:53974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7O8N-0000lg-7K for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 01:53:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7O8F-0000lP-2F for emacs-devel@gnu.org; Mon, 09 Nov 2009 01:53:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7O8A-0000kV-FV for emacs-devel@gnu.org; Mon, 09 Nov 2009 01:53:42 -0500 Original-Received: from [199.232.76.173] (port=44933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7O8A-0000kS-6O for emacs-devel@gnu.org; Mon, 09 Nov 2009 01:53:38 -0500 Original-Received: from mail-fx0-f225.google.com ([209.85.220.225]:53595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7O89-0004nL-O1 for emacs-devel@gnu.org; Mon, 09 Nov 2009 01:53:37 -0500 Original-Received: by fxm25 with SMTP id 25so907790fxm.26 for ; Sun, 08 Nov 2009 22:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=MDSg1fai8a61jXR9X3a6wXV7lYc7bhamCr/trh/KNZo=; b=l2YxZO1rks5nHwROwW9ILPG78wqKSBeke/m94evYvYkMBFtRK9eFCV6zHVW2tgZlf4 zFobxXcdVUNSn2Q1yAnEYpeSv6EdWuVuSLjEBaEipxMo0nvapa2f42MazEZCZtv0Kp/p MvkJcMPiYm3I/6DPOpMc5RFfd/jtq89F1plhE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZDc+rkbJM8v+lq3LjDnWYNhnuTcYW9dH9KZTd19oOqY45IdwYYwGO9jLJOR+d0B8AJ 6mu9y1AvtcG9jIEudzPY7WyUO9BroBVYKYJRlI5E4upV7KuIK4TWy4uAhCabUfnccvvc GASjwUi0+/8vz0b7b/tbYM5mhCsvA+fw/brz4= Original-Received: by 10.239.168.157 with SMTP id k29mr862502hbe.67.1257749615244; Sun, 08 Nov 2009 22:53:35 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116736 Archived-At: Hi, I use etags a lot and find it invaluable for navigation in all code - especially code that I am not familiar with. I often find functions in several files that have the same name. I think it would be good if etags could "prefer" find the function in the buffer where I am calling find-tag from. In the files below, go to file b and place the cursor at "default_handler();". Wouldn't it make sense to end up in the the same buffer? Anyway, thanks a lot for all good work. /Mats file a.c ---------------8<---------------------- #include static void default_handler(void) { printf("Default in a!\n"); } void a(void) { default_handler(); } ---------------8<---------------------- ---------------8<---------------------- #include static void default_handler(void) { printf("Default in b!\n"); } int main(void) { default_handler(); a(); return 0; } ---------------8<----------------------