From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: tags, yet again
Date: Tue, 30 Aug 2005 10:49:12 -0600 [thread overview]
Message-ID: <df22m9$8gl$1@sea.gmane.org> (raw)
In-Reply-To: <87d5nwgk65.fsf@buug.org>
Ian Zimmerman wrote:
> 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.
The source for find-tag-noselect says:
;; find-tag-in-order does the real work.
And the source for find-tag-in-order says:
;; Internal tag finding function.
;; PATTERN is a string to pass to second arg SEARCH-FORWARD-FUNC, and to
;; any member of the function list ORDER (third arg). If ORDER is nil,
;; use saved state to continue a previous search.
;; Fourth arg MATCHING is a string, an English '-ing' word, to be used in
;; an error message.
;; Fifth arg NEXT-LINE-AFTER-FAILURE-P is non-nil if after a failed match,
;; point should be moved to the next line.
;; Algorithm is as follows. For each qualifier-func in ORDER, go to
;; beginning of tags file, and perform inner loop: for each naive match for
;; PATTERN found using SEARCH-FORWARD-FUNC, qualify the naive match using
;; qualifier-func. If it qualifies, go to the specified line in the
;; specified source file and return. Qualified matches are remembered to
;; avoid repetition. State is saved so that the loop can be continued.
> 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.
,----[ C-h v tags-case-fold-search RET ]
| tags-case-fold-search's value is default
|
| Documentation:
| *Whether tags operations should be case-sensitive.
| A value of t means case-insensitive, a value of nil means case-sensitive.
| Any other value means use the setting of `case-fold-search'.
|
| You can customize this variable.
|
| Defined in `etags'.
`----
--
Kevin Rodgers
prev parent reply other threads:[~2005-08-30 16:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 3:47 tags, yet again Ian Zimmerman
2005-08-30 16:49 ` Kevin Rodgers [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='df22m9$8gl$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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).