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 15:15:01 -0400 Message-ID: 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: 7bit X-Trace: ger.gmane.org 1238786654 24827 80.91.229.12 (3 Apr 2009 19:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2009 19:24:14 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 21: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 1Lpp15-0001i8-SB for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 21:25:28 +0200 Original-Received: from localhost ([127.0.0.1]:34007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lpozh-0007BH-Q3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2009 15:24:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lpozd-0007B9-Hm for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 15:23:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpozW-00078s-Mw for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 15:23:55 -0400 Original-Received: from [199.232.76.173] (port=34235 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpozW-00078p-JY for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 15:23:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35775) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LpozV-00045j-Mw for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2009 15: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 n33JNlDI031489; Fri, 3 Apr 2009 12:23:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n33JK375030279; Fri, 3 Apr 2009 12:20:03 -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 19:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2881 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123878611129770 (code B ref -1); Fri, 03 Apr 2009 19:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Apr 2009 19:15:11 +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 n33JF5Qq029156 for ; Fri, 3 Apr 2009 12:15:06 -0700 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.150.156.9 with SMTP id d9mr2729204ybe.108.1238786101207; Fri, 03 Apr 2009 12:15:01 -0700 (PDT) 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 15:23: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:26888 gmane.emacs.pretest.bugs:24226 Archived-At: 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...