GNU bug report logs - #29798
24.3; Javascript: Too much indentation with + and -

Previous Next

Package: emacs;

Reported by: Gavin Haynes <haynes.gt <at> gmail.com>

Date: Thu, 21 Dec 2017 07:58:02 UTC

Severity: wishlist

Tags: confirmed

Found in versions 28.0.50, 24.3

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Gavin Haynes <haynes.gt <at> gmail.com>
Cc: 29798 <at> debbugs.gnu.org
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
Date: Mon, 10 Aug 2020 08:31:59 -0700
found 29798 28.0.50
thanks

Gavin Haynes <haynes.gt <at> gmail.com> writes:

> Write the following in a .js file: { -2, 2, +2 } Then, put your cursor
> over each line and press tab to indent it. The lines having -2 and +2
> get twice as much indentation as expected. The line having just 2 has
> the correct indentation.

I can reproduce this on current master.  I see the following
indentation:

{
-2,
    2,
 +2
}

Best regards,
Stefan Kangas




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

Previous Next


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