GNU bug report logs - #11996
Perl mode indentation does not know about the \() construct

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 19 Jul 2012 23:49:02 UTC

Severity: minor

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11996 in the body.
You can then email your comments to 11996 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11996; Package emacs. (Thu, 19 Jul 2012 23:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 19 Jul 2012 23:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: Perl mode indentation does not know about the \() construct
Date: Fri, 20 Jul 2012 07:08:49 +0800
Perl mode indentation does not know about the \() construct.
[Perl mode defined in `perl-mode.el']
It even reports
forward-sexp: Scan error: "Unbalanced parentheses", 158, 1

{
    my @zzzz=(\%seen_couchrequsts, \%seen_people );
    my @zzzz=\(%seen_couchrequsts, %seen_people );
my @zzzz=(\%seen_couchrequsts, \%seen_people );
}




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11996; Package emacs. (Tue, 20 Sep 2022 14:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 11996 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 11996 <at> debbugs.gnu.org
Cc: jidanni <at> jidanni.org
Subject: Re: bug#11996: Perl mode indentation does not know about the \()
 construct
Date: Tue, 20 Sep 2022 11:20:42 -0300
[Message part 1 (text/plain, inline)]
tags 11996 patch
quit

jidanni <at> jidanni.org writes:


> Perl mode indentation does not know about the \() construct.
> [Perl mode defined in `perl-mode.el']
> It even reports
> forward-sexp: Scan error: "Unbalanced parentheses", 158, 1
>
> {
>     my @zzzz=(\%seen_couchrequsts, \%seen_people );
>     my @zzzz=\(%seen_couchrequsts, %seen_people );
> my @zzzz=(\%seen_couchrequsts, \%seen_people );
> }

I can reproduce this on current master.  It seems to me that this can be
fixed by modifying the syntax of the backslash character when it is used
as the "backslash operator" and not as an escape character.
[0001-Recognize-the-backslash-operator-in-perl-mode.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Mauro Aranda <maurooaranda <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 20 Sep 2022 14:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11996; Package emacs. (Tue, 20 Sep 2022 19:10:02 GMT) Full text and rfc822 format available.

Message #13 received at 11996 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 11996 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#11996: Perl mode indentation does not know about the \()
 construct
Date: Tue, 20 Sep 2022 21:08:43 +0200
Mauro Aranda <maurooaranda <at> gmail.com> writes:

> I can reproduce this on current master.  It seems to me that this can be
> fixed by modifying the syntax of the backslash character when it is used
> as the "backslash operator" and not as an escape character.

Thanks; pushed to Emacs 29.




bug marked as fixed in version 29.1, send any further explanations to 11996 <at> debbugs.gnu.org and jidanni <at> jidanni.org Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 20 Sep 2022 19:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Oct 2022 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.