all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: (perl-mode) perl-mode misparses /(xx$)/
Date: Sun, 20 Mar 2005 13:10:14 -0500	[thread overview]
Message-ID: <87y8ciw5o4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <mailman.2946.1110241764.32256.bug-gnu-emacs@gnu.org> ( J?r?me Marant's message of "Mon, 07 Mar 2005 22:35:26 +0100")

> 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: <blarson@blars.org>
> 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 <blarson@blars.org>
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> 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: <frank@lichtenheld.de>
> 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 <frank@lichtenheld.de>
> 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 <frank@lichtenheld.de>
> 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: <blarson@blars.org>
> 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 <blarson@blars.org>
> 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: <blarson@blars.org>
> 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 <blarson@blars.org>
> 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: <blarson@blars.org>
> 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 <blarson@blars.org>
> 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

       reply	other threads:[~2005-03-20 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2946.1110241764.32256.bug-gnu-emacs@gnu.org>
2005-03-20 18:10 ` Stefan Monnier [this message]
2005-03-20 20:05   ` (perl-mode) perl-mode misparses /(xx$)/ Jérôme Marant
2005-03-07 21:35 Jérôme Marant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y8ciw5o4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.