From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wilhelm Kirschbaum Newsgroups: gmane.emacs.bugs Subject: bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags Date: Tue, 01 Aug 2023 08:20:49 +0200 Message-ID: <875y5zxoyv.fsf@gmail.com> References: <87mszebgwy.fsf@gmail.com> <878rays89s.fsf@gmail.com> <83y1iykn0q.fsf@gnu.org> <87y1ix7myw.fsf@gmail.com> <863514c7wr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7977"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 30.0.50 Cc: 64939@debbugs.gnu.org, Eli Zaretskii To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 08:22:16 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 1qQils-0001s4-Av for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 08:22:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQilg-0008T6-JS; Tue, 01 Aug 2023 02:22:04 -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 1qQile-0008Ss-Ov for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 02:22:02 -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 1qQile-0004eh-G3 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 02:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQile-00059E-BZ for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 02:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Aug 2023 06:22: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.169087088519740 (code B ref 64939); Tue, 01 Aug 2023 06:22:02 +0000 Original-Received: (at 64939) by debbugs.gnu.org; 1 Aug 2023 06:21:25 +0000 Original-Received: from localhost ([127.0.0.1]:47018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQil2-00058J-RS for submit@debbugs.gnu.org; Tue, 01 Aug 2023 02:21:25 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:60569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQil1-000586-Mq for 64939@debbugs.gnu.org; Tue, 01 Aug 2023 02:21:24 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-31783d02093so4828893f8f.0 for <64939@debbugs.gnu.org>; Mon, 31 Jul 2023 23:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690870877; x=1691475677; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=JvBogVrfF8hM1EvpPmyaD/I9h+0OO4vVmPa44DynzHw=; b=JUg7PGiw0oSN+Aq3uq56lv6zTebQerRqphb+RoLUOpG5Njhf9AqhomvidwPipyStNI W8ap9cBdJ1Vou7OOo+fdg7G38oBsQWJ6y32g0KG/ou5ERZFkkitkXgN0EwX2IOrwY9F6 yXtVg5kkcCHc5tSGTzxooWE5KTX4Byfoo4Jy6Glch3lMChWePl8wI/jilucf8Dnviq2z w3d0hEFSSEeAKfkjHL9GFjfX4lvvqLXCzorhUJ5CyENI/kUylME/btmC0KAork5ySYFU eoMSo30XhZYzV2z84iRYQAGUBPpLe0O9CGGcM2uOmAe9+gBI/PBkxzSDOb0i149tIkbv IVcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690870877; x=1691475677; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JvBogVrfF8hM1EvpPmyaD/I9h+0OO4vVmPa44DynzHw=; b=LTkYH8Ll/H7JpRxRyMqGcdlKfo+6mVfBT8j8gxXiTq5maEcuadZSLo4iGeLWH416CZ Ee+K7FsFHwKsqIBHcDGQk8DNa95en1h9cDQINm294ZhOhAac5ole54WZPuhsteN/UJ8T PSYAIDgBBqRQbOfQSXK6Q4W8PQgLY0MBLc28In7qb02wX4AhCdItzy09SrlvOgmsxSdI OYIQhvFnpJI0y4MaIqQ1B4eUMUSaDxiSMeF10f3Y8p337vYay5XwGkvBWOAQEGT0ropY Hm4RJUJlx5ci70iM8lu4/ohqAuY4FQJZeAg3hGzjQE/jwFbp+LiZFkim9fxPflFlsCUg +J3A== X-Gm-Message-State: ABy/qLYPPOBBxVdVxak5UnPb3vxTxb9V8arWz4198ItJmtCcqy22lf/K QHj+/1qzSsrYNKFpfctTNMVnV5IJcLSb+w== X-Google-Smtp-Source: APBJJlEPDZTCRGND8zaQzCDbcihtnihLVuK+IFrhsmKR+hjSxKFuMUOGWWM3kS3iEKcMN6UwhSdGUw== X-Received: by 2002:a5d:4207:0:b0:317:9537:d741 with SMTP id n7-20020a5d4207000000b003179537d741mr1474099wrq.54.1690870877220; Mon, 31 Jul 2023 23:21:17 -0700 (PDT) Original-Received: from melissa.local ([2c0f:ef18:1431:0:b09:9616:db04:c248]) by smtp.gmail.com with ESMTPSA id bf10-20020a0560001cca00b0031432f1528csm15124340wrb.45.2023.07.31.23.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 23:21:16 -0700 (PDT) In-reply-to: <863514c7wr.fsf@mail.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:266435 Archived-At: Juri Linkov writes: >> 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. Fantastic, thanks. I was not aware that existed.