From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Generation of tags for the current project on the fly Date: Wed, 17 Jan 2018 22:43:17 +0300 Message-ID: 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> <83k1wgwl1i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1516218118 22773 195.159.176.226 (17 Jan 2018 19:41:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 19:41:58 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 17 20:41:54 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 1ebtaT-0004LV-E3 for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2018 20:41:29 +0100 Original-Received: from localhost ([::1]:57566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebtcT-0001nV-J9 for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2018 14:43:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebtcL-0001me-NY for emacs-devel@gnu.org; Wed, 17 Jan 2018 14:43:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebtcI-0005ww-IQ for emacs-devel@gnu.org; Wed, 17 Jan 2018 14:43:25 -0500 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebtcI-0005wD-Be; Wed, 17 Jan 2018 14:43:22 -0500 Original-Received: by mail-lf0-x230.google.com with SMTP id t139so8710669lff.0; Wed, 17 Jan 2018 11:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=T1BVSPQCdV91cUz50r6QOfM8meOPtATPZDZUQyGykdk=; b=tYYKznn6bOGFMA3FRVVZyuMqd2PVnyIDff/Zrt6gYn2CPlI2FlnT98w9mWADCTydLX 2FtkNJsTU9QYXA/Ad/E462oevq6OCvqeMzDIk0UXrj1OLgumHTjfPwfQEtz3mYSS/Rr0 5N9KuVGA2MuMm+6me3os3RsTXWeTZCSICLUwuPPMdT+gNtbsJAiKOi5EotlV8DTlxpe3 +Kodnit0+vNtUGpM9RQBz6tb215vOvK1POk0T6yVJscB5P6nfiQudSsbMnRkLdJxfo2C K3cRSAJvEaECvLjX8oOSVIy/QmVPauA9QXZ9Drt0RpCh2uviJuDyzI/V04EW+KCOUbgb m9rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T1BVSPQCdV91cUz50r6QOfM8meOPtATPZDZUQyGykdk=; b=G2C4YAG596h74GbN8jMMbQVRldJKn3AlJnWLVqGrqkS2DYDKS0p8jN5RYnoYZP0fQf CkgeaR+C1Vih8hapjBjtqySuMbOqHyuhUtYjJ+m+fX/B6uKiBlz1KSxD2hGZ8F74Od9v FTjiNqP3xmRLHq8V7Z9BK6JfTjVB2PsRZ0IJj+PQbdq6y425Arl+BlUEd8v5WtlWVCgF a0KDo5StWnylLSQ+1wi+hg8IAIqq74yytbfXGKS2r3foLu8uh7mx7ofEG7IUnufbaIMo BESmgesqCJ00yl0/xMU6/Ckfhqz0f4ZcFFqqNhM+fBtl4wln/cVoxixkRhOJr4AGUCtZ bzHg== X-Gm-Message-State: AKwxyteBpHOLIhGyAEghmmpsF6PTjBLws0C9pVTvaf8ui3xlT2Km9PM6 1eju7W2/BSBinNHGF+XAHaPzE4vX X-Google-Smtp-Source: ACJfBosI9IzFS1bjiNJ3t1c/uTdKL6ik9qfgB01qAPBcCBKqnJhyyfvZu8Q5vtWXRkt0zAIs9dmIIA== X-Received: by 10.25.167.85 with SMTP id q82mr6027783lfe.112.1516218200688; Wed, 17 Jan 2018 11:43:20 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id h4sm998585ljc.40.2018.01.17.11.43.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 11:43:19 -0800 (PST) In-Reply-To: <83k1wgwl1i.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 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:222054 Archived-At: On 1/17/18 18:40, Eli Zaretskii wrote: >> 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. Meaning it's not known at etags runtime? That's true. >> 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"? Incremental is the goal, and this is just one approach. Not sure whether it will help with 'make tags', like I said. Maybe if Makefile somehow tracked the file that need to be reindexed? Using their mtimes, for instance. Make tracks which files need to be recompiled, right? This could reuse the same mechanism, if possible.