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.bugs Subject: bug#73484: 31.0.50; Abolishing etags-regen-file-extensions Date: Tue, 1 Oct 2024 02:19:17 +0300 Message-ID: <75fe4289-da41-454d-ba92-22a92ea7002f@gutov.dev> References: <87tteaznog.fsf@zephyr.silentflame.com> <8734lrrj4e.fsf@zephyr.silentflame.com> <87o74c1ce1.fsf@zephyr.silentflame.com> <87jzezzg87.fsf_-_@zephyr.silentflame.com> <37e4b3cd-6363-4f55-9921-92a1182679dc@gutov.dev> <86ttdy50ja.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="28242"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73484@debbugs.gnu.org, spwhitton@spwhitton.name To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 01 01:19:46 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1svPg9-0007Bc-EY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Oct 2024 01:19:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svPfx-0002c1-Rn; Mon, 30 Sep 2024 19:19:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svPft-0002bT-BC for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 19:19:30 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svPfs-0001jT-Ke for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 19:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=o5I3DCXNilKMYIc2ls4kUUhjqJ9mEBepaNbXpZ2sPII=; b=kGkNg5jkezKKbMa1B9VcdjjnbQSdgy3yjOkl0c0CcioD5Bemne739NfoCkisICdR4klcVqspfoTG0AtxvsA9EyrYI+jRi4N7QO76K534UCGrT3I93DkaWKZj5Fehy62O7Eeqrfhl2IXAybJJVNawjrJK8scV1L4kYp5XIk+OY9i1FOTb2jY3wVWh3hxhAswcuDe0WmH0/zQP2RmTlxeKBx3ly5Uue/pps0D7iUZ8ZBdwfMfCBuEAuSr4tfrk12IEWdjzo6zexi1d6OvT83s3u3KrQTqN/riZd6Ex4MnSJT1eKcR1dvmIP11NTQCEwI3r+ZooKOk1YD6nQIfeo4GY1Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svPgP-000486-Rb for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2024 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73484 X-GNU-PR-Package: emacs Original-Received: via spool by 73484-submit@debbugs.gnu.org id=B73484.172773840015862 (code B ref 73484); Mon, 30 Sep 2024 23:20:01 +0000 Original-Received: (at 73484) by debbugs.gnu.org; 30 Sep 2024 23:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:47707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svPgO-00047m-Iu for submit@debbugs.gnu.org; Mon, 30 Sep 2024 19:20:00 -0400 Original-Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]:35451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svPgM-00047e-Qs for 73484@debbugs.gnu.org; Mon, 30 Sep 2024 19:19:59 -0400 Original-Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 0AFD01380A84; Mon, 30 Sep 2024 19:19:20 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Mon, 30 Sep 2024 19:19:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727738360; x=1727824760; bh=o5I3DCXNilKMYIc2ls4kUUhjqJ9mEBepaNbXpZ2sPII=; b= F34xK9CF9mPkQGrRVxzWmum/JYGgM690c21H8iiPtUFGRfD7puZGkZWf2q3ZUekk 7RQ9694/yqmOlOI+pxTsWfmX7XgLUDHYkzkg9kzYQUQb0CW4Un59tRj8ToaOlEzD gz52eOmuKOmEWUpX+eMtuiPtr7E7rNYNtg7aMl75eP9cVIfWs1hAeSpdxzdxdxvx JRQe885PCMyrCVg5G5j1++DlJOzfErOYUeKIgy2q+CmNbabQAMFDc1OxavojIemw 3VdKoAVokegYtEW33OQZ2hdTdInmLTk+dWaYoAorPjedPuUAXSgVmzqopJuTlSaq rQD5JTZpdzXYrY7T9BHq0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727738360; x= 1727824760; bh=o5I3DCXNilKMYIc2ls4kUUhjqJ9mEBepaNbXpZ2sPII=; b=N QmAmRUfyMejczQ+gZniXjhIwEGJeWXsbff33OOVcvl4zxmJizW1Z7E7IIBZ4ehp+ ItdFMvrDIbd4cBY2MpkUIeGb0w9b0qyU0aRS+0InyCjV3cvRpH9vJ23UY0lBM+5o 5QyGIf6Mq9JfDjaNP/9vMMsJN3Th4S5AEs3ACGDRTwMIjGAw/EBLeUOJ7e0CoKPY UftDze5rEFhY97FAnmOyzdB77A0yfrxt/ropcfSjtc7cEoX7uyWnhhFqeCcvGpAS 866VMUJusl80XoU4xINMPabSqhbly45GJhPVrAOak/dK7HX3eg7sk0K0A9LMgHA5 U+bT/Af7KrXBX6AKq1GIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdduiedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieekueef tddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgdprhgt phhtthhopeejfeegkeegseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 Sep 2024 19:19:18 -0400 (EDT) Content-Language: en-US In-Reply-To: <86ttdy50ja.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292744 Archived-At: On 29/09/2024 11:25, Eli Zaretskii wrote: > I understand that we need to disable the Fortran and C fallbacks to > avoid false positives, but what do we want to do if the fallbacks are > disabled and no suitable language parser is found using the file name? > Just skip the file and do nothing? emit a warning? something else? Just do nothing. We'd really want to delegate language detection to etags rather than doing it inside Elisp - the latter is slower and ultimately more limited. But for that etags needs to have a reliable detection logic, one without too many false positives (and IME false positives here are worse than false negatives, because scanning too much can often mean both wrong tags and long scans, and a completion table that gets too large because of bogus tags). For shebangs in particular, however, see Francesco's very good explanation. And detecting shebangs in Lisp would not be practical -- too slow.