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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15956 in the body.
You can then email your comments to 15956 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15956; Package emacs. (Fri, 22 Nov 2013 22:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mihir Rege <mihirrege <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Nov 2013 22:20:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 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)]

Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 24 Nov 2013 22:04:02 GMT) Full text and rfc822 format available.

Notification sent to Mihir Rege <mihirrege <at> gmail.com>:
bug acknowledged by developer. (Sun, 24 Nov 2013 22:04:03 GMT) Full text and rfc822 format available.

Message #10 received at 15956-done <at> debbugs.gnu.org (full text, mbox):

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!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 Dec 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 134 days ago.

Previous Next


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