From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2881: 23.0.91; inconsistent regexps with "explicitly numbered group" Date: Fri, 03 Apr 2009 21:55:42 +0200 Message-ID: References: Reply-To: Andreas Schwab , 2881@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238790254 3970 80.91.229.12 (3 Apr 2009 20:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 20:24:14 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 2881@emacsbugs.donarmstrong.com To: Joe Corneli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 22:25:32 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lppx8-00045G-85 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 22:25:26 +0200 Original-Received: from localhost ([127.0.0.1]:52115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lppvj-0004C5-UX for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 16:23:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lppvf-0004Bm-Co for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 16:23:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lppva-0004BK-M6 for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 16:23:54 -0400 Original-Received: from [199.232.76.173] (port=44534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lppva-0004BG-Ca for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 16:23:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57479) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LppvZ-0001m8-TO for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 16:23:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n33KNla4015574; Fri, 3 Apr 2009 13:23:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n33K5Bwn010928; Fri, 3 Apr 2009 13:05:11 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 03 Apr 2009 20:05:11 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2881 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2881-submit@emacsbugs.donarmstrong.com id=B2881.12387885508188 (code B ref 2881); Fri, 03 Apr 2009 20:05:11 +0000 Original-Received: (at 2881) by emacsbugs.donarmstrong.com; 3 Apr 2009 19:55:50 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n33JtkF2008182 for <2881@emacsbugs.donarmstrong.com>; Fri, 3 Apr 2009 12:55:48 -0700 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 0D4851C000A3; Fri, 3 Apr 2009 21:55:42 +0200 (CEST) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 7017190177; Fri, 3 Apr 2009 21:55:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id 3dstXJpWLLbs; Fri, 3 Apr 2009 21:55:43 +0200 (CEST) Original-Received: from igel.home (DSL01.83.171.154.133.ip-pool.NEFkom.net [83.171.154.133]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 3 Apr 2009 21:55:43 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id D1A3310D9E6; Fri, 3 Apr 2009 21:55:42 +0200 (CEST) X-Yow: TAILFINS!! ...click... In-Reply-To: (Joe Corneli's message of "Fri, 3 Apr 2009 15:15:01 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 03 Apr 2009 16:23:54 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26889 gmane.emacs.pretest.bugs:24227 Archived-At: Joe Corneli writes: > Please execute the following forms with C-x C-e. Form 1 > and Form 3 return `t' (Yes, we are looking at the > indicated regular expression), whereas Form 2 returns > `nil' (even though from the Elisp reference page "34.3.1.3 > Backslash Constructs in Regular Expressions", it appears > that this form ought to return `t' like the others). `\|' applies to the largest possible surrounding expressions. Only a surrounding `\( ... \)' grouping can limit the grouping power of `\|'. > (let ((possible-environments > "\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) > (looking-at > (concat "\n*?\\\\begin{" > possible-environments > "}"))) The three alternatives of this regexp are "\n*?\\\\begin{\\(?1:lisp\\)", "\\(?1:idea\\)" and "\\(?1:common\\)". Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."