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: Mihir Rege <mihirrege <at> gmail.com>
To: 15956 <at> debbugs.gnu.org
Subject: bug#15956: 24.3.50; js.el: Indentation for control statements
Date: Sat, 23 Nov 2013 03:44:39 +0530
[Message part 1 (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 2 (text/html, inline)]
[0001-Fix-indentation-for-control-statements.patch (text/x-patch, attachment)]

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

Previous Next


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