From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags Date: Mon, 31 Jul 2023 20:38:00 +0300 Organization: LINKOV.NET Message-ID: <863514c7wr.fsf@mail.linkov.net> References: <87mszebgwy.fsf@gmail.com> <878rays89s.fsf@gmail.com> <83y1iykn0q.fsf@gnu.org> <87y1ix7myw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 64939@debbugs.gnu.org, Eli Zaretskii To: Wilhelm Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 19:46:24 2023 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 1qQWyN-000A0g-P8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 19:46:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQWy5-00031B-0N; Mon, 31 Jul 2023 13:46:05 -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 1qQWy3-00030u-2n for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:04 -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 1qQWy2-0007vJ-Kf for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQWy2-0006gq-Gd for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64939 X-GNU-PR-Package: emacs Original-Received: via spool by 64939-submit@debbugs.gnu.org id=B64939.169082550525616 (code B ref 64939); Mon, 31 Jul 2023 17:46:02 +0000 Original-Received: (at 64939) by debbugs.gnu.org; 31 Jul 2023 17:45:05 +0000 Original-Received: from localhost ([127.0.0.1]:53498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQWx6-0006f5-Ob for submit@debbugs.gnu.org; Mon, 31 Jul 2023 13:45:04 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:53503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQWx5-0006eH-Li for 64939@debbugs.gnu.org; Mon, 31 Jul 2023 13:45:03 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 058E0C0008; Mon, 31 Jul 2023 17:44:55 +0000 (UTC) In-Reply-To: <87y1ix7myw.fsf@gmail.com> (Wilhelm Kirschbaum's message of "Sun, 30 Jul 2023 11:38:06 +0200") X-GND-Sasl: juri@linkov.net 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:266426 Archived-At: > The problem is that even with a local change, the match group 2 is hard > coded. You could use a shy group \(?: ... \) in your customized value of 'auto-mode-interpreter-regexp' that doesn't change the match index from 2 to 3.