From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Automatic (e)tags generation and incremental updates Date: Sun, 10 Jan 2021 19:56:34 +0200 Message-ID: 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> <835z44hh49.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: philipk@posteo.net, john@yates-sheets.org, emacs-devel@gnu.org To: Eli Zaretskii , Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 10 18:57:35 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 1kyey7-0003jp-5c for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jan 2021 18:57:35 +0100 Original-Received: from localhost ([::1]:40168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyey6-00052d-4X for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Jan 2021 12:57:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyexK-0004b5-Km for emacs-devel@gnu.org; Sun, 10 Jan 2021 12:56:47 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:38791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyexI-0000zM-MN; Sun, 10 Jan 2021 12:56:46 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id r7so14103961wrc.5; Sun, 10 Jan 2021 09:56:43 -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=ucyuMg6zMHlOGMfkE7l2njVQ6xI0pVFSvDqJN0tkRzs=; b=kcVoDnzbZ3ugqTc9GMcLV9QlZWNvDQkFotOEjPtxpu8KCCaEYN1sG6BvBFU0bWCFci hDOQ1BkIUTdxfy+mUyBb84e8FItx/TiZFQ/0+caUHeCNn6jCKgVjG04II1QUVOoMBOt+ uI/c65aHNweTCVOkGM3/pkSaEYtnNwJL5xoCckRB68l0a30SUCVBNdjt78wsAopMJUYy X6g4pfQVHwq20yz0hMh/KK7QacmciOxV0rahc8HGQC3Y9Au81rbJbMdzQygIEdV8kELQ eBm3AjixbN88IKsAtmt+K5ciY/QB4O2klbLcwITwJ8pfl2lCWcQiQFyMyAizFFq02Zym kOaQ== 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=ucyuMg6zMHlOGMfkE7l2njVQ6xI0pVFSvDqJN0tkRzs=; b=XWJlubOExI8+kJafSEwwwir3ZMcMyRdNN3JEWNsE46ZpTOlYiMtQnU0OWyuVWbq2oj QULyJdXnNcI9iJerCADzt9zGGcOQ6R748Avea2WalBdoBLCu3nN9W4uu0YGjbvwDfrrh z4ruFqiyHbaOzr6GYKFC+yboxVnLzf7MUF30r87n7fJtuzcg6IsObzbgULPLotIIrHG9 HFcowYWQW/EnUq7eorP5Xt7zXBj4eAfWOjYg7NmjkZ4sSX7TvPFMm8om/r9Tq+GtjP5k YJveuqi2ytmbdpV91/zCqDBoX0Jtwmmm/4JZsNVI3hfc93gsVuT82jL4hPlCNljhk/6M 3QpQ== X-Gm-Message-State: AOAM530X71HXFobmr3uMNki5cCGG0ww9YlQWV7uibYHnK7Qm9Bxagy/6 Z1PAlGiuWOVz63z0n9nNAB0= X-Google-Smtp-Source: ABdhPJy0KpGWVyZFOTUgbaD4KyfFu+PMCZqP1JZMePSwGyRifovdN4zD78haufoVgIfFqGpdAXHbDQ== X-Received: by 2002:a5d:5044:: with SMTP id h4mr13076677wrt.149.1610301401889; Sun, 10 Jan 2021 09:56:41 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id x13sm22735016wrp.80.2021.01.10.09.56.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Jan 2021 09:56:41 -0800 (PST) In-Reply-To: <835z44hh49.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=raaahh@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.012, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:262869 Archived-At: On 10.01.2021 18:49, Eli Zaretskii wrote: >> I tend to think that conceptually each buffer should point to its >> corresponding tags table. > > What about buffers that don't belong to any project? M-. generally > works (or should work) in any buffer. That's a different workflow, one that we support already. I don't know how to automate it better. If the buffer doesn't belong to any project, which tags table would we use for it? We'll have to prompt the user, and that's what we do already by default. Some kind of automation could be made if, instead of using project-current straight away, etags-regen could add some defcustom/hooks/etc which could return some value that implements a generalized notion of a project for etags-regen's specific purpose, with file list, the "where to put TAGS" directory and inclusion logic. Which we would then use. I don't know how many users would go to all that trouble, however, when they could just go on with using 'M-x visit-tags-table'.