From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Generation of tags for the current project on the fly Date: Wed, 07 Feb 2018 14:30:21 -0700 Message-ID: <87lgg4wkr6.fsf@tromey.com> References: <4559858d-eb32-d071-fdad-e51430700260@yandex.ru> <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> <87lggwkuth.fsf@tromey.com> <877esgqdhk.fsf@tromey.com> <1fad0c79-cd65-df83-9dcc-2650fed4dad1@yandex.ru> <76696ae3-318c-bb83-bbf9-a4f8680114ba@yandex.ru> <87lggsnkwc.fsf@tromey.com> <854cd0fd-5e4f-771a-0f58-b94373a2f98c@yandex.ru> <878tcgaqd9.fsf@tromey.com> <22dbecf2-4153-9410-722f-e98e48481302@yandex.ru> <83372f8ix9.fsf@gnu.org> <651fd4fb-bd0b-1cf5-62e0-aa8abe104817@yandex.ru> <83eflx7vw2.fsf@gnu.org> <2acd2301-771d-1749-36b7-a08fa6d668e8@yandex.ru> <83d11h7a54.fsf@gnu.org> <2d15ac14-586f-b997-1cce-0e8a6f998584@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518038937 24898 195.159.176.226 (7 Feb 2018 21:28:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 21:28:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: Eli Zaretskii , tom@tromey.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 07 22:28:53 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 1ejXGj-0005Un-KU for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2018 22:28:41 +0100 Original-Received: from localhost ([::1]:60910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXIl-0001Zc-2G for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2018 16:30:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejXIc-0001ZA-AT for emacs-devel@gnu.org; Wed, 07 Feb 2018 16:30:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejXIZ-0005Gi-5x for emacs-devel@gnu.org; Wed, 07 Feb 2018 16:30:38 -0500 Original-Received: from gateway33.websitewelcome.com ([192.185.145.24]:35510) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejXIY-0005Cs-OQ for emacs-devel@gnu.org; Wed, 07 Feb 2018 16:30:34 -0500 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway33.websitewelcome.com (Postfix) with ESMTP id DAC976B9CB6 for ; Wed, 7 Feb 2018 15:30:22 -0600 (CST) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id jXIMeT0sKzzFjjXIMe6Su9; Wed, 07 Feb 2018 15:30:22 -0600 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=c6zEkbHj8HxyGDYgCt1k1pxhOSqkVUAkbd50Bq0p9uU=; b=kosDCLYOjLd4vudzmyma12puAv 01AFTZPj8kLbDLU3sl52RNgSBHDpcMGrrAQnQmQ3Joy1sAUFAKhkD7XAyGihol5lK4PgN16LBlve2 CLM8cXYrOi+M0aMvZiRyh6pTb; Original-Received: from 174-29-33-254.hlrn.qwest.net ([174.29.33.254]:54542 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1ejXIM-002gOg-Hs; Wed, 07 Feb 2018 15:30:22 -0600 X-Attribution: Tom In-Reply-To: <2d15ac14-586f-b997-1cce-0e8a6f998584@yandex.ru> (Dmitry Gutov's message of "Wed, 7 Feb 2018 12:47:04 +0300") 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: 174.29.33.254 X-Source-L: No X-Exim-ID: 1ejXIM-002gOg-Hs X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-29-33-254.hlrn.qwest.net (pokyo) [174.29.33.254]:54542 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.145.24 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:222619 Archived-At: >>>>> "Dmitry" == Dmitry Gutov writes: >> Then I guess we should ask "etags -u" to do that automatically, >> i.e. for every file name it finds in TAGS to check whether that file >> exists, and if not, remove all its tags from the file. Dmitry> Maybe with a new option (e.g. 'etags -u --prune'), because it'll Dmitry> likely take some time. I wonder how much the overhead is going to be. One idea would be to detect this situation at M-. time -- that is, when TAGS tells us about a file that doesn't exist, ignore the bad result and re-run etags --prune or whatever. The reason I added --find was to circumvent both this problem (though as you saw, I didn't actually write this part) and also to deal with a couple other problems: the need to avoid Makefiles (gcc and gdb have to be built out-of-tree, which is a pain for running "make tags"), and consequently the need to have the config be accessible to etags itself. Tom