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#43086: [PATCH] Allow tags backend to not query for TAGS file Date: Sat, 07 Sep 2024 09:18:46 +0300 Message-ID: <86v7z8yojd.fsf@gnu.org> References: <87k0xjue75.fsf@posteo.net> <87zfoog084.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 43086@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 07 08:54:31 2024 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 1smpL4-0007zZ-Uj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Sep 2024 08:54:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smpKd-0001n8-P0; Sat, 07 Sep 2024 02:54:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smpKb-0001mK-Sd for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 02:54:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smpKb-00027L-JN for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 02:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=HM3OsgZqlAaUJikbsRdlJJFr6nXK0f8EBL1kowY1p5c=; b=P1LNfw/XoHrdBpRhveNvGA6WH1D32ZfLIwCqGvrC9FptXpzYBKDEIzjwvvVs1xqnbJntYBBpKfG0kHgyA3+9yT95X0aDuGTfV85qg6mfuebzPuHTZlOwPxMB7eZiU5avVxMf3RKbhBeYKHzIRPYbiYoMj6J+bBSdIZq4piASeu1MWICNEQn0ogTf8y+bG9LEiLpS3hN/vtFm2uGKlBk63MeITOJmM722bBslxEy5rWHbPs+HFcwiwU4n35gQvN53b/AsiQi732Dx0SG1lBK2ayDH9x9iLeEEWCzwQqISkq1Leu8WMGkoXcI85FZcQzhS+RRQQPx/URPaxhMzEvnoCg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smpKb-0007Qf-Vf for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 02:54: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: Sat, 07 Sep 2024 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43086-submit@debbugs.gnu.org id=B43086.172569200128499 (code B ref 43086); Sat, 07 Sep 2024 06:54:01 +0000 Original-Received: (at 43086) by debbugs.gnu.org; 7 Sep 2024 06:53:21 +0000 Original-Received: from localhost ([127.0.0.1]:54611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smpJx-0007PV-1i for submit@debbugs.gnu.org; Sat, 07 Sep 2024 02:53:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smpJt-0007OR-Hk for 43086@debbugs.gnu.org; Sat, 07 Sep 2024 02:53:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smomW-00065c-3g; Sat, 07 Sep 2024 02:18:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HM3OsgZqlAaUJikbsRdlJJFr6nXK0f8EBL1kowY1p5c=; b=csFIDJin8UvF 2BmPPixXo/lgLVKZvr8SQLDLxQH0GFs6335kJ6wbHrJ+yIRGaPNlhM4J9oydG9RCYnM6tL9z25Yi+ RJTMrkSN1tutTv6PSr2wawSboxrZMpuP15Fx7YU+SggMsMRNQ41Bfea5cdWF8WyrKcLmN3pwN4vhB UyIImFAR1ijQTTH9+DE7dyL7S9Mf0u60ZYEMsMjjwd/PelPkCDxSbgbUne5q4qVlNN3v+rlZ7fUKm OlYdaUmm34k+jOLQwQPQgbL4Z5BirOze9SBu0EYfeDObd5xx0le1IsJM1u40PGSh5wDjWpJGTl1hJ nMzjCRMgwguFqOlyB+HNLw==; In-Reply-To: (message from Dmitry Gutov on Sat, 7 Sep 2024 01:16:46 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291344 Archived-At: > Cc: 43086@debbugs.gnu.org > Date: Sat, 7 Sep 2024 01:16:46 +0300 > From: Dmitry Gutov > > On 03/09/2024 19:39, Philip Kaludercic wrote: > >>> I could imagine this might be extended to allow an auto-generate option, > >>> but that feature seems out of scope of this patch, and probably would > >>> require some interoperation with project.el. > >> Indeed. Actually, I have an old, WIP patch for tag file > >> auto-generation which, yes, uses project.el. I can post it again if > >> you're curious. > > Hasn't this issue been resolved by `etags-regen-mode'? > > The part quoted above was, I think. > > What might still be missing, is functioning better without having a tags > table generated - after all etags-regen-mode is off by default, and it > might not work for certain projects anyway. > > Maybe just like this? This makes Xref identifier completion not query > for TAGS unless already loaded. In many cases that would be TRT, > although `C-u M-.` seems to regress (seems like we *would* want to query > eagerly there). I don't understand why the obvious way of asking the user whether they would like to generate the tags table is not the solution here. What did I miss?