From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: (perl-mode) perl-mode misparses /(xx$)/ Date: Sun, 20 Mar 2005 13:10:14 -0500 Message-ID: <87y8ciw5o4.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1111342296 12485 80.91.229.2 (20 Mar 2005 18:11:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 18:11:36 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 19:11:36 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD4tc-0000wa-0A for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2005 19:11:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD5AY-0007Wz-3N for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2005 13:28:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD59j-0007A9-Tn for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2005 13:28:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD59g-00077s-7h for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2005 13:28:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD59e-00076B-Ts for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2005 13:28:02 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD4sR-0004h3-TJ for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2005 13:10:16 -0500 Original-Received: from alfajor ([67.71.26.238]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050320181015.JOLH1567.tomts25-srv.bellnexxia.net@alfajor>; Sun, 20 Mar 2005 13:10:15 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 0F98FD72F3; Sun, 20 Mar 2005 13:10:15 -0500 (EST) Original-To: =?iso-8859-1?q?J=3Fr=3Fme_Marant?= In-Reply-To: ( =?iso-8859-1?q?J=3Fr=3Fme_Marant's_message_of?= "Mon, 07 Mar 2005 22:35:26 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 X-MailScanner-To: geb-bug-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.bugs:10968 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10968 > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=155870 Regarding this bug: in what way does the bug manifests itself? It seems indentation is unaffected (indentation is not done anyway in such regexps). Stefan >> From blarson@blars.org Thu Aug 08 00:09:54 2002 > Received: (at submit) by bugs.debian.org; 8 Aug 2002 05:09:55 +0000 > Return-path: > Received: from bleep.blars.org (monkey.nat.blars.org) [64.81.35.60] > by master.debian.org with esmtp (Exim 3.12 1 (Debian)) > id 17cfYY-0002yh-00; Thu, 08 Aug 2002 00:09:54 -0500 > Received: from monkey.nat.blars.org (monkey.nat.blars.org [172.16.1.13]) > by monkey.nat.blars.org (8.12.3/8.12.3/Debian-10) with ESMTP id g7859kQ1004131; > Wed, 7 Aug 2002 22:09:46 -0700 > Received: (from blarson@localhost) > by monkey.nat.blars.org (8.12.3/8.12.3/Debian-10) id g7859kNh004129; > Wed, 7 Aug 2002 22:09:46 -0700 > Message-Id: <200208080509.g7859kNh004129@monkey.nat.blars.org> > From: Blars Blarson > To: Debian Bug Tracking System > Subject: emacs20: perl-mode misparses /(xx$)/ > X-Mailer: reportbug 1.50 > Date: Wed, 07 Aug 2002 22:09:46 -0700 > Delivered-To: submit@bugs.debian.org > Package: emacs20 > Version: 20.7-13.1 > Severity: normal > In regular expressions in perl, $) is parsed as "end of string" > "close paren" not as "effective GID". Perl mode in emacs seems to parse > it as the latter incorrectly. This is related to, but not identical with, > bug 115898 (misparsing $} ) > Real-life code segment that triggers this bug: > if ( ! /^(?:access\ to| > by\ (?:submitting|this\ policy)| > get\ your| > handle,\ shown| > information\ and\ whois\.nic\.mil| > the\ (?:arin|data\ in|domain\ council)| > to\ (?:optimize\ query|single)| > this\ (?:policy|query)| > network\ information\:| > please\ use\ the| > policy\ | > register\ your| > whois\ HELP\@whois\.corenic\.net| > \%\ (?:How\ to\ use\ the| > The\ objects\ are\ in| > This\ is\ the\ RIPE| > Please\ visit\ http| > Rights\ restricted\ by| > See\ http:\/\/www\.ripe\.net| > Upgrade\ to\ Whois| > Whois\ data\ copyright)| > \%ok$)/xi ) { > s/\r//g; > $answer .= $_ . "\n"; > } > -- System Information > Debian Release: 3.0 > Architecture: i386 > Kernel: Linux monkey 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 > Locale: LANG=C, LC_CTYPE=C > Versions of packages emacs20 depends on: > ii dpkg 1.9.21 Package maintenance system for Deb > ii emacsen-common 1.4.15 Common facilities for all emacsen. > ii libc6 2.2.5-10 GNU C Library: Shared libraries an > ii liblockfile1 1.03 NFS-safe locking library, includes > ii libncurses5 5.2.20020112a-7 Shared libraries for terminal hand > ii libxaw7 4.1.0-16 X Athena widget set library > ii xlibs 4.1.0-16 X Window System client libraries >> From frank@lichtenheld.de Wed Jan 14 10:23:08 2004 > Received: (at 155870-done) by bugs.debian.org; 14 Jan 2004 16:23:08 +0000 > Return-path: > Received: from sorgfalt.net (mail.sorgfalt.net) [217.160.169.191] > by master.debian.org with esmtp (Exim 3.35 1 (Debian)) > id 1AgnnP-0007cE-00; Wed, 14 Jan 2004 10:23:07 -0600 > Received: from pd9530b7e.dip.t-dialin.net ([217.83.11.126] helo=djpig.djpig.de) > by mail.sorgfalt.net with asmtp > (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.35 (Sorgfalt)) > id 1AgnnP-0005WP-00; Wed, 14 Jan 2004 17:23:07 +0100 > Received: from djpig by djpig.djpig.de with local (Exim 3.35 #1 (Debian)) > id 1Agnn6-0006cw-00; Wed, 14 Jan 2004 17:22:48 +0100 > Date: Wed, 14 Jan 2004 17:22:43 +0100 > To: 65552-done@bugs.debian.org, 75209-done@bugs.debian.org, > 84138-done@bugs.debian.org, 116664-done@bugs.debian.org, > 116811-done@bugs.debian.org, 125939-done@bugs.debian.org, > 155870-done@bugs.debian.org, 163762-done@bugs.debian.org > Subject: Checking old emacs20 bugs > Message-ID: <20040114162240.GK19911@djpig.de> > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > User-Agent: Mutt/1.3.28i > From: Frank Lichtenheld > Delivered-To: 155870-done@bugs.debian.org > X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_13 > (1.212-2003-09-23-exp) on master.debian.org > X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no > version=2.60-bugs.debian.org_2004_01_13 > X-Spam-Level: > reassign 81464 emacs21 > reassign 82687 emacs21 > reassign 90154 emacs21 > reassign 112094 emacs21 > reassign 122822 emacs21 > thanks > I checked a few emacs20 bugs if they apply to emacs21, too, since > emacs20 was removed from Debian unstable. I close now ll bugs I couldn't > reproduce with emacs21 from unstable and reassign the others. > Gruesse, > -- > Frank Lichtenheld > www: http://www.djpig.de/ >> From blarson@blars.org Wed Jan 14 15:02:39 2004 > Received: (at 155870) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000 > Return-path: > Received: from bleep.blars.org (renig.nat.blars.org) [64.81.35.60] > by master.debian.org with esmtp (Exim 3.35 1 (Debian)) > id 1Ags9u-0005yf-00; Wed, 14 Jan 2004 15:02:38 -0600 > Received: from renig.nat.blars.org (plergb.nat.blars.org [172.16.1.1]) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i0EL2bkO011218; > Wed, 14 Jan 2004 13:02:37 -0800 > Received: (from blarson@localhost) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) id i0EL2bAJ011216; > Wed, 14 Jan 2004 13:02:37 -0800 > Date: Wed, 14 Jan 2004 13:02:37 -0800 > From: Blars Blarson > To: 155870@bugs.debian.org > Cc: control@bugs.debian.org > Subject: 155870 also present in emacs21 > Message-ID: <20040114210237.GA9983@blars.org> > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > User-Agent: Mutt/1.3.28i > Delivered-To: 155870@bugs.debian.org > X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_13 > (1.212-2003-09-23-exp) on master.debian.org > X-Spam-Status: No, hits=1.0 required=4.0 tests=SPAMBUGNUMSUBJ autolearn=no > version=2.60-bugs.debian.org_2004_01_13 > X-Spam-Level: * > reopen 155870 > reassign 155870 emacs21 > thanks > This bug still exists in emacs21 on sarge. You can reproduce it by > typing the line (when in perl mode) > if (/(xx$)/) { > and noting the inner paren is matched rather than the outer when the > second close paren is typed. > This is extremly irritating when emacs gets confused about how > something should be indented and repeadtedly undoes my correct > indentation. > -- > Blars Blarson blarson@blars.org > http://www.blars.org/blars.html > With Microsoft, failure is not an option. It is a standard feature. >> From blarson@blars.org Wed Jan 14 15:02:39 2004 > Received: (at control) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000 > Return-path: > Received: from bleep.blars.org (renig.nat.blars.org) [64.81.35.60] > by master.debian.org with esmtp (Exim 3.35 1 (Debian)) > id 1Ags9u-0005yf-00; Wed, 14 Jan 2004 15:02:38 -0600 > Received: from renig.nat.blars.org (plergb.nat.blars.org [172.16.1.1]) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i0EL2bkO011218; > Wed, 14 Jan 2004 13:02:37 -0800 > Received: (from blarson@localhost) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) id i0EL2bAJ011216; > Wed, 14 Jan 2004 13:02:37 -0800 > Date: Wed, 14 Jan 2004 13:02:37 -0800 > From: Blars Blarson > To: 155870@bugs.debian.org > Cc: control@bugs.debian.org > Subject: 155870 also present in emacs21 > Message-ID: <20040114210237.GA9983@blars.org> > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > User-Agent: Mutt/1.3.28i > Delivered-To: control@bugs.debian.org > X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_13 > (1.212-2003-09-23-exp) on master.debian.org > X-Spam-Status: No, hits=1.0 required=4.0 tests=SPAMBUGNUMSUBJ autolearn=no > version=2.60-bugs.debian.org_2004_01_13 > X-Spam-Level: * > reopen 155870 > reassign 155870 emacs21 > thanks > This bug still exists in emacs21 on sarge. You can reproduce it by > typing the line (when in perl mode) > if (/(xx$)/) { > and noting the inner paren is matched rather than the outer when the > second close paren is typed. > This is extremly irritating when emacs gets confused about how > something should be indented and repeadtedly undoes my correct > indentation. > -- > Blars Blarson blarson@blars.org > http://www.blars.org/blars.html > With Microsoft, failure is not an option. It is a standard feature. >> From blarson@blars.org Wed Jan 14 15:02:39 2004 > Received: (at control) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000 > Return-path: > Received: from bleep.blars.org (renig.nat.blars.org) [64.81.35.60] > by master.debian.org with esmtp (Exim 3.35 1 (Debian)) > id 1Ags9u-0005yf-00; Wed, 14 Jan 2004 15:02:38 -0600 > Received: from renig.nat.blars.org (plergb.nat.blars.org [172.16.1.1]) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i0EL2bkO011218; > Wed, 14 Jan 2004 13:02:37 -0800 > Received: (from blarson@localhost) > by renig.nat.blars.org (8.12.3/8.12.3/Debian-6.6) id i0EL2bAJ011216; > Wed, 14 Jan 2004 13:02:37 -0800 > Date: Wed, 14 Jan 2004 13:02:37 -0800 > From: Blars Blarson > To: 155870@bugs.debian.org > Cc: control@bugs.debian.org > Subject: 155870 also present in emacs21 > Message-ID: <20040114210237.GA9983@blars.org> > Mime-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > User-Agent: Mutt/1.3.28i > Delivered-To: control@bugs.debian.org > X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_13 > (1.212-2003-09-23-exp) on master.debian.org > X-Spam-Status: No, hits=1.0 required=4.0 tests=SPAMBUGNUMSUBJ autolearn=no > version=2.60-bugs.debian.org_2004_01_13 > X-Spam-Level: * > reopen 155870 > reassign 155870 emacs21 > thanks > This bug still exists in emacs21 on sarge. You can reproduce it by > typing the line (when in perl mode) > if (/(xx$)/) { > and noting the inner paren is matched rather than the outer when the > second close paren is typed. > This is extremly irritating when emacs gets confused about how > something should be indented and repeadtedly undoes my correct > indentation. > -- > Blars Blarson blarson@blars.org > http://www.blars.org/blars.html > With Microsoft, failure is not an option. It is a standard feature. > ---------- > -- > J?r?me Marant