From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?q?J=E9r=F4me_Marant?= Newsgroups: gmane.emacs.bugs Subject: (perl-mode) perl-mode misparses /(xx$)/ Date: Mon, 07 Mar 2005 22:35:26 +0100 Message-ID: <87mztfw34x.fsf@marant.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1110240577 2187 80.91.229.2 (8 Mar 2005 00:09:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2005 00:09:37 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 08 01:09:37 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8SHk-0006XJ-6h for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Mar 2005 01:09:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8Sbb-0007oF-M0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Mar 2005 19:29:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8SbB-0007hA-BZ for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 19:29:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8Sb9-0007gC-Rl for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 19:29:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8Sb9-0007g6-Nw for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 19:29:19 -0500 Original-Received: from [213.228.0.176] (helo=postfix4-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D8SMB-0007a5-Rm for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 19:13:52 -0500 Original-Received: from amboise (unknown [82.227.97.206]) by postfix4-2.free.fr (Postfix) with ESMTP id 164E82D8BD7 for ; Mon, 7 Mar 2005 22:36:07 +0100 (CET) Original-Received: by amboise (Postfix, from userid 1000) id 5405B2C03E; Mon, 7 Mar 2005 22:35:27 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (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:10880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10880 ---------- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D155870 >>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]=20 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 g7859kQ100= 4131; 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"=20 "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 .=3D $_ . "\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=3DC, LC_CTYPE=3DC 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 emac= sen. ii libc6 2.2.5-10 GNU C Library: Shared librarie= s an ii liblockfile1 1.03 NFS-safe locking library, incl= udes 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 librari= es >>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]=20 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=3Ddjpig.djp= ig.de) by mail.sorgfalt.net with asmtp=20 (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=3Dus-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=20 (1.212-2003-09-23-exp) on master.debian.org X-Spam-Status: No, hits=3D0.0 required=3D4.0 tests=3Dnone autolearn=3Dno=20 version=3D2.60-bugs.debian.org_2004_01_13 X-Spam-Level:=20 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=20 reproduce with emacs21 from unstable and reassign the others. Gruesse, --=20 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]=20 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 i0EL2bkO01= 1218; 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=3Dus-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=20 (1.212-2003-09-23-exp) on master.debian.org X-Spam-Status: No, hits=3D1.0 required=3D4.0 tests=3DSPAMBUGNUMSUBJ autolea= rn=3Dno=20 version=3D2.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. --=20 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]=20 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 i0EL2bkO01= 1218; 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=3Dus-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=20 (1.212-2003-09-23-exp) on master.debian.org X-Spam-Status: No, hits=3D1.0 required=3D4.0 tests=3DSPAMBUGNUMSUBJ autolea= rn=3Dno=20 version=3D2.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. --=20 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]=20 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 i0EL2bkO01= 1218; 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=3Dus-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=20 (1.212-2003-09-23-exp) on master.debian.org X-Spam-Status: No, hits=3D1.0 required=3D4.0 tests=3DSPAMBUGNUMSUBJ autolea= rn=3Dno=20 version=3D2.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. --=20 Blars Blarson blarson@blars.org http://www.blars.org/blars.html With Microsoft, failure is not an option. It is a standard feature. ---------- --=20 J=E9r=F4me Marant