From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Malcolm Cook Newsgroups: gmane.emacs.bugs Subject: bug#64939: 30.0.50; The default auto-mode-interpreter-regexp does not match env with flags Date: Sat, 10 Feb 2024 11:23:11 -0600 Message-ID: References: <87mszebgwy.fsf@gmail.com> <86a5o8vi5d.fsf@gnu.org> <871q9kvcsa.fsf_-_@gmail.com> <87v86wtfgd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Wilhelm Kirschbaum , 64939@debbugs.gnu.org, Eli Zaretskii To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 10 18:25:00 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 1rYr63-0008dD-JB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Feb 2024 18:24:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYr5s-0003zH-W5; Sat, 10 Feb 2024 12:24:49 -0500 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 1rYr5q-0003z5-Ss for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 12:24:46 -0500 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 1rYr5q-00043F-G4 for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 12:24:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYr65-0002M3-VU for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 12:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Malcolm Cook Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2024 17:25:01 +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.17075858588931 (code B ref 64939); Sat, 10 Feb 2024 17:25:01 +0000 Original-Received: (at 64939) by debbugs.gnu.org; 10 Feb 2024 17:24:18 +0000 Original-Received: from localhost ([127.0.0.1]:56151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYr5N-0002Jx-Ef for submit@debbugs.gnu.org; Sat, 10 Feb 2024 12:24:18 -0500 Original-Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:61569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYr5G-0002JX-4H for 64939@debbugs.gnu.org; Sat, 10 Feb 2024 12:24:16 -0500 Original-Received: by mail-ua1-x92f.google.com with SMTP id a1e0cc1a2514c-7d2e19120b5so1077235241.2 for <64939@debbugs.gnu.org>; Sat, 10 Feb 2024 09:23:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707585828; x=1708190628; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kpGG6IYudj1q8lnPVzaZGMlBYfRfVK33JXHtaAfToPo=; b=YV3+FJZFSTziaNI/148kbLTqUA0ZbFZzGJLqA3jvBvsjWqyITFqLFDX0iuvJq0Uhzk AZhDpKQMD0CGIs6s/FPGGxXD3PMidzNQMcQzGncfTzV8xFw+opUNxvPjiRhSxWu82pF6 nmEEuxMjfAnIdwbG6pCv95VnBz9SytbjODXr4pgeUdIcuVcc+SGJ2OxnONs+kHv0OlWp cSFJaYd4BjI2dFyvZm63Ux/5/ZuwrtH7YlLIIxnESQW7/ZLWCFbhEpH47DY1YgHqgREX ciUX3WEPeDrdcTSnrhcwshYjP/LEo6430Ev0GAj+mAj9PL8fGvygKK9fAHv53jLgRbL2 Plpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707585828; x=1708190628; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kpGG6IYudj1q8lnPVzaZGMlBYfRfVK33JXHtaAfToPo=; b=pnvjc5L/rwej4vrii1WNKgLwGs7LP5vuxmALYQKkG/vUUtzxs8AAbns7SGED/yMHxu +l1uTjMS2iXhEXZrGWmc5024cR0gnExuLEbBqWy3ctYf370l2ZEgP5FOhP+hmb3R9BRc TYVHyF+QPm+1RX4L7nJkIoIQmKzPtnFXHpJcHm3+8YSG3eW/ZC6XzLEiMPlc/No+V2ay uExCtagQkQvlVzE1xjugdDgCVXswcICZtTMCftW7D57P61fDZqtRDq0Eumok1FmFW2Ll dWOfUYpifvMVv+G1zLTOgDBntzV8Ja3cyJVASdEz38r6FwtEI46gz7wGyO50UAKw5ehw m18g== X-Gm-Message-State: AOJu0YzfYZ/y2WtL1woP7JkprR7i1x95rFgeFXZBWENEHdQ/gx7cD0ZE 2Zoa00OawQK+gJCA+wf1W94xXNqOjp8LbVAAl5wDHnANQNHVissGk7iVRynlAhacp0avOQ0hZzn E/nYvcWa+GnDNwpcVET0/vxZFKgA= X-Google-Smtp-Source: AGHT+IGeVl6OkHsqfaC83/9EJD1oi/ESVCSmCcTYOIuLiNWAOw9osM75W4yQO3qlbfHjboEDyMDWhgQNiCxXW9L5W6s= X-Received: by 2002:a67:b307:0:b0:46d:5cb3:1657 with SMTP id a7-20020a67b307000000b0046d5cb31657mr1961291vsm.25.1707585828491; Sat, 10 Feb 2024 09:23:48 -0800 (PST) In-Reply-To: <87v86wtfgd.fsf@gmail.com> 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:279765 Archived-At: Hooray - thanks - all seems perfect to me On Sat, Feb 10, 2024 at 11:08=E2=80=AFAM K=C3=A9vin Le Gouguec wrote: > > K=C3=A9vin Le Gouguec writes: > > > Is this Good Enough=E2=84=A2 for your purposes (Malcolm, Wilhelm), or s= hould we > > sophisticate the regexp further? FWIW, in no particular order: > > > > (a) env(1) does seem to support mixing up arbitrary options with -S=C2= =B9, so > > in principle it would make sense to support that; > > > > (b) Eli did not seem too found of the regexp hammer=C2=B2, so I don't k= now > > which direction we'd want to go between maximally correct (accept > > all arguments, _as long as_ -S|--split-string is in there) or good > > enough (just skip over --everything --that --looks --like -a > > --switch). > > > > (c) FWIW the "maximally correct" regexp might not be _that_ ugly, since > > "-[v]S[OPTION]" must be the *first* token after env; in other words > > no need to support --some-option --split-string --more-options. > > Well, sorry, couldn't resist. How do the attached patches look? The > new testcases should tell the whole story. > > ('make && make -C test files-tests' seems none the worse for wear) > --=20 ~ Malcolm Cook