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: Mon, 5 Feb 2018 02:40:59 +0300 Message-ID: <22dbecf2-4153-9410-722f-e98e48481302@yandex.ru> 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> <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> 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 1517787607 5572 195.159.176.226 (4 Feb 2018 23:40:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 23:40:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 05 00:40:02 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 1eiTt0-0000LS-Cr for ged-emacs-devel@m.gmane.org; Mon, 05 Feb 2018 00:39:50 +0100 Original-Received: from localhost ([::1]:54330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiTuz-0008Bg-VL for ged-emacs-devel@m.gmane.org; Sun, 04 Feb 2018 18:41:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiTuG-0008Ap-AF for emacs-devel@gnu.org; Sun, 04 Feb 2018 18:41:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiTuB-0004Gt-Er for emacs-devel@gnu.org; Sun, 04 Feb 2018 18:41:08 -0500 Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:46967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiTuB-0004GV-6R; Sun, 04 Feb 2018 18:41:03 -0500 Original-Received: by mail-lf0-x22d.google.com with SMTP id q194so39257778lfe.13; Sun, 04 Feb 2018 15:41:03 -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=/r96/NS70Gldy/+pnbcgYfIqfBCuQpg2b6GqfX9eIls=; b=cx7gdQWXsqnaUwQQL65d0LK980WYx8tVxcJ3cZcM23jk6KpVOfnHF4KBqXgK//3FDp WWNOrVC5rh6ADlRCdTZRNFU0d18oSiG7GoIxORDAN2Wh15y413N6zyExLfdtTdV+Shko s/DCYt7hU24SNVl05uEUG0hBeqzlIFOVyZnlMR3/GlImhHKIAe7NiWeYjowaaHJY/0nr G9GaF8cOA8wXnWtFjkFa1jkQmPZNz61EOG13Hur5h4lzyIiwz9m7eBZYv+zQjISKLtfO ygPf8lG5tyq9TVxzBxsT0rDB5g1UThhIpxVw4jwln8WCA6s8SkKZ4nbJCEaTT56vJFg5 Iwdg== 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=/r96/NS70Gldy/+pnbcgYfIqfBCuQpg2b6GqfX9eIls=; b=aVKWKJkx/0UmRmcRxhIn88SGuYsZSjH9aIXyQFJg9PCT6IMiw7jZNvy0PTRtMGwRvl 7AnbTcKls5rqY2Vv/Sl3p+SvA93++eaADb4XVorp8lLB1pOtQEhoT+bhCdVrjy/7Kgn4 bzJaJdMLgXy22G4ugsdZPhI3UHKz1kc7Q+AV/F9z+asStj/W5A8PH/4Q4uixjf2gmk9b fJ+1f6ojex7vIriNFnp0xADosMPH9Zp2Y9DFN9N5HLdLjSMrT/CRlVN2KNT41+Dcgidi BAf5OCU+Ka+smU7pC6NaGXbJsrybqcgW3NWLroJ75JrXGMh+NHkJM4V7ubZrqCcSZ9fI vppQ== X-Gm-Message-State: AKwxytfDZJeTlWD1GmcIjEI4xj3CPf35RkZ7cAtYNRkm/NJK3FbpKn4Z lKIS96VOAZSoU5HDYTklvzxTMP6S X-Google-Smtp-Source: AH8x224xju8pT/9qO5CSXaAF/NZnPqVy5j8XOL7LasnR6JbIBEFDHtaBqoULlVh1XuqOvEEkhRiwTg== X-Received: by 10.46.4.10 with SMTP id 10mr17252101lje.64.1517787661393; Sun, 04 Feb 2018 15:41:01 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id z205sm1566945lff.33.2018.02.04.15.41.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Feb 2018 15:41:00 -0800 (PST) In-Reply-To: <878tcgaqd9.fsf@tromey.com> 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::22d 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:222529 Archived-At: On 1/30/18 08:05, Tom Tromey wrote: >>>>>> "Dmitry" == Dmitry Gutov writes: > > Dmitry> Speaking of deletions, this is not strictly necessary (we could just > Dmitry> delete the whole TAGS and recreate), but it would be helpful if, when > Dmitry> passed a non-existing file that is in TAGS, 'etags -u' deleted it from > Dmitry> the index. Right now, it only complains "No such file or directory", > Dmitry> but keeps it in the index. > > Could you try the appended? It worked locally for me. Seems to work here too, thank you. But we should probably keep the "file not found" reporting (-u means etags's output is unused anyway). It will help when the file name is actually a typo. I wonder if 'make tags' would be able to make use of it somehow. If not, I'll probably have to reimplement it in Elisp anyway. Eli, any thoughts?