From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: tags, yet again Date: 29 Aug 2005 23:47:46 -0400 Message-ID: <87d5nwgk65.fsf@buug.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125374008 32761 80.91.229.2 (30 Aug 2005 03:53:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 03:53:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 05:53:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9xA8-0005Cp-5F for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Aug 2005 05:51:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9xEF-0001vn-8p for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Aug 2005 23:56:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E9xAZ-0000qf-PY for help-gnu-emacs@gnu.org; Mon, 29 Aug 2005 23:52:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E9xAS-0000oW-LA for help-gnu-emacs@gnu.org; Mon, 29 Aug 2005 23:52:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E9xAS-0000cQ-Bc for help-gnu-emacs@gnu.org; Mon, 29 Aug 2005 23:52:12 -0400 Original-Received: from [198.144.194.12] (helo=disorder.primate.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E9x8c-0001eu-TC for help-gnu-emacs@gnu.org; Mon, 29 Aug 2005 23:50:19 -0400 Original-Received: from disorder.primate.net (localhost [127.0.0.1]) by disorder.primate.net (8.13.4/8.13.4/Debian-3) with ESMTP id j7U3lrPH014006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 29 Aug 2005 20:47:53 -0700 Original-Received: from localhost (localhost [[UNIX: localhost]]) by disorder.primate.net (8.13.4/8.13.4/Submit) id j7U3lopt014005 for help-gnu-emacs@gnu.org; Mon, 29 Aug 2005 20:47:50 -0700 X-Authentication-Warning: disorder.primate.net: itz set sender to itz@buug.org using -f Original-Received: from itz by unicorn with local (Exim 3.36 #1 (Debian)) id 1E9x6A-0000n3-00; Mon, 29 Aug 2005 23:47:46 -0400 Original-To: help-gnu-emacs@gnu.org X-Unicorn-Archive: yes Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (disorder.primate.net [127.0.0.1]); Mon, 29 Aug 2005 20:47:53 -0700 (PDT) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29079 Archived-At: Does anyone actually understand the algorithm for selecting a location to jump to with Alt-. ? The documentation for find-tag-noselect says: When there are multiple matches for a tag, more exact matches are found first. But, I've frequently seen Alt-. to jump to a differently capitalized version of the symbol under point first, even when there's an exact match available. I thought the following hack would fix it: (defadvice tag-exact-match-p (around tag-exact-case-sensitive activate compile) "Exact means exact, ie. case-sensitive." (let ((case-fold-search nil)) ad-do-it)) But _no_, it still happens . This is actually a longstanding gripe which made me abandon tags in favor of other similar mechanisms like imenu and id-utils. But tags do have some endearing qualities, and there's the mystery aspect of the situation. So, how to make the exact match to be selected first, _always_? -- Optimist: We're only two weeks behind schedule. Pessimist: The schedule is a whole two weeks ahead of us.