From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#2544: 23.0.60; Could etags please try find a local tag first? Date: Tue, 20 Jul 2021 14:54:39 +0300 Message-ID: <83lf615hfk.fsf@gnu.org> References: <7f9b11c90903021336o775a3f75i8bd89f3ae4540cb7@mail.gmail.com> <878s22nyuj.fsf@gnus.org> <8335sa70wp.fsf@gnu.org> <417d5d01-c3a9-a75e-b134-7f1847749842@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28123"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, matzikratzi@gmail.com, 2544@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 20 14:07:34 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5oX8-00076F-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 14:07:34 +0200 Original-Received: from localhost ([::1]:60704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oX7-000587-Aq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 08:07:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5oL0-000172-KS for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 07:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5oKz-0006sp-L4 for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5oKz-0002G2-Kv for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 07:55:01 -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, 20 Jul 2021 11:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2544 X-GNU-PR-Package: emacs Original-Received: via spool by 2544-submit@debbugs.gnu.org id=B2544.16267820878631 (code B ref 2544); Tue, 20 Jul 2021 11:55:01 +0000 Original-Received: (at 2544) by debbugs.gnu.org; 20 Jul 2021 11:54:47 +0000 Original-Received: from localhost ([127.0.0.1]:33035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oKl-0002F4-Ci for submit@debbugs.gnu.org; Tue, 20 Jul 2021 07:54:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oKk-0002En-Gx for 2544@debbugs.gnu.org; Tue, 20 Jul 2021 07:54:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5oKe-0006ih-TZ; Tue, 20 Jul 2021 07:54:40 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4086 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5oKe-00031n-G4; Tue, 20 Jul 2021 07:54:40 -0400 In-Reply-To: <417d5d01-c3a9-a75e-b134-7f1847749842@yandex.ru> (message from Dmitry Gutov on Tue, 20 Jul 2021 02:00:31 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210334 Archived-At: > Cc: matzikratzi@gmail.com, 2544@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 20 Jul 2021 02:00:31 +0300 > > On 19.07.2021 18:56, Eli Zaretskii wrote: > > As for the original request: I guess we could satisfy that by having > > Xref sort the matches so that those in the current buffer come first > > in the display we show in the*XREF* buffer? Dmitry, would it make > > sense to add such an option, and if so, would it be hard to do so? In > > xref--alistify, perhaps, or in xref--analyze? > > It would probably better work as an etags option (residing next to > etags-xref-find-definitions-tag-order): Xref, in general, cannot know in > advance whether a given tags resides in the current buffer, and > following all tags is relatively costly. But then this feature will be reserved only for the etags backend, no? Maybe there should be a backend-specific sorting method or something? > I was thinking to suggest having that behavior on by default (and maybe > avoid adding a new variable altogether), but it seems to conflict with > the intention behind etags-xref-find-definitions-tag-order, so probably not. Right.