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 13:35:25 -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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430156212 8276 80.91.229.3 (27 Apr 2015 17:36:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 17:36:52 +0000 (UTC) Cc: dgutov@yandex.ru, 19468@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 27 19:36:36 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 1Ymmx9-0002MW-QV for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2015 19:36:19 +0200 Original-Received: from localhost ([::1]:56826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymmx9-0000pK-8J for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2015 13:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymmx1-0000pA-J7 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 13:36:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymmwu-000688-2J for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 13:36:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymmwt-000682-VX for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 13:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ymmwt-0000fY-As for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 13:36:03 -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 17:36: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.14301561302512 (code B ref 19468); Mon, 27 Apr 2015 17:36:03 +0000 Original-Received: (at 19468) by debbugs.gnu.org; 27 Apr 2015 17:35:30 +0000 Original-Received: from localhost ([127.0.0.1]:41472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmmwL-0000eR-4y for submit@debbugs.gnu.org; Mon, 27 Apr 2015 13:35:29 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:48810) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmmwJ-0000eH-Mp for 19468@debbugs.gnu.org; Mon, 27 Apr 2015 13:35:28 -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 t3RHZPrZ014073; Mon, 27 Apr 2015 13:35:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 67D4619DA; Mon, 27 Apr 2015 13:35:25 -0400 (EDT) In-Reply-To: <83r3r5wqwv.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 27 Apr 2015 18:07:44 +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 <2802> : streams <1429562> : uri <1916914> 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:102097 Archived-At: >> I don't understand exactly the scenario you're talking about. Can you >> give a recipe? > > Yes: > > emacs -Q > C-x C-f lisp/simple.el RET > M-. find-tag RET > > This puts you at the first line of find-tag, without showing the other > possible symbols whose names contain "find-tag" as their substring. Yes, that's the expected behavior, and matches the behavior of Emacs-24. Is that a behavior you like or a behavior you dislike? > By contrast, this: > > emacs -Q > C-x C-f lisp/simple.el RET > M-x load-library RET xref RET > M-x xref-etags-mode RET > M-. find-tag RET > > does NOT show the definition of find-tag, but instead opens an *xref* > buffer with possible matches, and expects you to pick one of them (and Indeed, one of the differences in the new UI is that we don't have the "C-u M-. lets you cycle among matches" any more. Instead we pop up an *xref* buffer where you can choose the match that interests you. I find this easier (and generally faster) to use. This is an issue that only affects the UI (not the API and hence not the backends), so we can easily fix it by providing either different UIs, or some config var, or ... > 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. > I guess the elisp-mode back-end returns just one candidate, whereas > the etags back-end returns a list. Exactly. > But it's confusing to have such evident differences just because you > changed the back-end, I think. But popping up the *xref* buffer when there's only one element in it doesn't make much sense I think. Stefan