From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67687: Feature request: automatic tags management Date: Sun, 31 Dec 2023 17:31:17 +0200 Message-ID: <0799e182-55dd-4d01-81c8-352799972703@gutov.dev> References: <2f86b882-9ec1-f63f-d90b-5f8f7ae114f2@gutov.dev> <58D84A29-9A63-45BA-AD8B-B476CDC931A1@gmail.com> <812729c8-726f-d60e-2603-2d8e588929fd@gutov.dev> <835y0sgg12.fsf@gnu.org> <661f4951-cb0a-5257-63b0-efe71a0d217e@gutov.dev> <75a55999-72b9-40dd-a1b7-5c272956fc4a@gutov.dev> <2ee5f84b-868e-4f7c-9c82-58234c4677a1@gutov.dev> <83jzou3kf3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31631"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 67687@debbugs.gnu.org, eskinjp@gmail.com, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 31 16:32:18 2023 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 1rJxnV-0007yM-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Dec 2023 16:32:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJxnL-0000uR-FA; Sun, 31 Dec 2023 10:32:07 -0500 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 1rJxnG-0000uH-9h for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 10:32:02 -0500 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 1rJxnG-0008S7-1o for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 10:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJxnG-0001iV-I4 for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Dec 2023 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67687 X-GNU-PR-Package: emacs Original-Received: via spool by 67687-submit@debbugs.gnu.org id=B67687.17040366906246 (code B ref 67687); Sun, 31 Dec 2023 15:32:02 +0000 Original-Received: (at 67687) by debbugs.gnu.org; 31 Dec 2023 15:31:30 +0000 Original-Received: from localhost ([127.0.0.1]:46795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJxmj-0001cF-7I for submit@debbugs.gnu.org; Sun, 31 Dec 2023 10:31:29 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJxmh-0001Vq-3e for 67687@debbugs.gnu.org; Sun, 31 Dec 2023 10:31:27 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BA41E5C00C4; Sun, 31 Dec 2023 10:31:20 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 31 Dec 2023 10:31:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1704036680; x=1704123080; bh=8r7sEGdIqPYSLaVWDjSGsuY+Tu+KuwJb8cb5y+aiBw8=; b= VEeufYeUuNXMH4N1C8Can49tAvsTVHHLwhEkeIDCtOQzJX1jqxcVEdv5Vbs7i26d ufvIpGYw2rwv5dSQs1j5cW1zsmTJ0wxWbKaSpxzAWfGgMqS/LHqOjzQAtRVIaZYH VbxWgNykwFCPounUkhtDQ9TT6zoF8OqCVUtLTz0+i4zLKxmTgRTLcgXDrOmCywoH FfKoBYz0wzQ2l4wSkJCCNQtcinWNpa5laLNS9Qzxq7hYaJfFTeVeG7uXjjswNvSk NBWTCcWtQqDeowF8drTc4wVpMAn+xO8ca5eNasvZIJtgA2sL/T3JKh5AQiEA7gUy d0G1IwXqSxzEpJkQzeEi7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704036680; x= 1704123080; bh=8r7sEGdIqPYSLaVWDjSGsuY+Tu+KuwJb8cb5y+aiBw8=; b=D gh4rz88aMHU1Xn8zqKPRxEtRsoGATrEtUWmeWIPBMvE4fE9qDviQsIHpxLmrQF+F bEeYDchqYOYJ3u5+okTanBmW3XsaYpe2bp1HNOVn2m7ZU38+OYqvFUOTbewulxTx z7sAZNH3Y/Z4iqxRzir8jKL2QDcJvzyafJXuFugoFb6sQLMy0PrIrsHcz9tDoCPh B9x66He+gR/s3rM+dAERXmY/wkBeniqxJcUNk6nGTx58oKoCT5vmPwP092aJ+dUq A+0DIuDkRHX5V3dpdsyjloC1ShmXJBsVoFCruN3jXrn0CkmSHyFnyx3gwWMSoDcE qf0yW9bZp4QHB8Y2AmYEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdefkedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Dec 2023 10:31:19 -0500 (EST) Content-Language: en-US In-Reply-To: <83jzou3kf3.fsf@gnu.org> 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:277149 Archived-At: On 31/12/2023 09:23, Eli Zaretskii wrote: >> Date: Sun, 31 Dec 2023 01:58:55 +0200 >> Cc: 67687@debbugs.gnu.org, eskinjp@gmail.com >> From: Dmitry Gutov >> >> On 31/12/2023 01:25, Stefan Kangas wrote: >>> Dmitry Gutov writes: >>> >>>> On 30/12/2023 22:31, Stefan Kangas wrote: >>>> >>>>> Would it be helpful to put that explanation in the .dir-locals.el file >>>>> itself? >>>> >>>> .dir-locals.el already usually hosts per-project settings. And most >>>> users of this feature probably aren't going to read Emacs's one. >>> >>> I was mostly thinking about us poor Emacs maintainers, but either way is >>> fine by me. >> >> Speaking of maintainers, I'm curious if I'll ever see the day when 'make >> tags' outputs "Use 'M-x etags-regen-mode' instead" ;-) > > I don't yet see why we'd need that. There is no hard requirement indeed. > As one data point, my TAGS files > in the Emacs repository were generated in Feb 2023, and I still use > them almost every day without any visible problems. And for Lisp > code, M-. doesn't use TAGS by default anyway. > > Unlike "indexing" in other IDEs, the Emacs tags commands are well > equipped to cope with changes in sources, and don't fail > catastrophically when there are such changes, as long as functions and > variables don't move between files. The auto-regen mode might be > needed for some projects where source files change significantly at > high pace, but not in Emacs, at least not IME. The upside is not having to generate tags to begin with (e.g. for new contributors, or new repository checkouts/worktrees/etc), and not worrying about keeping them updated even when you add or remove a function. No matter how rare, that still happens. There are some downsides too (e.g. some runtime overhead), let's wait and see if those turn out to be noticeable enough. > So whether this mode should be turned on by default is something that > is yet to be seen. Let's not hurry and make decisions in haste, > certainly not wrt the use of this as part of Emacs maintenance. I'm not proposing any haste in that respect.