From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2881: 23.0.91; inconsistent regexps with "explicitly numbered group" Date: Fri, 3 Apr 2009 17:38:30 -0400 Message-ID: References: Reply-To: Joe Corneli , 2881@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238796292 21782 80.91.229.12 (3 Apr 2009 22:04:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 22:04:52 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 2881@emacsbugs.donarmstrong.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 04 00:06:10 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 1LprW6-0008Vd-BS for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2009 00:05:52 +0200 Original-Received: from localhost ([127.0.0.1]:44615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprUi-0003ZT-9a for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 18:04:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LprUR-0003RV-TE for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LprUN-0003Nl-1s for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:55 -0400 Original-Received: from [199.232.76.173] (port=45755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprUM-0003Nh-UG for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47797) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LprUM-0006ZB-2O for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03: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 n33M3lOS010886; Fri, 3 Apr 2009 15:03:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n33Lj4ZI005725; Fri, 3 Apr 2009 14:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Joe Corneli Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 03 Apr 2009 21:45:03 +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.12387947164112 (code B ref -1); Fri, 03 Apr 2009 21:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Apr 2009 21:38:36 +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 n33LcWhh004100 for ; Fri, 3 Apr 2009 14:38:33 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:45303) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lpr5r-0003kC-Tj for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:38:32 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lpr5r-00021c-FM for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:38:31 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.157]:5627) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lpr5r-00021Q-4i for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 17:38:31 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 9so872076ywk.66 for ; Fri, 03 Apr 2009 14:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=402Xdjd8kQzoEKU9Dy/riDITz9NDpyL8u62MILYYW68=; b=rOxnVfZj09oGge94yUbNOqvn34UL3mTZEGV5WESCy7yCSFN5dzQOxzV3ZkC/fQyq6d wJcdWreiUez/ELZL/VcIThoSizj1Otli+vDze1ahkwtYYW0Jr7fTbgtmnYfQdzyT80ph 6mNeAjRc2u4riwcCi3wJTi76V1RUm9flIhsWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iPYnXiqlSWXkhyKufP2bw0nM06YqqEc2ynVzNqlN0HYwTIT2LhuI1N1Ss+UGeOB438 bnu86TSkjyhxnDBsY6XwMOJz8aR53vWr6Z5UEExupmvr7miJcVb3RMbVM+7ehOiapqV/ erv4SLkqy51yk423DJRNEJjTazWf8GlI1++b4= Original-Received: by 10.151.47.7 with SMTP id z7mr2913436ybj.203.1238794710416; Fri, 03 Apr 2009 14:38:30 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 03 Apr 2009 18:03:55 -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:26895 gmane.emacs.pretest.bugs:24231 Archived-At: Oh, OK, I see! Never mind! On Fri, Apr 3, 2009 at 5:32 PM, Andreas Schwab wrot= e: > Andreas Schwab writes: > >> Joe Corneli writes: >> >>> Please execute the following forms with C-x C-e. =A0Form 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). >> >> =A0 =A0 =A0`\|' applies to the largest possible surrounding expressions. >> =A0 =A0 =A0Only a surrounding `\( ... \)' grouping can limit the groupin= g >> =A0 =A0 =A0power of `\|'. >> >>> (let ((possible-environments >>> =A0 =A0 =A0 =A0"\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) >>> =A0 =A0 =A0 (looking-at >>> =A0 =A0 =A0 =A0 =A0 =A0 (concat "\n*?\\\\begin{" >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 possible-environments >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "}"))) >> >> >> 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 =3D 58CA 54C7 6D53 942B 1756 =A001D3 44D5 214B 8276 4= ED5 > "And now for something completely different." >