From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2881: marked as done (23.0.91; inconsistent regexps with "explicitly numbered group") Date: Fri, 03 Apr 2009 21:50:03 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1238795403-7005-0" X-Trace: ger.gmane.org 1238796310 21849 80.91.229.12 (3 Apr 2009 22:05:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 22:05:10 +0000 (UTC) To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 04 00:06:29 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 1LprWX-0000BC-W0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2009 00:06:07 +0200 Original-Received: from localhost ([127.0.0.1]:44826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprVA-0003ky-1G for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 18:04:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LprUT-0003SM-0G for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LprUO-0003OC-Bl for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:56 -0400 Original-Received: from [199.232.76.173] (port=45760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LprUN-0003Ny-6h for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 18:03:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47801) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LprUM-0006ZJ-Ai 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 n33M3lOY010886; 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 n33Lo32C007040; Fri, 3 Apr 2009 14:50:03 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2881 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:26896 Archived-At: This is a multi-part message in MIME format... ------------=_1238795403-7005-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 03 Apr 2009 17:43:37 -0400 with message-id and subject line Re: bug#2881: 23.0.91; inconsistent regexps with "explicit= ly numbered group" has caused the Emacs bug report #2881, regarding 23.0.91; inconsistent regexps with "explicitly numbered group" to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2881: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2881 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1238795403-7005-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 3 Apr 2009 19:15:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n33JF5Qq029156 for ; Fri, 3 Apr 2009 12:15:06 -0700 Received: from mx10.gnu.org ([199.232.76.166]:39665) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lpor2-00089k-LU for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 15:15:04 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lpor0-0003Gh-Ju for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 15:15:04 -0400 Received: from yx-out-1718.google.com ([74.125.44.157]:35160) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lpor0-0003GX-9h for emacs-pretest-bug@gnu.org; Fri, 03 Apr 2009 15:15:02 -0400 Received: by yx-out-1718.google.com with SMTP id 3so827102yxi.66 for ; Fri, 03 Apr 2009 12:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=j1aMhIEGrqEDuoyF+/EPPnGr4RaAmBNwFfrlQenVWz8=; b=u7VxDlqgTwcmYB/NdlPugdWEfUgWeoI2WrbuKktbf8w7EPrHf96q0Y9ZbMqor67miu hZXzZls2obNeC7V1OGvCi7xlRQXF+9htc+usQbf5R5DDxtf1mFp6d7ncIOduIz9ElrT4 vaDCOBhBUhBM2frh1elNJyaoOsR8p/gpvPAXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=mUFsxrftPI2ExcM3LEJZ6ZbxE7sfx6JOlcIvNMKuLXJLxb8/RzYm+zzqt1D/u08jOx R3eMsyLV45C/nS9DRCbeUrwamZSbPyEir2bNw0Tm7SComm3eykCGf8L13w5kvf/9x1v2 pcwkelHInb/5UzYDx9zgHH2wHVhlU71kZEY+c= MIME-Version: 1.0 Received: by 10.150.156.9 with SMTP id d9mr2729204ybe.108.1238786101207; Fri, 03 Apr 2009 12:15:01 -0700 (PDT) Date: Fri, 3 Apr 2009 15:15:01 -0400 Message-ID: Subject: 23.0.91; inconsistent regexps with "explicitly numbered group" From: Joe Corneli To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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). For comparison's sake, Form 4 and Form 5 show different inconsistent behavior when using `search-forward-regexp'. Form 4 only finds part of the match, whereas Form 5 finds the full match. Form #1. (let ((possible-environments "\\(1?:lisp\\|idea\\|common\\)")) (looking-at (concat "\n*?\\\\begin{" possible-environments "}"))) \begin{idea} Form #2. (let ((possible-environments "\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) (looking-at (concat "\n*?\\\\begin{" possible-environments "}"))) \begin{idea} Form #3. (let ((possible-environments "\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) (looking-at (concat "\n*?\\\\begin{" possible-environments "}"))) \begin{lisp} Form #4. (let ((possible-environments "\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) (search-forward-regexp (concat "\n*?\\\\begin{" possible-environments "}"))) \begin{lisp} Form #5. (let ((possible-environments "\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)") ) (search-forward-regexp (concat "\n*?\\\\begin{" possible-environments "}"))) \begin{common} If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /Users/planetmath/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.91.1 (i386-apple-darwin8.11.1, GTK+ Version 2.14.7) of 2009-03-31 on planet-maths-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--infodir=${prefix}/share/info' '--mandir=${prefix}/share/man' '--libexecdir=${prefix}/lib'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: 1 Recent input: M-\ C-SPC M-w M-> C-y ) \ \ b e g j i n { } i d e a C-e C-e C-x C-e C-e M-< M-< C-x C-f m a r x a n - m g C-s i m p o r t - c o d C-s C-s C-a C-e C-SPC C-a M-w C-x b * s c M-> C-y M-f M-f M-f M-b C-SPC M-w C-y M-b M-b M-f M-f c o m m o n C-SPC C-a M-w M-> C-y C-e ) C-e C-e C-e C-e ) M-> C-e C-x C-e C-SPC C-a M-w M-> C-y l i s p C-e C-x C-e C-SPC C-a M-w M-x r e p o r Recent messages: t Mark set [2 times] Making completion list... Mark saved where search started Mark set [9 times] nil Mark set [3 times] t Mark set Making completion list... ------------=_1238795403-7005-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2881-done) by emacsbugs.donarmstrong.com; 3 Apr 2009 21:43:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n33Lhcdd005489 for <2881-done@emacsbugs.donarmstrong.com>; Fri, 3 Apr 2009 14:43:39 -0700 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n33LhbDO023249; Fri, 3 Apr 2009 17:43:37 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CE5F980CBE; Fri, 3 Apr 2009 17:43:37 -0400 (EDT) From: Stefan Monnier To: Joe Corneli Cc: 2881-done@emacsbugs.donarmstrong.com Subject: Re: bug#2881: 23.0.91; inconsistent regexps with "explicitly numbered group" Message-ID: References: Date: Fri, 03 Apr 2009 17:43:37 -0400 In-Reply-To: (Joe Corneli's message of "Fri, 3 Apr 2009 16:41:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3246=0 > What about the comparison between Form 4 and Form 5, > which seems to not only go against the description of `\|' > you quoted, but to contain another internal inconsistency > (whether or not the final `}' is matched)? Still quite expected. Your regexp is: "\n*?\\\\begin{\\(?1:lisp\\)\\|\\(?1:idea\\)\\|\\(?1:common\\)}" i.e. "\n*?\\\\begin{\\(?1:lisp\\)" or "\\(?1:idea\\)" or "\\(?1:common\\)}" Clearly, the "lisp" alternative doesn't match a closing } Stefan ------------=_1238795403-7005-0--