From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19468: 25.0.50; UI inconveniences with M-. Date: Tue, 28 Apr 2015 17:55:43 +0300 Message-ID: <838udcwbdc.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430232995 20728 80.91.229.3 (28 Apr 2015 14:56:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 14:56:35 +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 16:56:21 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 1Yn6vs-0003jT-8M for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 16:56:20 +0200 Original-Received: from localhost ([::1]:33948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6vr-0003jJ-PL for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 10:56:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6vj-0003Zb-0b for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:56:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn6vc-0007zW-Pg for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:56:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn6vc-0007zM-Lv for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yn6vc-0002v8-Dc for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2015 10:56:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2015 14:56:04 +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.143023295911208 (code B ref 19468); Tue, 28 Apr 2015 14:56:04 +0000 Original-Received: (at 19468) by debbugs.gnu.org; 28 Apr 2015 14:55:59 +0000 Original-Received: from localhost ([127.0.0.1]:42873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yn6vW-0002uh-Un for submit@debbugs.gnu.org; Tue, 28 Apr 2015 10:55:59 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:51154) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yn6vT-0002uS-O9 for 19468@debbugs.gnu.org; Tue, 28 Apr 2015 10:55:56 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NNI00400UKGAS00@a-mtaout21.012.net.il> for 19468@debbugs.gnu.org; Tue, 28 Apr 2015 17:55:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNI004UBUT1AI10@a-mtaout21.012.net.il>; Tue, 28 Apr 2015 17:55:49 +0300 (IDT) In-reply-to: <553EBBBF.6070509@yandex.ru> X-012-Sender: halo1@inter.net.il 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:102166 Archived-At: > Date: Tue, 28 Apr 2015 01:44:15 +0300 > From: Dmitry Gutov > CC: 19468@debbugs.gnu.org > > 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. Sorting the files alphabetically after that is the first natural choice, but how else to do it better? You could have the few "best matches" listed separately in the beginning of the list, followed by the grouping shown today. > - Should xref always try to preserve the order in which xrefs are returned? No! This would make the UI even more dependent on the back-ends. > - Suppose one xref in a.el is returned before all xrefs in b.el. And another xref in a.el is returned after. In what order will we display a.el and b.el? See above: the best matches could be listed irrespective of the files they were found in.