From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>, dvilleneuve.4142@gmail.com
Cc: 74861@debbugs.gnu.org
Subject: bug#74861: 31.0.50; etags no longer processing shy groups as expected in --regex options
Date: Sat, 14 Dec 2024 11:39:54 -0700 [thread overview]
Message-ID: <a92fda27-c33c-4021-84ca-90d735f1b549@cs.ucla.edu> (raw)
In-Reply-To: <86bjxewtn2.fsf@gnu.org>
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.
prev parent reply other threads:[~2024-12-14 18:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 16:06 bug#74861: 31.0.50; etags no longer processing shy groups as expected in --regex options dvilleneuve.4142
2024-12-14 8:33 ` Eli Zaretskii
2024-12-14 18:39 ` Paul Eggert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a92fda27-c33c-4021-84ca-90d735f1b549@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=74861@debbugs.gnu.org \
--cc=dvilleneuve.4142@gmail.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).