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: Mihir Rege <mihirrege <at> gmail.com>
Subject: bug#15956: closed (Re: bug#15956: 24.3.50; js.el: Indentation for
 control statements)
Date: Sun, 24 Nov 2013 22:04:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#15956: 24.3.50; js.el: Indentation for control statements

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 15956 <at> debbugs.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: 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!

[Message part 3 (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 4 (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 5 (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.