From: Tom <adatgyujto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Numbered regexps throw invalid regex error
Date: Thu, 26 Jan 2012 14:36:50 +0000 (UTC) [thread overview]
Message-ID: <loom.20120126T152511-202@post.gmane.org> (raw)
In-Reply-To: m3sjj27kaa.fsf@passepartout.tim-landscheidt.de
Tim Landscheidt <tim <at> tim-landscheidt.de> writes:
>
> I'd agree that the documentation should be more verbose, but
> I don't think that your argument that it'd be a bug is va-
> lid. If someone added another pair of parentheses around
> "a\\(?1:b\\)", either they don't want to refer to it, thus
> using "\\(?:"
Why should they use "\\(?:" explicitly if they don't care about it?
I personally never use the shy group construct, because
if I don't want to use a groups' value then I simply ignore it.
It will capture some data, but who cares?
That's what the explicit numbering of groups is about that I can
number those groups which I'm interested in and I can simply ignore
the others, beause I know that adding and removing groups should not
affect my explicitly numbered groups.
The proper solution is fixing the implementation, so it honors
the user's explicit choices, not forcing the user to change the
regexp.
prev parent reply other threads:[~2012-01-26 14:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-25 10:17 Numbered regexps throw invalid regex error Tom
2012-01-25 17:21 ` Andreas Röhler
2012-01-25 17:51 ` Tom
2012-01-25 20:02 ` Andreas Röhler
2012-01-25 20:14 ` Tom
2012-01-25 20:37 ` Andreas Röhler
2012-01-26 8:30 ` Tom
2012-01-26 9:29 ` Andreas Röhler
2012-01-26 11:52 ` Tim Landscheidt
2012-01-26 14:36 ` Tom [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20120126T152511-202@post.gmane.org \
--to=adatgyujto@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.