From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Villeneuve Newsgroups: gmane.emacs.bugs Subject: bug#74861: 31.0.50; etags no longer processing shy groups as expected in --regex options Date: Sat, 14 Dec 2024 16:00:24 -0500 Message-ID: References: <20241213160630.82sGx%dvilleneuve.4142@gmail.com> <86bjxewtn2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29955"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74861@debbugs.gnu.org To: Paul Eggert , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 19:44:20 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 1tMtbH-0007d0-A8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 19:44:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtb8-0004eF-Cb; Sun, 15 Dec 2024 13:44:10 -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 1tMtb5-0004dz-Vl for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:44:08 -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 1tMtb5-0006du-NS for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:44:07 -0500 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=Q2omdK5LQ0Zpk3BRBKEPCYwr1qixSDZ5W6L3CXHCOGs=; b=aVritiOt99UEKIgHGvYiJqejUiwo2ije680AYPWE68RELkHzryyvfgkoAXU+TXqfFuM25Ucr9tdC/FHuc6lTMYfxHqGvktdxde78eFgeaV/5YtVT4aIyA4+gsaiQo3zodvCzmLlqvSYhZ4vxpMsvACatN0n+7SV40RWLjIvPxC8cZf4Dnksrvy/2MnZKgfan3rPreML0q/HP2lMlwIa7LwXltvhv+dnQe6jPnil4LsoxL/MIQ/9NWBrEihAIVX7x4Z9WIqYELB+3RT7ucFusbArzs4MWMLZNfMwxg3/qU7Z8eZcsC/eYwMcdtOoDeAaooDIby1f7oaFPeBf+YoCrIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMtb5-0004f7-IM for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:44:07 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Villeneuve Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 18:44:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74861 X-GNU-PR-Package: emacs Original-Received: via spool by 74861-submit@debbugs.gnu.org id=B74861.173428818217733 (code B ref 74861); Sun, 15 Dec 2024 18:44:07 +0000 Original-Received: (at 74861) by debbugs.gnu.org; 15 Dec 2024 18:43:02 +0000 Original-Received: from localhost ([127.0.0.1]:52045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMtZu-0004bb-Jy for submit@debbugs.gnu.org; Sun, 15 Dec 2024 13:43:01 -0500 Original-Received: from mail-qk1-f174.google.com ([209.85.222.174]:55512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMZGQ-0007gw-4T for 74861@debbugs.gnu.org; Sat, 14 Dec 2024 16:01:27 -0500 Original-Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7b6f8524f23so282989385a.2 for <74861@debbugs.gnu.org>; Sat, 14 Dec 2024 13:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734210025; x=1734814825; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Q2omdK5LQ0Zpk3BRBKEPCYwr1qixSDZ5W6L3CXHCOGs=; b=BF8TpROFHMNbLzjOuaNs3a0jSIn76ZouiPvXjE0CTvfzPWtshBDcQt9DH7FWRSF2uC wtlvS0/XKtZ4nH0gh3TtB6yQoZxw5LpGbSsNm0pih6xf+k0aLpSZQ1B76GY19pnt81bx Lqzu8qEFV6lG5wK723+y8Ze8sKhmgPafz1ekO8snC6NhVsTxes96MQUpaGMcbb/h42BE XGARLSgz1dG6VBSCMFL71z2uvum4Ja7EAxpuxW5RobWrA7aGDrxMNGEq94Qe98wBEpUh fJneAS8LK6QTfwgHuTV8x55rSc8hgKnMmV74Hh2uVV+V80QJ9RW1ESJ6GTS7k3ZP4SlO zwbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734210025; x=1734814825; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q2omdK5LQ0Zpk3BRBKEPCYwr1qixSDZ5W6L3CXHCOGs=; b=dpI196QYyePJj3Fj2dyhINDQwXdUvc1G21zwqrQA1XYuy5nhc8q9liw/0iGR1k94GQ btG+OPXVtAWtc/seNj9EzjKrB9mcbOYABSiPMEhtW2idlTEEfDzIDLhrKO0ynSTCS7YT D/iO/w0fZJm04TGsArOfjm8nJcLu+tEi0fd7JtV1IErUIy76GjC31ehhBi8GDy4gigpo 4gJCN3mrdAiLtUbu87PfnhWTLXoU5yUHbDCGsMO6EJNwJ2iXqaAJSsSTiZYS0VOAxir4 CMYT88T4qvHA2h24EYsps093uKyJdbFTx+QCSoKQo9xVPyiKo6yzdA2qSKr1kZpkm9vJ zRWw== X-Gm-Message-State: AOJu0Yxgn6Kxv7JJAUgRs47toqwZLq72MLvuO+Cxgboh3U65lj/H4b0q JNc/zeCbd2K+jcu/rHf2XXaF6LMWTQEoywJcB5vGYIDMZL6YYlm2 X-Gm-Gg: ASbGncvB0fEs1LknYcBxOeMla/g0t/dEsO9RIlSyE2O+SN+EfYCtqPUe7+/2zpy1is7 4zfNxEjyN/aHgaWwryEL1pS5R0Mx0hBGEYTQd2bp7eXLAgTtMBGo1Qu0kU0AukuOTGWKnKQ0Ybu rufs89psXxfULOMKXfPSI3hd7WHs7n5sCxBN+1PYAWHGukmA6WveFxxbiTC3MkYc8Kc28Co0Vdu b9unH4RBAWyA8DOMIC1015Q8JeovPZjhPzIXWBjOA9vLyd5vlS5X+Pn2yObqthnbahyWvcoQYJa iHxsy6+n2Arz6A2nQKMAu/wvrqHYnbBtcFRjO6c= X-Google-Smtp-Source: AGHT+IENi2oSt7vTKZpm67SD4qCfE3kpc89+zl8C9S9RBxt4NuJ8xu1whBn8cO9esjnVFdLuRAFokQ== X-Received: by 2002:a05:620a:27d2:b0:7b6:c92e:2e83 with SMTP id af79cd13be357-7b6fbee7b9dmr1299928085a.17.1734210025345; Sat, 14 Dec 2024 13:00:25 -0800 (PST) Original-Received: from [192.168.0.109] (modemcable016.141-19-135.mc.videotron.ca. [135.19.141.16]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b7048bd8f1sm92120085a.77.2024.12.14.13.00.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Dec 2024 13:00:24 -0800 (PST) Content-Language: en-US In-Reply-To: X-Mailman-Approved-At: Sun, 15 Dec 2024 13:42:53 -0500 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:297124 Archived-At:
On 12/14/24 13:39, Paul Eggert wrote:
On 12/14/24 01:33, Eli Zaretskii wrote:
I'm guessing this is because Emacs 27 switched to the Gnulib's regex
implementation in etags and other lib-src programs, whereas previous
versions used the Emacs's own regex code (which is still used for
Emacs's own regex search and replacement code).

CC'ing Paul Eggert, in the hope he can tell whether this is expected
or not, or how to fix it.

Yes that's expected, as glibc/Gnulib regex doesn't do shy groups. A workaround is to not use shy groups, e.g.:

etags --regex='/DEFINE_FF *(\(TAG \)? *\([^)]+\)/\2/' \
  --output ETAGS-test foo.c

This should be portable between both older and newer etags.
Thanks for analyzing this.
This looks like a silent change.
Maybe etags' documentation should reflect this, as currently the man
page still says "The syntax of regexps is the same as in emacs."
which is no longer true.