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 23:32:01 +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 1238795093 18409 80.91.229.12 (3 Apr 2009 21:44:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 21:44:53 +0000 (UTC) Cc: Joe Corneli , emacs-pretest-bug@gnu.org To: 2881@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 23:46:11 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 1LprDG-0003La-9r for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 23:46:10 +0200 Original-Received: from localhost ([127.0.0.1]:35343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprBp-0003fX-75 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 17:44:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LprBA-00034Q-2J for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 17:44:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LprB5-00030j-0n for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 17:43:59 -0400 Original-Received: from [199.232.76.173] (port=54508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprB4-00030W-SI for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 17:43:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39777) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LprB2-0002zg-5W for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 17:43:52 -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 n33Lhl27005508; Fri, 3 Apr 2009 14:43:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n33Le60X004517; Fri, 3 Apr 2009 14:40:06 -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 21:40:06 +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 submit@emacsbugs.donarmstrong.com id=B.12387943292707 (code B ref -1); Fri, 03 Apr 2009 21:40:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Apr 2009 21:32:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n33LW64u002696 for ; Fri, 3 Apr 2009 14:32:07 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:44988) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lpqzd-0003aH-TZ for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:32:06 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lpqzc-0000qT-QL for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:32:05 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:59434) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lpqzc-0000q8-Ey for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:32:04 -0400 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 8C6851C00164; Fri, 3 Apr 2009 23:32:00 +0200 (CEST) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 2684E90188; Fri, 3 Apr 2009 23:32:03 +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 WVth22shIHP1; Fri, 3 Apr 2009 23:32:02 +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 23:32:01 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 5F18E10D9E6; Fri, 3 Apr 2009 23:32:01 +0200 (CEST) X-Yow: The entire CHINESE WOMEN'S VOLLEYBALL TEAM all share ONE personality -- and have since BIRTH!! In-Reply-To: (Andreas Schwab's message of "Fri, 03 Apr 2009 21:55:42 +0200") 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, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 03 Apr 2009 17:43:59 -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:26892 gmane.emacs.pretest.bugs:24230 Archived-At: Andreas Schwab writes: > 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\\)". The last one is "\\(?1:common\\)}", of course. 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."