From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Automatic (e)tags generation and incremental updates Date: Sun, 10 Jan 2021 09:56:20 -0700 Message-ID: <871resd93f.fsf@tromey.com> References: <779a6328-9ca5-202a-25a2-b270c66fe6dd@yandex.ru> <8fc5e96c-ebb8-c668-9b2a-c7c4ee54c0b9@yandex.ru> <83r1mwltob.fsf@gnu.org> <0bee9ab4-46bc-b6fd-97b6-e26cc80f1610@yandex.ru> <875z45dbm7.fsf@tromey.com> <1e9c9572-52ee-339b-78a2-731b9eb5f3de@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33587"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Eli Zaretskii , Tom Tromey , philipk@posteo.net, john@yates-sheets.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 10 17:57:28 2021 Return-path: Envelope-to: ged-emacs-devel@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 1kye1v-0008b7-M6 for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jan 2021 17:57:27 +0100 Original-Received: from localhost ([::1]:46726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kye1u-0002ED-Qk for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jan 2021 11:57:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kye0v-0001mk-LY for emacs-devel@gnu.org; Sun, 10 Jan 2021 11:56:27 -0500 Original-Received: from gateway22.websitewelcome.com ([192.185.47.65]:36881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kye0t-0000Wa-5y for emacs-devel@gnu.org; Sun, 10 Jan 2021 11:56:24 -0500 Original-Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 10E472EF1 for ; Sun, 10 Jan 2021 10:56:22 -0600 (CST) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id ye0rkSbRUHPnUye0rkEG3H; Sun, 10 Jan 2021 10:56:22 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t6S91vJjLcqcv6Q+PmwG8tJKNxQXIPZOh4CnlJ2s6r4=; b=I5HS8C3K+4/7QnvnI4nw/5KUBB kvM4XXynuPrm0j7lx5KTbpP4lnr+kouSGDS5pKZQjvdwl5BG3CIBLCThe1GFM2pveW/+WkEc6pfa/ UaokErvFlnLKozrBK62srVLuQ; Original-Received: from 97-122-81-39.hlrn.qwest.net ([97.122.81.39]:38044 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kye0r-0002Vu-Ks; Sun, 10 Jan 2021 09:56:21 -0700 X-Attribution: Tom In-Reply-To: <1e9c9572-52ee-339b-78a2-731b9eb5f3de@yandex.ru> (Dmitry Gutov's message of "Sun, 10 Jan 2021 15:53:10 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.81.39 X-Source-L: No X-Exim-ID: 1kye0r-0002Vu-Ks X-Source-Sender: 97-122-81-39.hlrn.qwest.net (localhost.localdomain) [97.122.81.39]:38044 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: permerror client-ip=192.185.47.65; envelope-from=tom@tromey.com; helo=gateway22.websitewelcome.com X-Spam_score_int: 36 X-Spam_score: 3.6 X-Spam_bar: +++ X-Spam_report: (3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779, URIBL_CSS_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262859 Archived-At: Dmitry> - Do we want to store the generated files openly in the root Dmitry> directories of each project? Yeah. Either way is fine by me, since the projects I work on already have TAGS in their .gitignore. Dmitry> Storing them with "garbled" names somewhere in /tmp of XDG cache Dmitry> risks having to fully renenerate the indexes at least every time Dmitry> the machine reboots. Does anyone really configure their system this way? XDG warns about relying on the cache, but in practice I think that is a warning for developers -- the model being that the user should be able to delete the cache at any time. At least on the systems I've used, the cache is persistent in practice. Dmitry> Is eliminating the delay worth the Dmitry> code complexity and increased memory usage? It should certainly be an option. Memory is just no barrier on typical machines these days. Dmitry> If general, doing updates when Emacs is idle and/or asynchronously are Dmitry> quality-of-life changes that can come later after we improve Dmitry> correctness (i.e. make sure the index is up to date even after Dmitry> external changes). Please try it on a non-trivial project before committing to something. IME a lot of these things work fine for simple projects, but when I want to use them on gdb or gcc, they are unusably slow. Anyway, thanks for working on this. Lack of incremental update is why I stopped using etags, in favor of ggtags. I hope someday to switch back, since etags has some features that GNU Global lacks. Tom