From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Numbered regexps throw invalid regex error
Date: Thu, 26 Jan 2012 11:52:45 +0000 [thread overview]
Message-ID: <m3sjj27kaa.fsf@passepartout.tim-landscheidt.de> (raw)
In-Reply-To: loom.20120126T092647-897@post.gmane.org
Tom <adatgyujto@gmail.com> wrote:
>> > There is no mention of an automatic assignment. It says the last one
>> > will win, so assigning a number which is already used for
>> > a previous group should work.
>> would consider it a bug then - at least a docu bug
> I don't think it's a doc bug. The whole point of the feature is that
> you can assign constant numbers to groups, so they don't change if you
> add/remove parens.
> If it can suddenly throw a regexp error, just because you've added
> a paren around an other paren then it pretty much defeats the
> prupose of the feature.
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 "\\(?:", or if they want to refer to it, they have to
think about how to do that anyhow.
How would you rephrase the documentation so that the cur-
rent behaviour is more comprehensibly described?
Tim
next prev parent reply other threads:[~2012-01-26 11:52 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 [this message]
2012-01-26 14:36 ` Tom
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=m3sjj27kaa.fsf@passepartout.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--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.