From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Generation of tags for the current project on the fly Date: Wed, 17 Jan 2018 17:40:41 +0200 Message-ID: <83k1wgwl1i.fsf@gnu.org> References: <4559858d-eb32-d071-fdad-e51430700260@yandex.ru> <83shbb30z1.fsf@gnu.org> <8360863o6a.fsf@gnu.org> <27a58fb2-d2ee-e5fc-158d-ec41be401987@yandex.ru> <83y3l0za1f.fsf@gnu.org> <259c557d-e3a3-c01b-9ba3-30df09d247ea@yandex.ru> <83inc3znpu.fsf@gnu.org> <98f4f0c3-6815-bf86-fa23-1a330c60b9f3@yandex.ru> <83d129y9oq.fsf@gnu.org> <4a91acc7-78f9-600f-2fa4-1bed70b107e2@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516203586 9819 195.159.176.226 (17 Jan 2018 15:39:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 15:39:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 17 16:39:42 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebpoE-0001Ow-UR for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2018 16:39:27 +0100 Original-Received: from localhost ([::1]:43924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebpqE-0002lu-Vw for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2018 10:41:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebppd-0002lU-J8 for emacs-devel@gnu.org; Wed, 17 Jan 2018 10:40:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebppY-0002g8-QH for emacs-devel@gnu.org; Wed, 17 Jan 2018 10:40:53 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebppY-0002g0-MB; Wed, 17 Jan 2018 10:40:48 -0500 Original-Received: from [176.228.60.248] (port=2406 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ebppY-0006O9-3W; Wed, 17 Jan 2018 10:40:48 -0500 In-reply-to: <4a91acc7-78f9-600f-2fa4-1bed70b107e2@yandex.ru> (message from Dmitry Gutov on Wed, 17 Jan 2018 00:56:01 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222048 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Wed, 17 Jan 2018 00:56:01 +0300 > > On 1/16/18 20:50, Eli Zaretskii wrote: > > > Incremental tagging needs to leave the record about what was tagged > > somewhere, right? > > The information is inside the TAGS file, isn't it? Not really: the signature of each file at the moment of scan is missing, and maybe also other things. > And I think it should be fairly easy (in terms of the algorithm, at > least) to implement incremental update for one-to-few files: you scan > through the file, remove the corresponding entries, and then scan the > files (ones that still exist) and add those entries at the end. This should be relatively easy. Is that what you meant by "incremental"?