GNU bug report logs - #15956
24.3.50; js.el: Indentation for control statements

Previous Next

Package: emacs;

Reported by: Mihir Rege <mihirrege <at> gmail.com>

Date: Fri, 22 Nov 2013 22:20:01 UTC

Severity: normal

Tags: patch

Found in version 24.3.50

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

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: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15956: closed (24.3.50; js.el: Indentation for control
 statements)
Date: Sun, 24 Nov 2013 22:04:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 25 Nov 2013 00:03:07 +0200
with message-id <87siulqwys.fsf <at> yandex.ru>
and subject line Re: bug#15956: 24.3.50; js.el: Indentation for control statements
has caused the debbugs.gnu.org bug report #15956,
regarding 24.3.50; js.el: Indentation for control statements
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
15956: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15956
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mihir Rege <mihirrege <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; js.el: Indentation for control statements
Date: Sat, 23 Nov 2013 03:44:39 +0530
[Message part 3 (text/plain, inline)]
Hi,

If a control statement is the first statement in the source but is not on
the first line, the indentation keeps on increasing with each call.

For example:

---------------------------
//comment
if ( cond )
---------------------------

will indent to

---------------------------
//comment
        if (cond)
---------------------------

I have enclosed a patch that fixes the problem.


-- 
Mihir Rege
[Message part 4 (text/html, inline)]
[0001-Fix-indentation-for-control-statements.patch (text/x-patch, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Mihir Rege <mihirrege <at> gmail.com>
Cc: 15956-done <at> debbugs.gnu.org
Subject: Re: bug#15956: 24.3.50; js.el: Indentation for control statements
Date: Mon, 25 Nov 2013 00:03:07 +0200
Version: 24.4

Applied, thanks!


This bug report was last modified 11 years and 231 days ago.

Previous Next


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