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 19:56:53 +0300 Message-ID: <838s206i0a.fsf@gnu.org> References: <7f9b11c90903021336o775a3f75i8bd89f3ae4540cb7@mail.gmail.com> <878s22nyuj.fsf@gnus.org> <8335sa70wp.fsf@gnu.org> <417d5d01-c3a9-a75e-b134-7f1847749842@yandex.ru> <83lf615hfk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32586"; 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 18:58:09 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 1m5t4L-0008Ji-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 18:58:09 +0200 Original-Received: from localhost ([::1]:60124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5t4K-0002wh-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 12:58:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5t4E-0002wY-0m for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 12:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5t4D-0005xH-Po for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 12:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5t4D-00032n-Q3 for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2021 12:58: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 16:58: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.162680022311629 (code B ref 2544); Tue, 20 Jul 2021 16:58:01 +0000 Original-Received: (at 2544) by debbugs.gnu.org; 20 Jul 2021 16:57:03 +0000 Original-Received: from localhost ([127.0.0.1]:35223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5t3G-00031J-FE for submit@debbugs.gnu.org; Tue, 20 Jul 2021 12:57:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5t3E-00030r-82 for 2544@debbugs.gnu.org; Tue, 20 Jul 2021 12:57:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51688) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5t38-00056f-R2; Tue, 20 Jul 2021 12:56:54 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2847 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 1m5t38-0002JV-Eu; Tue, 20 Jul 2021 12:56:54 -0400 In-Reply-To: (message from Dmitry Gutov on Tue, 20 Jul 2021 19:22:41 +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:210381 Archived-At: > Cc: larsi@gnus.org, matzikratzi@gmail.com, 2544@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 20 Jul 2021 19:22:41 +0300 > > > But then this feature will be reserved only for the etags backend, no? > > > > Maybe there should be a backend-specific sorting method or something? > > Not 100% sure how that could work, but I'm reasonably certain that > "prioritize hits in the current file" is mostly relevant to etags. > > Because when one uses more precise backends, "find definition" gets > fewer hits, and you don't really need to choose which ones to start with > -- the current file or otherwise. When a backend returns just one hit, this is a non-issue. The OP specifically described a situation where there are many functions with the same name in the project. That's the use case we are discussing. I don't see how the backend can affect this situation. Especially since the etags backend is also quite accurate. But I'm going to stop arguing. If there isn't enough enthusiasm for implementing this, it will remain a pipe dream, I guess.