bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (perl-mode) perl-mode misparses /(xx$)/


From: Stefan Monnier
Subject: Re: (perl-mode) perl-mode misparses /(xx$)/
Date: Sun, 20 Mar 2005 13:10:14 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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 address@hidden Thu Aug 08 00:09:54 2002
> Received: (at submit) by bugs.debian.org; 8 Aug 2002 05:09:55 +0000
> Return-path: <address@hidden>
> 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 address@hidden)
>       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: <address@hidden>
> From: Blars Blarson <address@hidden>
> To: Debian Bug Tracking System <address@hidden>
> Subject: emacs20: perl-mode misparses /(xx$)/
> X-Mailer: reportbug 1.50
> Date: Wed, 07 Aug 2002 22:09:46 -0700
> Delivered-To: address@hidden

> 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\ address@hidden|
>                  \%\ (?: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 address@hidden Wed Jan 14 10:23:08 2004
> Received: (at 155870-done) by bugs.debian.org; 14 Jan 2004 16:23:08 +0000
> Return-path: <address@hidden>
> 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: address@hidden, address@hidden,
>       address@hidden, address@hidden,
>       address@hidden, address@hidden,
>       address@hidden, address@hidden
> Subject: Checking old emacs20 bugs
> Message-ID: <address@hidden>
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.3.28i
> From: Frank Lichtenheld <address@hidden>
> Delivered-To: address@hidden
> 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 <address@hidden>
> www: http://www.djpig.de/



>> From address@hidden Wed Jan 14 15:02:39 2004
> Received: (at 155870) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000
> Return-path: <address@hidden>
> 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 address@hidden)
>       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 <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Subject: 155870 also present in emacs21
> Message-ID: <address@hidden>
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.3.28i
> Delivered-To: address@hidden
> 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                 address@hidden
>                               http://www.blars.org/blars.html
> With Microsoft, failure is not an option.  It is a standard feature.



>> From address@hidden Wed Jan 14 15:02:39 2004
> Received: (at control) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000
> Return-path: <address@hidden>
> 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 address@hidden)
>       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 <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Subject: 155870 also present in emacs21
> Message-ID: <address@hidden>
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.3.28i
> Delivered-To: address@hidden
> 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                 address@hidden
>                               http://www.blars.org/blars.html
> With Microsoft, failure is not an option.  It is a standard feature.



>> From address@hidden Wed Jan 14 15:02:39 2004
> Received: (at control) by bugs.debian.org; 14 Jan 2004 21:02:39 +0000
> Return-path: <address@hidden>
> 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 address@hidden)
>       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 <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Subject: 155870 also present in emacs21
> Message-ID: <address@hidden>
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.3.28i
> Delivered-To: address@hidden
> 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                 address@hidden
>                               http://www.blars.org/blars.html
> With Microsoft, failure is not an option.  It is a standard feature.

> ----------

> -- 
> J?r?me Marant






reply via email to

[Prev in Thread] Current Thread [Next in Thread]