emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15582: closed (js-mode indent bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15582: closed (js-mode indent bug)
Date: Sat, 14 Jan 2017 17:47:02 +0000

Your message dated Sat, 14 Jan 2017 10:45:44 -0700
with message-id <address@hidden>
and subject line done
has caused the debbugs.gnu.org bug report #15582,
regarding js-mode indent bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15582: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15582
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: js-mode indent bug Date: Thu, 10 Oct 2013 14:06:48 +0200
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

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: done Date: Sat, 14 Jan 2017 10:45:44 -0700
This was fixed by b47f97218efb8d9966e084bdfd8a86e8c47cf81d.

Tom


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]