GNU bug report logs - #15582
js-mode indent bug

Previous Next

Package: emacs;

Reported by: Jakub Jankiewicz <jcubic <at> onet.pl>

Date: Thu, 10 Oct 2013 12:39:01 UTC

Severity: minor

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jakub Jankiewicz <jcubic <at> onet.pl>
Subject: bug#15582: closed (done)
Date: Sat, 14 Jan 2017 17:47:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#15582: js-mode indent bug

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 15582 <at> debbugs.gnu.org.

-- 
15582: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15582
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tom Tromey <tom <at> tromey.com>
To: 15582-done <at> debbugs.gnu.org
Subject: done
Date: Sat, 14 Jan 2017 10:45:44 -0700
This was fixed by b47f97218efb8d9966e084bdfd8a86e8c47cf81d.

Tom

[Message part 3 (message/rfc822, inline)]
From: Jakub Jankiewicz <jcubic <at> onet.pl>
To: bug-gnu-emacs <at> gnu.org
Subject: js-mode indent bug
Date: Thu, 10 Oct 2013 14:06:48 +0200
[Message part 4 (text/plain, inline)]
Hi,

I found this bug in js-mode indent:

when you have multiline if statement with comment at the end, next line
indent is doubled.

If I have js-indent-level equal 8 the code look like this:

            if (x > left && x < left + image.width &&
                y > top && y < top + image.height) {
                    do_somethig();
            }

but when I put comment after if it look like this:

            if (x > left && x < left + image.width &&
                y > top && y < top + image.height) {  // found
                            do_somethig();


when js-indent-level is 2 it have 4 spaces. The same is with while

          while (10 &&
                 20) { // asd
              xx();

four spaces instead of two

version: GNU Emacs 24.2.1


--
Jakub Jankiewicz, Web Developer
http://jcubic.pl
[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 8 years and 179 days ago.

Previous Next


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