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: Wed, 29 Apr 2015 18:46:06 +0300 Message-ID: <834mnzuedd.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> <838udcwbdc.fsf@gnu.org> <553FFC99.5080701@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430322559 28287 80.91.229.3 (29 Apr 2015 15:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 15:49:19 +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 Wed Apr 29 17:49:09 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 1YnUEJ-0000pV-0r for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 17:48:55 +0200 Original-Received: from localhost ([::1]:39775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnUEI-0004qe-Cu for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 11:48:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnUDZ-0003u7-5K for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:48:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnUDT-000691-4R for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:48:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnUDT-00068x-1W for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YnUDS-0008Hi-PX for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 11:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2015 15:48:02 +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.143032242531744 (code B ref 19468); Wed, 29 Apr 2015 15:48:02 +0000 Original-Received: (at 19468) by debbugs.gnu.org; 29 Apr 2015 15:47:05 +0000 Original-Received: from localhost ([127.0.0.1]:56530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnUCW-0008Fv-Q4 for submit@debbugs.gnu.org; Wed, 29 Apr 2015 11:47:05 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:49423) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnUCU-0008FA-Ib for 19468@debbugs.gnu.org; Wed, 29 Apr 2015 11:47:03 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NNK00E00RGQ6Y00@mtaout29.012.net.il> for 19468@debbugs.gnu.org; Wed, 29 Apr 2015 18:44:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNK00ECJRQV4V10@mtaout29.012.net.il>; Wed, 29 Apr 2015 18:44:55 +0300 (IDT) In-reply-to: <553FFC99.5080701@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:102230 Archived-At: > Date: Wed, 29 Apr 2015 00:33:13 +0300 > From: Dmitry Gutov > CC: monnier@IRO.UMontreal.CA, 19468@debbugs.gnu.org > > You could have the few "best matches" listed separately in the > beginning of the list, followed by the grouping shown today. > > What's "best matches"? I suggested using `tag-exact-match-p' in the etags backend. What's your take on this? I'd suggest first an exact match, followed by any matches that are exact but for letter-case. Note that I specifically didn't mention tag-exact-match-p, because of the implicit tag name issue, see below. > - 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. > > Without using the order, in which matches are returned by the backend, we can't even know what the "best matches" are. Of course, we can: see above. Moreover, ideally the API to the back-end should allow the UI to control the matches applied by the back-end, so that the UI gets only the matches it wants in the first place. > What about the rest of the predicates in `find-tag-tag-order' set by `etags-recognize-tags-table'? Should we disregard all of them? Not sure what is included in "the rest". For example, I don't think it makes sense to disregard tag-implicit-name-match-p, since many tags don't have explicit names. In general, I think it would be good to have a user option that controls which predicates are used by the etags back-end. I think we should group the predicates into meaningful groups (e.g., it makes no sense to use tag-exact-match-p without tag-implicit-name-match-p). The default list of the predicates should IMO include these: tag-exact-match-p tag-implicit-name-match-p tag-symbol-match-p File-name matches and word matches are only useful in specialized searches, and partial matches are just a kind of "fire escape".