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: Tue, 12 Jan 2021 03:49:49 +0200 Message-ID: <06190875-0051-01af-5062-74c2c069e343@yandex.ru> 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> <83o8hvfrtv.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="16713"; 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, tom@tromey.com, john@yates-sheets.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 12 02:52:07 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 1kz8qs-0004Eg-S3 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jan 2021 02:52:06 +0100 Original-Received: from localhost ([::1]:45264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz8qr-0003gM-Tj for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Jan 2021 20:52:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz8oq-00035B-VQ for emacs-devel@gnu.org; Mon, 11 Jan 2021 20:50:01 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:35568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz8om-00079K-1Y; Mon, 11 Jan 2021 20:49:58 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id e25so577096wme.0; Mon, 11 Jan 2021 17:49:55 -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=64SOy+rQF/HNDh1uuOARHWBb2olWjkhpI/aur/yPwWU=; b=PJeQeiUiYRJBpm4WaYsC4i6ueOr6+yp8fp5LQcoEElCUh5QM++GxZI4XUruDnJCYjj NVlKmdJtlo3uJD+O/sdz9Zs8gHV5PMhCLo6TD1cmZUH3FfB+uGyVaRrrw2igRuMyQQwt 5sTrrZkMKrRTCkG+SkJ52RCrCYqzBH0Qss7DW9qaaGGhJcbgvShddzg3krob2fYH04SH IhEVqJ4ersmPovMMxPooXix8N+HyB8j9rvJ9IOTWxfVWjEl/lYKSpwDngup12ua6zslu pVzNPS0Pq0EgK8k6sqRvKAtM/6uH2ZKCfT3XAWEdq7NXc0HVGG/iTSiVf8B/Pk72x7k6 9Hog== 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=64SOy+rQF/HNDh1uuOARHWBb2olWjkhpI/aur/yPwWU=; b=pVbhMkUNzIpQDwyRhtskf0zjvecVNJlIjwIROYTunvtYZVUDUylkLLYZBvGkxjLkLP LVMne4yaGfCjqMhBM+9JrsdV9Ubj1fex14ol+0wdZyLDyKrLnF2NE4/xeNEDmerOxRyk QKogO/0WSpT1x8OEqf9cwm6rHM3IH63fZuJgwYo6Kt+tVYXlDP8g+tvsQ5YUQGo8fRXO MkeZh6DMPM8A+yYXaJOxzlcnyStk+gt4+KESepFo4Ukb3VSNTPFP5hW09JrgyvDApQQA TpIp9Sq0aeTOKO99f9KBQo7dibtWanw0mQFD0SGeWaMYnIm09V7upMsOJZTuBKd6YYR0 UGLQ== X-Gm-Message-State: AOAM5312yl62LiapcWcp8OBxqGOiCYTYpyM5G4gb7JafTwFJDD3SWs3S gbPCbd1n04RdPFXUGH4jHDw= X-Google-Smtp-Source: ABdhPJzO1mnsIM2yUrhSuAhDWIQtwEVe8ADHBwCnyvV2XO6R+ZQM/F3hEml4yDCmkRSv3oXCblE1rg== X-Received: by 2002:a7b:cc94:: with SMTP id p20mr1216716wma.22.1610416193849; Mon, 11 Jan 2021 17:49:53 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id z13sm2539770wmz.3.2021.01.11.17.49.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Jan 2021 17:49:53 -0800 (PST) In-Reply-To: <83o8hvfrtv.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32f.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.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, 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:262955 Archived-At: On 11.01.2021 16:53, Eli Zaretskii wrote: >> 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? Okay, would we prompt for an existing, bespoke TAGS file, or for a project directory to auto-generate tags from? The latter case means we'd basically mark that project as the "default" for the purposes of etags-regen until the end of the current session. It wouldn't include tags from any of the project-less files, though. But if you were only thinking about non-file-visiting buffers, that's not a problem. >> 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. All right, see above.