From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Automatic (e)tags generation and incremental updates Date: Mon, 11 Jan 2021 16:53:16 +0200 Message-ID: <83o8hvfrtv.fsf@gnu.org> 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> <83wnwkfym8.fsf@gnu.org> <0d2a3c9d-68ed-637f-5263-66a4e5345dc6@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37001"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, tom@tromey.com, john@yates-sheets.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 11 15:53:47 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 1kyyZn-0009Vz-7M for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 15:53:47 +0100 Original-Received: from localhost ([::1]:33734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyyZl-0004Yl-Mx for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 09:53:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyyZA-00041S-2A for emacs-devel@gnu.org; Mon, 11 Jan 2021 09:53:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37587) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyyZ8-0000FU-M7; Mon, 11 Jan 2021 09:53:06 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4173 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kyyZ8-0004IC-0r; Mon, 11 Jan 2021 09:53:06 -0500 In-Reply-To: <0d2a3c9d-68ed-637f-5263-66a4e5345dc6@yandex.ru> (message from Dmitry Gutov on Mon, 11 Jan 2021 01:13:17 +0200) 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:262906 Archived-At: > Cc: tom@tromey.com, emacs-devel@gnu.org, philipk@posteo.net, > john@yates-sheets.org > From: Dmitry Gutov > Date: Mon, 11 Jan 2021 01:13:17 +0200 > > On 10.01.2021 20:14, Eli Zaretskii wrote: > >> 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. > > I thought this prompt will not be supported anymore. If we are > > keeping it as fallback when the current buffer doesn't specify which > > tags table to use, then I'm okay with that. > > For now it's clearly supported with the default value of > etags-regen-mode (which is 'off'). I meant with it's being ON, of course. > Or if you 'M-x visit-tags-table' before having one auto-generated. I meant both the generation and the usage. Can we prompt the user in both cases if the current buffer doesn't tell us where the tags table should be? > Would we prompt for the tags table just once upon encountering a > project-less buffer, and then use it for all such buffers in the current > session? I think we should use it for buffers that don't have their local value, yes.