From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Derick Eddington Newsgroups: gmane.emacs.bugs Subject: bug#1518: `rx' making nested `or' forms in a `group' wrong Date: Mon, 08 Dec 2008 20:19:20 -0800 Message-ID: <1228796360.10749.17.camel@eep> Reply-To: Derick Eddington , 1518@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228836504 24060 80.91.229.12 (9 Dec 2008 15:28:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 15:28:24 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 16:29:27 2008 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 1LA4Wb-0008Mx-2I for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 16:29:25 +0100 Original-Received: from localhost ([127.0.0.1]:44749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA4VP-0002Eo-OH for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 10:28:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9uSN-00080u-LA for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:44:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9uSM-00080i-6F for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:44:22 -0500 Original-Received: from [199.232.76.173] (port=43161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9uSM-00080f-0B for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:44:22 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58189) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9uSL-0005Kz-D0 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:44:21 -0500 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 mB94iHVa022963; Mon, 8 Dec 2008 20:44:17 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB94P424017964; Mon, 8 Dec 2008 20:25:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Derick Eddington Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Dec 2008 04:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1518 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122879645417705 (code B ref -1); Tue, 09 Dec 2008 04:25:04 +0000 X-Spam-Bayes: score:0.0000 Tokens: new, 57; hammy, 151; neutral, 179; spammy, 0. spammytokens: hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--nil Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Dec 2008 04:20:54 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB94KnNY017699 for ; Mon, 8 Dec 2008 20:20:51 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9u5Z-0000lr-HT for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:20:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9u5Y-0000lV-NE for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:20:49 -0500 Original-Received: from [199.232.76.173] (port=47364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9u5Y-0000lS-Ji for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:20:48 -0500 Original-Received: from yx-out-1718.google.com ([74.125.44.155]:50280) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9u5Y-0003bh-A9 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2008 23:20:48 -0500 Original-Received: by yx-out-1718.google.com with SMTP id 34so637396yxf.66 for ; Mon, 08 Dec 2008 20:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=4n54wN7cvnGBC559OU10BVpwa9tTdxrT/Ag3Avxv4WE=; b=uJINOXHJnupI9RF/2d711x5mEa5+ZfNU+omc0HTRNUZv3kWGK28RnTdlFLibK8vGRG eoMzbQWwc9Jid+JJKw1daakQwIRn52sL+SAp/8OFXv6zjUImma889xzftGMlA6V5lJp8 tfxuZUn/8nQb5t6w6JHVkr1zyAsaUCQlfvjSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=rqlt0eesfCa4WGkT57cngVTLKJgbwPYle2axNbjkYhJtQWDW74Zm8OdV0Y275uzf9A URwJIT1+5ErKr+U2t8AxhhC3aYEusVQZDcy9rphkOnaplw0kYAdrfCjxYqbChu+vBQ9Z 0BuaOtFKLA/QO7ifSyXANcGK7TruBNwYQCXWU= Original-Received: by 10.142.214.11 with SMTP id m11mr1897935wfg.57.1228796446028; Mon, 08 Dec 2008 20:20:46 -0800 (PST) Original-Received: from ?192.168.1.2? (pool-173-51-86-88.lsanca.fios.verizon.net [173.51.86.88]) by mx.google.com with ESMTPS id 9sm13648470wfc.16.2008.12.08.20.20.43 (version=SSLv3 cipher=RC4-MD5); Mon, 08 Dec 2008 20:20:44 -0800 (PST) X-Mailer: Evolution 2.24.2 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: Mon, 08 Dec 2008 23:44:22 -0500 X-Mailman-Approved-At: Tue, 09 Dec 2008 10:27:50 -0500 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:23071 Archived-At: This one is wrong: (rx (seq (group "foo" (or (or "asdf" "lkjh") "zab")) "bar")) => "\\(foo\\(?:asdf\\|lkjh\\)\\|zab\\)bar" This similar one without the group is correct: (rx (seq "foo" (or (or "asdf" "lkjh") "zab") "bar")) => "foo\\(?:\\(?:asdf\\|lkjh\\)\\|zab\\)bar" -- : Derick ---------------------------------------------------------------- In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.14.3) of 2008-10-13 on rothera, modified by Debian (emacs-snapshot package, version 1:20081013-1) Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ) g r o u p SPC C-j M-w C-y C-M-SPC C-M-SPC C-w C-y C-M-k C-j M-x r e p o r t - e m a c s - b u Recent messages: 1 match Making completion list... Mark set [4 times] Quit Mark set [5 times] Entering debugger... Mark set [2 times] Entering debugger... Undo! [2 times] Mark set [8 times]