GNU bug report logs - #45083
perl mode: $x{last}, $x{'last'}, $x{first} should look the same, and different from just last

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 6 Dec 2020 22:02:02 UTC

Severity: minor

To reply to this bug, email your comments to 45083 AT debbugs.gnu.org.

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#45083; Package emacs. (Sun, 06 Dec 2020 22:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Dec 2020 22:02:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: perl mode: $x{last}, $x{'last'}, $x{first}  should look the same,
 and different from just last
Date: Sun, 06 Dec 2020 19:31:25 +0800
$ emacs file.pl
Shouldn't perl mode know that "last" is not special here,

        $strings{this} = $_->toString;
        $strings{skip} = $strings{this} eq $strings{last};
        $strings{last} = $strings{this};

and thus not color it differently?

> Well then quote it.

OK,

        $strings{"last"} = $strings{this};

But now it looks even more different.

Therefore perl mode should know that
$x{last}, $x{'last'} etc. should look the same, and different from just last.

emacs-version "27.1"




This bug report was last modified 3 years and 149 days ago.

Previous Next


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