From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Kettlewell Newsgroups: gmane.emacs.bugs Subject: find-tag and duplicate tags Date: Wed, 22 Jan 2003 12:47:51 +0000 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043239702 6404 80.91.224.249 (22 Jan 2003 12:48:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2003 12:48:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bKIl-0001er-00 for ; Wed, 22 Jan 2003 13:48:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bKJQ-0000WT-03 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 22 Jan 2003 07:49:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bKJB-0000OC-00 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2003 07:48:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bKIj-0008RS-00 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2003 07:48:18 -0500 Original-Received: from mail.ncipher.com ([62.190.84.24]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bKIL-00087Z-00 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2003 07:47:53 -0500 Original-Received: from rollercoaster.ncipher.com ([172.23.135.139] ident=mail) by mail.ncipher.com with esmtp (Exim 3.34 #1) id 18bKIJ-0001iw-00 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2003 12:47:51 +0000 Original-Received: from rjk by rollercoaster.ncipher.com with local (Exim 3.35 #1 (Debian)) id 18bKIJ-0000MZ-00 for ; Wed, 22 Jan 2003 12:47:51 +0000 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4282 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4282 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22 on raven, modified by Debian configured using `configure i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I have a bunch of related C files which contain static functions, and some of the functions in different files have the same name. This is confusing enough for humans, and I'd rather the original author of the code hadn't done it, but it's a disaster when I try to use find-tag: if I ask for find-tag in one file, and there's a static function of the right name in that file, I still get presented witht the definition in some other file. I think the best approach would be for find-tag to always choose the "nearest" available version of a tag, for some suitable definition of "near". For instance, the currently visited file should always be nearer than any other file; files in the same directory might be nearer than files in another directory; etc. Recent input: s C-s f i n d M-. f i n d C-h k M-. f i n d 0 t a t - a C-g C-x o C-x o M-x C-g Recent messages: Auto-saving...done Mark set [3 times] Auto-saving...done Mark set Mark saved where search started Mark set [2 times] Loading /usr/lib/emacs/21.2/i386-debian-linux-gnu/fns-21.2.1.el (source)...done Type C-x 1 to remove help window. C-M-v to scroll the help. Loading emacsbug...done byte-code: Quit call-interactively: Quit