From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Numbered regexps throw invalid regex error Date: Thu, 26 Jan 2012 14:36:50 +0000 (UTC) Message-ID: References: <4F203A13.20105@easy-emacs.de> <4F205FC5.90106@easy-emacs.de> <4F206810.7080001@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327588648 3887 80.91.229.12 (26 Jan 2012 14:37:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 14:37:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 15:37:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RqQS3-0006Zw-Vx for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jan 2012 15:37:24 +0100 Original-Received: from localhost ([::1]:46512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqQS3-0003nB-8v for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jan 2012 09:37:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqQRu-0003mY-2o for help-gnu-emacs@gnu.org; Thu, 26 Jan 2012 09:37:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqQRp-0003Rg-DQ for help-gnu-emacs@gnu.org; Thu, 26 Jan 2012 09:37:13 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqQRo-0003RT-Os for help-gnu-emacs@gnu.org; Thu, 26 Jan 2012 09:37:09 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RqQRn-0006Tj-JY for help-gnu-emacs@gnu.org; Thu, 26 Jan 2012 15:37:07 +0100 Original-Received: from 178-164-187-216.pool.digikabel.hu ([178.164.187.216]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jan 2012 15:37:07 +0100 Original-Received: from adatgyujto by 178-164-187-216.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jan 2012 15:37:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 178.164.187.216 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.10.229 Version/11.61) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83570 Archived-At: Tim Landscheidt 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.