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.bugs Subject: bug#73484: 31.0.50; Abolishing etags-regen-file-extensions Date: Sun, 29 Sep 2024 11:25:45 +0300 Message-ID: <86ttdy50ja.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73484@debbugs.gnu.org, spwhitton@spwhitton.name To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 10:28:48 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 1supIN-00073I-Ty for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 10:28:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1supI9-0005wf-1O; Sun, 29 Sep 2024 04:28: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 1supI7-0005wB-Br for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 04:28:31 -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 1supI7-0005dK-2i for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 04:28:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=lRZCQVvKKJHQ/R4Rb/7JPdYWhpoPPyp8AC3wy6ng7Ec=; b=nmUmLR/yQUhqa5zlTVxhWKxecWgak3JQ488bJITkzzPGAFhgrePsVX0jpnG+y29jYZXUVEwqEITGVGGVYLbDAkVhDqgp/fq6jfNCBiU058cQ4tbdASlPpDiOCpSxG4ISwv5OMtBD4XKI2SIzZ6aPzcXDzUfCWnQzLhOyyIwekM9YvfDFlOwpLKAzTL1oTFpx+/LXMtN0IcQLPk/6bZLDmdRCiHaGqztxkEXdGQ2awc8KDVLSSNnjdpWdi7DRPpag3mTdYUocCea7HmyM+Ysy8vtTDlmIWY+kD1bFw1qWAxC6kYdOjcMTquxoP2N8NSEfbvkkDaJs6yYPctBTetgYCA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1supIb-0001hi-NE for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 04:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2024 08:29: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.17275985196483 (code B ref 73484); Sun, 29 Sep 2024 08:29:01 +0000 Original-Received: (at 73484) by debbugs.gnu.org; 29 Sep 2024 08:28:39 +0000 Original-Received: from localhost ([127.0.0.1]:39383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1supIE-0001gV-Tx for submit@debbugs.gnu.org; Sun, 29 Sep 2024 04:28:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1supID-0001gB-7Z for 73484@debbugs.gnu.org; Sun, 29 Sep 2024 04:28:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1supFV-0005Oy-JZ; Sun, 29 Sep 2024 04:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lRZCQVvKKJHQ/R4Rb/7JPdYWhpoPPyp8AC3wy6ng7Ec=; b=JUjkPM1ABhZH 3RW/+M23nEG3VE2bYP36tZt4HSKHbLtHyklq1piwhY8RctuZbYTCpxI4Lejg6oGXHeygwRhVn9GRV M1guExFrYQ9+UUhP9k1PnjcgubV/mXlCi0TQP/NEidQZ3E/fZJ13wRHiRn2YbF3c2go4opv4GN+TG I6DQOXqqAZx2O7yDGziac6aIAuUZjL9OCT0FS7Y/NwSdUEq/KExp9bbm+CWgXDH0y17vJcK192fAl EpstCPbXOorirEzs31I66CaMinl0//zyupFWiPMjnEcJDdppX1dkZ7U5l68H1RwZDzDiOVgpT8ynF AP1Et93aOn/vdGPitdDuLw==; In-Reply-To: <37e4b3cd-6363-4f55-9921-92a1182679dc@gutov.dev> (message from Dmitry Gutov on Thu, 26 Sep 2024 01:30:55 +0300) 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:292620 Archived-At: > Date: Thu, 26 Sep 2024 01:30:55 +0300 > From: Dmitry Gutov > > > We want to replace etags-regen-file-extensions with enabling etags's > > hashbang detection support. That requires disabling its Fortran > > fallback. > > Thanks, a fuller plan would look something like this: > > - Implement the --no-fortran-fallback flag in etags. Or an environment > variable, or etc. Use it conditionally in etags-regen-mode. > - Revisit the default lists of extensions that etags recognizes, keeping > in mind the recent thread we talking this about in - e.g. *.a seems out > of place for ASM (someone more familiar with assembly dialects please > feel free to correctme). > - Add new possible value t to etags-regen-file-extensions, and switch > the default to it. 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? I also don't understand why enabling the etags' shebang detection requires to disable the Fortran and C fallbacks: etags looks for shebang _before_ it falls back to Fortran and C, so what am I missing?