Subject: bug#19468: 25.0.50; UI inconveniences with M-.

From: Eli Zaretskii <[email-masked]>
Date: Tue, 28 Apr 2015 17:59:05 +0300

> From: Stefan Monnier <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> Date: Mon, 27 Apr 2015 19:19:16 -0400
> 
> Can't etags do better than substring matching and only return matches
> that actually have the requested name (and maybe fallback on substring
> matching if there's no exact match)?

See the various *-match-p functions in etags.el, which can be used for
that.  You will see in etags-recognize-tags-table that etags.el
programs the order in which the matches are found into the
find-tag-tag-order variable.  We could remove some of the criteria
from that list, preferably under control of some user option, thus
making the results more accurate.