From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19468: 25.0.50; UI inconveniences with M-. Date: Mon, 27 Apr 2015 19:19:16 -0400 Message-ID: References: <83zja6b3tc.fsf@gnu.org> <54A24079.4020902@yandex.ru> <54A2FF47.6010207@yandex.ru> <54A86135.7080004@yandex.ru> <54A90002.7080009@gmx.at> <54A9C3FB.7000602@yandex.ru> <54AA3881.3080304@gmx.at> <54ABBB47.7010603@yandex.ru> <837fszx7iy.fsf@gnu.org> <83r3r5wqwv.fsf@gnu.org> <553EBBBF.6070509@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430176830 3191 80.91.229.3 (27 Apr 2015 23:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 23:20:30 +0000 (UTC) Cc: 19468@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 01:20:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YmsJy-0001DJ-J7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 01:20:14 +0200 Original-Received: from localhost ([::1]:58065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmsJx-0008Rp-Tx for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2015 19:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmsJt-0008Qo-SC for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 19:20:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmsJp-000768-R3 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 19:20:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmsJp-00073L-Jp for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 19:20:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YmsJo-0007vq-63 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 19:20:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Apr 2015 23:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19468-submit@debbugs.gnu.org id=B19468.143017676130435 (code B ref 19468); Mon, 27 Apr 2015 23:20:03 +0000 Original-Received: (at 19468) by debbugs.gnu.org; 27 Apr 2015 23:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:41751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmsJ6-0007uo-Nf for submit@debbugs.gnu.org; Mon, 27 Apr 2015 19:19:21 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53873) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmsJ4-0007ue-6C for 19468@debbugs.gnu.org; Mon, 27 Apr 2015 19:19:18 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3RNJGwN028342; Mon, 27 Apr 2015 19:19:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 794491E3F; Mon, 27 Apr 2015 19:19:16 -0400 (EDT) In-Reply-To: <553EBBBF.6070509@yandex.ru> (Dmitry Gutov's message of "Tue, 28 Apr 2015 01:44:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5289=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5289> : inlines <2804> : streams <1429693> : uri <1917113> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102136 Archived-At: >>> btw the defun I'm probably after is not the first or second hit there; >>> looks like the candidates are arranged in the alphabetical order of >>> the *.el files). >> Indeed, the ordering looks incorrect. This is a bug. > The idea here is to group candidates belonging to different > files together. That makes a lot of sense when the candidates are equally likely to be The One that the user's looking for. In the case of etags I think the problem comes from the substring matching it uses. 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)? Stefan