GNU bug report logs - #29798
24.3; Javascript: Too much indentation with + and -

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gavin Haynes <haynes.gt@HIDDEN>; Keywords: confirmed; dated Thu, 21 Dec 2017 07:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 3 Feb 2022 19:36:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 03 14:36:57 2022
Received: from localhost ([127.0.0.1]:57876 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nFhub-00068G-FV
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2022 14:36:57 -0500
Received: from quimby.gnus.org ([95.216.78.240]:54192)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nFhuZ-000681-BO
 for 29798 <at> debbugs.gnu.org; Thu, 03 Feb 2022 14:36:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=9MFfsabtJ+xsAiQS+pSOdhK6fIsCZm6ymLL2F8RTOh4=; b=fpuf/6BdRhDjStta70JCkoLCKR
 nGq2XVSOaRQ3YnBya4uTeywhIQPw/MDsf9x1DVhAB6ojB8ijiPHy+FQf2sZ4Sl9pc1O/c0OKnHJRd
 QDA5JGyLCu1u8Uyxnk59qEcNW9EevyyQSrkA6o2cZJ2dAqWw+kOpKsCdTAJXZHYQU3L0=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nFhuQ-0003la-Iv; Thu, 03 Feb 2022 20:36:49 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
X-Now-Playing: Richard And Linda Thompson's _Pour Down Like Silver_: "Night
 Comes In"
Date: Thu, 03 Feb 2022 20:36:45 +0100
In-Reply-To: <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
 (Stefan Kangas's message of "Mon, 10 Aug 2020 08:31:59 -0700")
Message-ID: <87mtj7n3n6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefan@HIDDEN> writes: > I can reproduce
 this on current master. I see the following > indentation: > > { > -2, >
 2, > +2 > } This nonsensical form has changed indentation in Emacs 29,
 apparently:
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org, Gavin Haynes <haynes.gt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> writes:

> I can reproduce this on current master.  I see the following
> indentation:
>
> {
> -2,
>     2,
>  +2
> }

This nonsensical form has changed indentation in Emacs 29, apparently:

{
    -2,
  2,
  +2
}



-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.
Severity set to 'wishlist' from 'minor' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 10 Aug 2020 17:23:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 13:23:04 2020
Received: from localhost ([127.0.0.1]:37447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k5BVn-0001HB-R8
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 13:23:04 -0400
Received: from mail-yb1-f179.google.com ([209.85.219.179]:44485)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k5BVm-0001GT-7C
 for 29798 <at> debbugs.gnu.org; Mon, 10 Aug 2020 13:23:02 -0400
Received: by mail-yb1-f179.google.com with SMTP id i10so5162685ybt.11
 for <29798 <at> debbugs.gnu.org>; Mon, 10 Aug 2020 10:23:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=7CgMfr4QTB3iNqk3WJwZ16QUScEjzVGS53dpgMlD8QY=;
 b=b4TpmrDgfrLR659N87Os1sWFbXP+UkWuiuFm6DxMHAJV2RgtvWnPACtxkVKUgPGcAn
 b0m1K3ArgQDs6o5t5twIB1DKmdRGqE2UdyFJXpyNYKpqXpUhFTB0zR1pwWGweTh+/Y5y
 HjRGUxsh5/R+71lT7laX4tvKm24pVBg0fILET/PX2u5/i5sleFfJuJzDIwIuOx3ouOSJ
 QQnrNTlRnyT9PrbYzMFUFPyvooDr+al0bcIQJ0/lnh8Wx+fkCSlBO33SNekDHZKFMU85
 9aEhj5piV2MnOzUj3Aw4a+b5sxQYOmcOQTnzZrBl3L2347qwZIaffxoAO2huKaCIRJbS
 p6vw==
X-Gm-Message-State: AOAM533x3v7QAxBr9T88FFbo0zTbivVLWyZR0O4MgBdnj8/xOxVy/qpw
 lC+YqyJXuWoSzIOhIwFNqO5YjjK9Qex7XxZg8wM=
X-Google-Smtp-Source: ABdhPJxfYqhwcfpiu1v8R5noGFvBm+U1XNYQlZ6Wu62Nee0XMGQWkKS0XNQuPDA0I3VX+GOxyREY3fhnmzlobdGtPMQ=
X-Received: by 2002:a5b:410:: with SMTP id m16mr40917716ybp.309.1597080176796; 
 Mon, 10 Aug 2020 10:22:56 -0700 (PDT)
MIME-Version: 1.0
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
 <c02df8b9-b63e-e90d-f12c-5c1bebec410e@HIDDEN>
 <CADwFkmm5FdqUZzxc-mrnm5sZi73aPDYO-CrHmZER1UHjvs0cmQ@HIDDEN>
 <ecc95de6-bb84-d2c1-6df6-ada710e6780e@HIDDEN>
In-Reply-To: <ecc95de6-bb84-d2c1-6df6-ada710e6780e@HIDDEN>
From: Stefan Kangas <stefan@HIDDEN>
Date: Mon, 10 Aug 2020 19:22:46 +0200
Message-ID: <CADwFkmmv85Vkv=3q5OXtUVv6KfDtV5hygqsLDRT1TEsR4ZGyJQ@HIDDEN>
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Dmitry Gutov <dgutov@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org, Gavin Haynes <haynes.gt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 29798 wishlist
thanks

Dmitry Gutov <dgutov@HIDDEN> writes:

> We generally prioritize supporting code that is likely to actually be
> written by somebody, so IMHO there is no significant bug here.
>
> But if someone would like to propose a patch, we will surely review it.

Agreed.  So I'm changing the severity to wishlist.  But please feel
free to close it if you think that's better.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 10 Aug 2020 17:17:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 13:17:27 2020
Received: from localhost ([127.0.0.1]:37438 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k5BQM-00010Z-QP
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 13:17:27 -0400
Received: from mail-wr1-f48.google.com ([209.85.221.48]:41292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1k5BQL-0000uE-3o
 for 29798 <at> debbugs.gnu.org; Mon, 10 Aug 2020 13:17:25 -0400
Received: by mail-wr1-f48.google.com with SMTP id r2so8910542wrs.8
 for <29798 <at> debbugs.gnu.org>; Mon, 10 Aug 2020 10:17:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=xAjkSvDMvWzwukar2sL8e8HmVy41K/tCfmFOYcNUCfg=;
 b=WRdKAr1qKLxOgLL3G/lmKKnoZkVsTk29/Q6ORIvA3irUgBGmr1Xc5Uhy6K/ah7Wjid
 szijRQlSVHT7sU7LDrhJ8KXTkIg2owwV94xol1ulzyFuyFiMqkFmpdKYL+pV5TcmpU89
 LZlhUr9wn50mVfpZAlTahCVsK2D9y1jBm/kljWixo/Lv+tPhy8nr0OPLDCPgPJXpliyT
 BFWxeu4zWe4OgqDr1budFgrkOVfiB3hZyREZrdmCkxDF1U+uVyDoh+rQjKAqsRyQH54A
 m+tAD7c7sVeZc6LQzyYcHpmgzLmKwf8AZtz/5QHiVajwwLmfGrpGnf0E4qF4rB7L9+ZP
 pkbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=xAjkSvDMvWzwukar2sL8e8HmVy41K/tCfmFOYcNUCfg=;
 b=Hjg17RGcAZsYzxBWEC8k3eA4wVDmev2QS6h43niw0Fg+s4+veE9qarxvAOqyilm5lL
 sEe4a9KpSxXOq5/Hz0bEBhYeacjInEfJRcEtMBUaql7LWUbQ9zMO72qW33Yn9uApWvel
 EIacO4v9wOqQR6Q6d5FWlMQMG8ZK6jlpYFUJoyzPedQwHIF6DF6U3vI/obS5pmSnBEx5
 17pxc3whNX7+VpEVIX9Cg7qyGZ2epRVDc3mmYTTSQPPeXxpQRhppAf63Rz19Gs7JAoHb
 wf12Z0HUz0pZoH4GqaMgbfqBoGlvM3VyzxYhPmlTLELXQbZaAkeI9RxGxhTFNmueZqVg
 64MA==
X-Gm-Message-State: AOAM533d1HPGW2xsPBwNg5mxSlYmqPvaqljEOK4Ooy56xQVcMgkqitjX
 Nph4qJW1YSe/Q6/EjlBcvUc=
X-Google-Smtp-Source: ABdhPJwbQQqSWHStvqOc/+Tp6a78aL/hakcKWWmH9l3V1DN2H2moFyjM1gWW+AmLcAzuPd+VDqYOHg==
X-Received: by 2002:adf:a45d:: with SMTP id e29mr25783066wra.107.1597079839103; 
 Mon, 10 Aug 2020 10:17:19 -0700 (PDT)
Received: from [192.168.0.3] ([66.205.73.129])
 by smtp.googlemail.com with ESMTPSA id x6sm294062wmx.28.2020.08.10.10.17.17
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 10 Aug 2020 10:17:18 -0700 (PDT)
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Stefan Kangas <stefan@HIDDEN>
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
 <c02df8b9-b63e-e90d-f12c-5c1bebec410e@HIDDEN>
 <CADwFkmm5FdqUZzxc-mrnm5sZi73aPDYO-CrHmZER1UHjvs0cmQ@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <ecc95de6-bb84-d2c1-6df6-ada710e6780e@HIDDEN>
Date: Mon, 10 Aug 2020 20:17:16 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <CADwFkmm5FdqUZzxc-mrnm5sZi73aPDYO-CrHmZER1UHjvs0cmQ@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org, Gavin Haynes <haynes.gt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10.08.2020 18:53, Stefan Kangas wrote:
> In the Firefox web console, I get
> 
> { -2, 2, +2 }  =>  2

Yeah, it seems like it's interpreted like a comma-separated list of 
statements in a block.

> So I guess it's valid, if a bit nonsensical? I must admit that my
> knowledge of JavaScript is terrible though.

We generally prioritize supporting code that is likely to actually be 
written by somebody, so IMHO there is no significant bug here.

But if someone would like to propose a patch, we will surely review it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 10 Aug 2020 15:54:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 11:54:03 2020
Received: from localhost ([127.0.0.1]:37297 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k5A7e-0000Ut-Ux
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:54:03 -0400
Received: from mail-yb1-f177.google.com ([209.85.219.177]:40191)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k5A7c-0000UG-8u
 for 29798 <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:54:01 -0400
Received: by mail-yb1-f177.google.com with SMTP id q3so5398843ybp.7
 for <29798 <at> debbugs.gnu.org>; Mon, 10 Aug 2020 08:54:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=1gLcW/32K40YqYwx7sTL7uJyIAhA7Cj0BU568AqoK2A=;
 b=iE/wPwuXz6tr2pn+BvwI30qwRoiy07975v+ZiFKb/impDJbrvGZHC1JgmAdupD/zft
 ZDTem15GGIJfD2JwFcmLsYe9Pe9lkhb+XOMvYFSPb/0ZHaC5CW++rKRKVfDdBQm6WWOi
 Of7K/fSgVBxM5rJ4PdHVtQLqkzlEZoZBY9xoIINj7GRgi32y2y3yGbu4l/848iZVRPpD
 EW/hESztMTwf1vdi8HqhgBwhtGh/wf0TZD6jxKyCphl38PdnBowv+L2fVSjM+CJv7p5g
 s15gSLylJ4K7n3LDriyMyNwdRI8OLumuYvuochGNTK1+x5iA3UiBmFEYA/wFwVd5Txxy
 3/og==
X-Gm-Message-State: AOAM5338sF8aAgGEwHGru8fWg7irnRfQ5TykNxndmwBBgniu6mtomclb
 Tc6NAeDElElGe8FADrIhEVN4CVHbXsptBtleYh4=
X-Google-Smtp-Source: ABdhPJzFxzLfsqHOOH62isaFjdSHAHux2wNk3/FlOj+Okv0XR5gQORspKOat4hCeJOpymDaNvAQZqro0o+zk2hbN1P8=
X-Received: by 2002:a25:7007:: with SMTP id l7mr38432282ybc.85.1597074834586; 
 Mon, 10 Aug 2020 08:53:54 -0700 (PDT)
MIME-Version: 1.0
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
 <c02df8b9-b63e-e90d-f12c-5c1bebec410e@HIDDEN>
In-Reply-To: <c02df8b9-b63e-e90d-f12c-5c1bebec410e@HIDDEN>
From: Stefan Kangas <stefan@HIDDEN>
Date: Mon, 10 Aug 2020 17:53:43 +0200
Message-ID: <CADwFkmm5FdqUZzxc-mrnm5sZi73aPDYO-CrHmZER1UHjvs0cmQ@HIDDEN>
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Dmitry Gutov <dgutov@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org, Gavin Haynes <haynes.gt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dgutov@HIDDEN> writes:

> > I can reproduce this on current master.  I see the following
> > indentation:
> >
> > {
> > -2,
> >      2,
> >   +2
> > }
>
> I don't think that's valid JavaScript either.

In the Firefox web console, I get

{ -2, 2, +2 }  =>  2

So I guess it's valid, if a bit nonsensical? I must admit that my
knowledge of JavaScript is terrible though.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 10 Aug 2020 15:36:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 11:36:17 2020
Received: from localhost ([127.0.0.1]:37261 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k59qT-0006Fv-IG
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:36:17 -0400
Received: from mail-ed1-f42.google.com ([209.85.208.42]:40941)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1k59qS-0006Fg-Ha
 for 29798 <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:36:16 -0400
Received: by mail-ed1-f42.google.com with SMTP id a14so6714154edx.7
 for <29798 <at> debbugs.gnu.org>; Mon, 10 Aug 2020 08:36:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=ZyrGBZEBP5KOD/km39r1leHKIKPWtRGpyDWys+uBwo8=;
 b=QI9WE6kcKJl9WqQPHHnSAyTEa2Q/TnYSKtUfZxw3hBn6uDK91FOia0RZA8ygkv3vIO
 tATMSH23d2g35npGSpHQZu5Xbc3EwIagq48FjJYtBqa6JB4v5d0p3iJY/61G6Jk/YBRh
 d8oOWlAHTgLO1LetGP1e5o08V93J4bgFrsA+NkZIM0GemwQ8xaKVIo0naPWJ+5RwrKiq
 qo7AeBTW/GcFExr3cHTvx0+D9Sjsg7g0IdWz+b3OaHXu/s6W+2WLUnnJE6hbOBVrPmN/
 kT8wc5xgdCkCdjT+X2wEgcjeJf2pzLYu0YajZlxrV7uUr6/XXaV7C+Zrz9fLo7h2RpNB
 YZuw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=ZyrGBZEBP5KOD/km39r1leHKIKPWtRGpyDWys+uBwo8=;
 b=hC3HxF8YKGCt36XyIDOojtIMvXKlppYL6BeXFgu7mbnk8eXylzzQiSv+qlPtOwzynu
 3ERX9W86VxFTR9WRW4pSey/GMsSEfcEsdyZYOaRaZcCTfNjq7LmcXaliaki7ZwaezmnR
 6EOSWZfq2v4292AJurlDNtg8ivCMk9szyaKaPBMITQNdWx7iwZ5Jw2QPG4uRt0g717A2
 l0YMD/u3EKwAC4UUr2wkG76aQPbDaAeTtnHUnstq3xlPlof6oK+jpnNFyCcO+OOhVqKn
 e14nli/cRB/txk4PekI7o8jJzPAqqWEHcJNhv7CMqNKaOZjqNem9aMVBRTMrbTt3zPce
 vZ0A==
X-Gm-Message-State: AOAM533y2PUiNT4xef51k120JwuTQEwn4Mc08x6KMZuAFN38NoaPfHhd
 p++mRtKX5UNdnVWl4CNoH4MdwTXg
X-Google-Smtp-Source: ABdhPJxvN+clP3WiLdrPNYaiuVLJZt8P5so/NmVZ7TAFv0zl/gKKFFP2vUQgqMqB4kLsmWG1mg7Wew==
X-Received: by 2002:a50:d697:: with SMTP id r23mr21377784edi.223.1597073770529; 
 Mon, 10 Aug 2020 08:36:10 -0700 (PDT)
Received: from [192.168.0.3] ([66.205.73.129])
 by smtp.googlemail.com with ESMTPSA id o25sm8613103ejm.34.2020.08.10.08.36.08
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 10 Aug 2020 08:36:09 -0700 (PDT)
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Stefan Kangas <stefan@HIDDEN>, Gavin Haynes <haynes.gt@HIDDEN>
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <c02df8b9-b63e-e90d-f12c-5c1bebec410e@HIDDEN>
Date: Mon, 10 Aug 2020 18:36:08 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10.08.2020 18:31, Stefan Kangas wrote:
> I can reproduce this on current master.  I see the following
> indentation:
> 
> {
> -2,
>      2,
>   +2
> }

I don't think that's valid JavaScript either.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.
bug Marked as found in versions 28.0.50. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 10 Aug 2020 15:32:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 11:32:11 2020
Received: from localhost ([127.0.0.1]:37250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k59mU-00068l-Pm
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:32:11 -0400
Received: from mail-yb1-f193.google.com ([209.85.219.193]:33956)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k59mP-00067i-JR
 for 29798 <at> debbugs.gnu.org; Mon, 10 Aug 2020 11:32:06 -0400
Received: by mail-yb1-f193.google.com with SMTP id c9so3836143ybq.1
 for <29798 <at> debbugs.gnu.org>; Mon, 10 Aug 2020 08:32:05 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:in-reply-to:references:user-agent
 :mime-version:date:message-id:subject:to:cc;
 bh=tJge4RNFmUTE1NAnX20zASZB0cG7V3UtM5rrVTXacB8=;
 b=SwyN+LaYZdz3A4ErtEyPs+uQDp7JS/H3zbr/oHxhDh2Z3B4D4yBQui8RkyHbVR9Bvv
 V534xfEBsrUAVXoVgzPMtwmAzqJ0mIjavIIEQDab7YF6nYOokJhQom0ldQMfIr/3CHHO
 3ae/6y1bTFip7Hqe+U4yPMVxEE1gWvsbcfAV/2im/3EmmAHZkDZ7btDlkovJ4VWS0bki
 JexaDYFmxSE7S08oKCe49/ydbjeUEea0iX+V2zwZbXygmpcqvASPp/yoo6VQwa7XGWhR
 7j1ZC6r+bLBxgosX42PBaC0vuVMFP856iiy9i73PAYbcqoIaEPbjo41om9IZPlugHY6s
 7Tog==
X-Gm-Message-State: AOAM531Ctl5qkC3NayRSCshDAIZvX0/92qgWyvKIZpC20aTk8R7+slC4
 Yn77DLjIVc4/lTklbFCvQkejLP+wK7peum07+9TbOCMF
X-Google-Smtp-Source: ABdhPJw2ZZFcx1H/MjNWH+/9fbp/SrKoEFoMZ/MwODalL6kSATb3m2qB7aAGzr/jDB7v8JEnXju6kmFk4fcYfUDTgPQ=
X-Received: by 2002:a25:9843:: with SMTP id k3mr40981918ybo.466.1597073520142; 
 Mon, 10 Aug 2020 08:32:00 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Mon, 10 Aug 2020 08:31:59 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 (Gavin Haynes's message of "Wed, 20 Dec 2017 23:53:37 -0800")
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Mon, 10 Aug 2020 08:31:59 -0700
Message-ID: <CADwFkmkmwLD8Vn3WtDLm5LrE_GVurN4ZNYySNDFVEJAeWSt-sA@HIDDEN>
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Gavin Haynes <haynes.gt@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

found 29798 28.0.50
thanks

Gavin Haynes <haynes.gt@HIDDEN> writes:

> Write the following in a .js file: { -2, 2, +2 } Then, put your cursor
> over each line and press tab to indent it. The lines having -2 and +2
> get twice as much indentation as expected. The line having just 2 has
> the correct indentation.

I can reproduce this on current master.  I see the following
indentation:

{
-2,
    2,
 +2
}

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 21 Dec 2017 11:04:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 21 06:04:38 2017
Received: from localhost ([127.0.0.1]:45337 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRyeT-0008QJ-SR
	for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 06:04:38 -0500
Received: from mail-lf0-f50.google.com ([209.85.215.50]:39540)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1eRyeS-0008Q7-QA
 for 29798 <at> debbugs.gnu.org; Thu, 21 Dec 2017 06:04:37 -0500
Received: by mail-lf0-f50.google.com with SMTP id m20so14302958lfi.6
 for <29798 <at> debbugs.gnu.org>; Thu, 21 Dec 2017 03:04:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=w+5sYBgTcC+SrnNBC2FyPtQgGAS1qPwjjKYr8H33aww=;
 b=rsD0BFKkBqSylzDwSc0cSMH3SIyApVB+Pgv7yX7mHPmWlCueSHxPVhxvjwZVwRlhXS
 2ZyLfkqqHG7srnfZRkEQlRhwdqFtz7VQkyAmH1/VI2bxyrEmYyVT73A+Dx//201amWjg
 TroIi0YjCRXJ4/BvqylFrCCrdeA239fk4mYDo+v9gQkdxF1KWQulWQomihF+jPXkMP2g
 qvwvnXCsL2438EnqCb5sX5p1r5xInX27Hhf/LZaAAtwiEDqk1WFzu0DPF5pL7Me0+/Os
 YE+rmhBxPa+CHEDI8JwZ2LR+C7NRelsk2nvAnJM918lVB8JzIC0zAeKtivIZ1pDtmvDW
 pW7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=w+5sYBgTcC+SrnNBC2FyPtQgGAS1qPwjjKYr8H33aww=;
 b=jtRmclIMQtjZbaMC/w2lK2kKmCliN5jqpfxNJ0v5zOuB+AOWBQyS77GW91fFl4WDsa
 y6OAtD7ymThbfY9JW9n/mW6sF+VkgN7xLVVM202SsBNkrtbK1HwozlzLCac23SU1JzFf
 DMIB+OW3w7DM6UqiKbkAZIrY+tTkOo1urKFbiEXI7vAVftmMUqLaidEPf3P3UUhFHMb7
 nFJtrYSdrjYy9XkkfmOCcklmHq+N3plulDr6fuGRPmODfPiqBJS1ABtmJSmCI+42cGVc
 sAecT3jszZZHdp0DNYMB6PvGc4fz27VfGxlSeBQuR5o6rcwH2DCAS7j/UH5oTGYfvJ/r
 CAjw==
X-Gm-Message-State: AKGB3mL7xFMy6cJaiT83bggCgcpYEC2s2HxDtvBZcEzBmThnWJ0ynaPM
 uWOHErqvBTmGfr5q3MDwFj/zcc14
X-Google-Smtp-Source: ACJfBouucLLhNrjDF7vHnprqY4ejokV2jr1JDjwvr0M5d7lBX9NTaSaoPaBGyMC4jkpnVtCO1e1zwg==
X-Received: by 10.46.29.11 with SMTP id d11mr6714747ljd.24.1513854270751;
 Thu, 21 Dec 2017 03:04:30 -0800 (PST)
Received: from [192.168.1.3] ([185.105.174.193])
 by smtp.googlemail.com with ESMTPSA id h8sm812541lfj.31.2017.12.21.03.04.29
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 21 Dec 2017 03:04:30 -0800 (PST)
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Gavin Haynes <haynes.gt@HIDDEN>
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <f7b113a2-2206-e55e-06a5-a6d02be87b32@HIDDEN>
 <CAKfd4R9TKvK_8Qkw2vQ1p3CTHm8dLVxMkgQ1pjOXjBoB6rynmw@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <3deeab23-a091-b1c1-acc1-cf4c9757297e@HIDDEN>
Date: Thu, 21 Dec 2017 13:04:27 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101
 Thunderbird/58.0
MIME-Version: 1.0
In-Reply-To: <CAKfd4R9TKvK_8Qkw2vQ1p3CTHm8dLVxMkgQ1pjOXjBoB6rynmw@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

On 12/21/17 12:50 PM, Gavin Haynes wrote:
> console.log(
>     -2,
>    2
> );

And this example has been fixed since at least Emacs 25.2. Probably earlier.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 21 Dec 2017 10:50:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 21 05:50:51 2017
Received: from localhost ([127.0.0.1]:45327 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRyR9-000824-DM
	for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 05:50:51 -0500
Received: from mail-yw0-f181.google.com ([209.85.161.181]:44371)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haynes.gt@HIDDEN>) id 1eRyR7-00081j-Oj
 for 29798 <at> debbugs.gnu.org; Thu, 21 Dec 2017 05:50:50 -0500
Received: by mail-yw0-f181.google.com with SMTP id m129so2781984ywb.11
 for <29798 <at> debbugs.gnu.org>; Thu, 21 Dec 2017 02:50:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=4aSPofOudGdN2BZ14eWNn+dE03pd0WZBr52xnFMRXa8=;
 b=N7RoPwy7vVI58BxV63iaqnES2stgIPwtNsMJn+f0iu0bU1X0F+dOqZ3WFKzWPBF5+X
 ElZz6c/1HuW3aryV8Jancq1e1JsCzLnFBrfSU/7BvrLFsuAQdvGz8m2jkm+f/U2heQxG
 Ug+mEycK1CIEQg0lwhZwDC6Pdm0dpsRszzNUezb/a44CUil3px6STAnG7FH0D2aUx0xk
 lxbSZ/+rMgiMVRvKMZFN8G89GJWJJbrzGAzoW0ZUEc/McCqvex93r4JEnHPr4s0SQQnj
 zOGQZK/QiLJQRHZlpA2N1D337Qg6pvFr+rFbikCfEqERbWmiDkbIFliDHlX81Lbf22Ob
 /hYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=4aSPofOudGdN2BZ14eWNn+dE03pd0WZBr52xnFMRXa8=;
 b=qxt6ifJwmOyZLn7I2RvNkiuw0eYHvRqU0D9ZQeTusdYY081YI/Wmw+wGpS8mp/K7Cd
 KvzGKrJegb0ODdmgdLNZpB2q/Du1nXatkMXRSIg47abL+7KMu8CsZVI2BbOc6hB+njSI
 Pc2z9TojkGRne07p0lOGSJikRgpu1PvLbU4IUBzjk1HTjsUDQBiyQpYQ8JUbT6WV95lf
 hVyssmjySHsaXUx7nfPotEYdWPjiDehguJvna9SxBhuRc6zMu/72uYipzDnRBVj+YqFy
 F/Eykz9GUJepHTtt0J2nd8Qzs5Y9KSVK0tYNrWUhXQyosfKMeHSjo/2GCfGbx6l64mkE
 /Ylw==
X-Gm-Message-State: AKGB3mKy5prmjLHHi04/MFjjNolkLF9Eg2IWq9H1+I33BroZUzLI/GPP
 7okaY1Qs+vFF/xkZCuRtORLjRPXsgy47dHaclOk=
X-Google-Smtp-Source: ACJfBotea8KXVlAXx4n4TS+OLa8KD4QPbh9Ap3G2HFXbd38ZjxOOM6EVVcbryZrqjg1YxzZ2X4NiqojBkq6PfqDG0z0=
X-Received: by 10.129.94.212 with SMTP id s203mr1824813ywb.123.1513853444049; 
 Thu, 21 Dec 2017 02:50:44 -0800 (PST)
MIME-Version: 1.0
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
 <f7b113a2-2206-e55e-06a5-a6d02be87b32@HIDDEN>
In-Reply-To: <f7b113a2-2206-e55e-06a5-a6d02be87b32@HIDDEN>
From: Gavin Haynes <haynes.gt@HIDDEN>
Date: Thu, 21 Dec 2017 10:50:33 +0000
Message-ID: <CAKfd4R9TKvK_8Qkw2vQ1p3CTHm8dLVxMkgQ1pjOXjBoB6rynmw@HIDDEN>
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Dmitry Gutov <dgutov@HIDDEN>
Content-Type: multipart/alternative; boundary="001a11470cdac650c10560d77887"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 29798
Cc: 29798 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--001a11470cdac650c10560d77887
Content-Type: text/plain; charset="UTF-8"

Perhaps. Anyway, you can get the same behaviour with this code:

console.log(
   -2,
  2
);

On Thu, Dec 21, 2017 at 2:45 AM Dmitry Gutov <dgutov@HIDDEN> wrote:

> Hi Gavin,
>
> On 12/21/17 9:53 AM, Gavin Haynes wrote:
> > { -2, 2, +2 }
>
> What does this mean in JavaScript? Is this a block with comma-separated
> statements?
>

--001a11470cdac650c10560d77887
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div dir=3D"auto">Perhaps. Anyway, you can get the same behaviour with=
 this code:</div><div dir=3D"auto"><br></div><div dir=3D"auto">console.log(=
</div><div dir=3D"auto">=C2=A0 =C2=A0-2,</div><div dir=3D"auto">=C2=A0 2</d=
iv><div dir=3D"auto">);</div><br><div class=3D"gmail_quote"><div>On Thu, De=
c 21, 2017 at 2:45 AM Dmitry Gutov &lt;<a href=3D"mailto:dgutov@HIDDEN">=
dgutov@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi =
Gavin,<br>
<br>
On 12/21/17 9:53 AM, Gavin Haynes wrote:<br>
&gt; { -2, 2, +2 }<br>
<br>
What does this mean in JavaScript? Is this a block with comma-separated<br>
statements?<br>
</blockquote></div></div>

--001a11470cdac650c10560d77887--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at 29798 <at> debbugs.gnu.org:


Received: (at 29798) by debbugs.gnu.org; 21 Dec 2017 10:45:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 21 05:45:26 2017
Received: from localhost ([127.0.0.1]:45323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRyLt-0007sr-R8
	for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 05:45:25 -0500
Received: from mail-lf0-f45.google.com ([209.85.215.45]:35310)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1eRyLs-0007sd-2S
 for 29798 <at> debbugs.gnu.org; Thu, 21 Dec 2017 05:45:24 -0500
Received: by mail-lf0-f45.google.com with SMTP id j124so27368454lfg.2
 for <29798 <at> debbugs.gnu.org>; Thu, 21 Dec 2017 02:45:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=Zk6rRoUTcBnyWu/lmmrmLtTL6UexhyaoIRBghRuTi4k=;
 b=dMpxk+4yIAt+35dI/cVjswtupYfYdqmPuC/f0rfmKMVNK3QDXg8J9mKdVbJTYRSZlj
 FAnqBwEqSoxWykzgi0/TBa7fWWBJFFDDmEI2kjom5K8h0K7BnHLZAk4E3PZFCrjRwXWp
 nA/znxzT+gTnNxxEicf1y1qvjEFE22m42Vzo9Hqm/ac7xe2UiWoVy23pTQfoiDfG5/yM
 7QsMaYrYWMK0JV95YaGviqK15ou/P3c/4CmLjghnqc3miUF+Bi5oadELlH9mM5NGoxxh
 ol3HEMLtpseYwY8h+3HmvlFu4ONn35B0HRgviOYAPGoBWYxgX1T+Q8ETHFZ2K3zDSgeT
 rYxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=Zk6rRoUTcBnyWu/lmmrmLtTL6UexhyaoIRBghRuTi4k=;
 b=jEWx63IE3FFjDsCLHNhbeaQZ5DRjcrpSNMwqc8trofoyFJxa2SidkRAQmoPXezfYEh
 u/N2oaW2KTrCAsG8q/TxBfeAaLIm9skA2qgTrHyM2r6uW2LwpSljlzmi7ezZSyyDNUIX
 1nNpKn9ivRMhkVr+cU7G4eGpNgXVMuTNEkHtaCFoMwlXj8C5Tgz/V5C3Ak208tV438t5
 Q81h+pCrbaNh0f6ANWXDmfS+gl5p3hchAfV83igAJeN1MYAGMK5+sQYHHasZ/t8QJOgr
 DcZj0sT8Q4TGT5kJu973wAU2PfZ5Q7jaA541frx8ine5owqSRWt1NeiGsQLBWeGliDpo
 7C/Q==
X-Gm-Message-State: AKGB3mLyc01of/rTIcHZ6k5xtgg08Cb0X+YvpYesKsORPpuecZBEapDo
 csP/S2ECPmohTYQR0fwwaGIUTDrf
X-Google-Smtp-Source: ACJfBovo0+6GxEYML4nsY8rkwYzvB4zPzNa41OTLrt9QTZFyoseejXfdblzu0YBA6kZiDxYRCqZ/oA==
X-Received: by 10.46.20.5 with SMTP id u5mr6142332ljd.9.1513853117777;
 Thu, 21 Dec 2017 02:45:17 -0800 (PST)
Received: from [192.168.1.3] ([185.105.174.193])
 by smtp.googlemail.com with ESMTPSA id x20sm3875121ljd.88.2017.12.21.02.45.15
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 21 Dec 2017 02:45:16 -0800 (PST)
Subject: Re: bug#29798: 24.3; Javascript: Too much indentation with + and -
To: Gavin Haynes <haynes.gt@HIDDEN>, 29798 <at> debbugs.gnu.org
References: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <f7b113a2-2206-e55e-06a5-a6d02be87b32@HIDDEN>
Date: Thu, 21 Dec 2017 12:45:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101
 Thunderbird/58.0
MIME-Version: 1.0
In-Reply-To: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 29798
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

Hi Gavin,

On 12/21/17 9:53 AM, Gavin Haynes wrote:
> { -2, 2, +2 }

What does this mean in JavaScript? Is this a block with comma-separated 
statements?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Dec 2017 07:57:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 21 02:57:17 2017
Received: from localhost ([127.0.0.1]:45139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRvjA-0003hm-Ia
	for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 02:57:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36373)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haynes.gt@HIDDEN>) id 1eRvfq-0003cQ-Ht
 for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 02:53:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <haynes.gt@HIDDEN>) id 1eRvfj-0000pv-5e
 for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 02:53:44 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35215)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <haynes.gt@HIDDEN>) id 1eRvfj-0000pr-2g
 for submit <at> debbugs.gnu.org; Thu, 21 Dec 2017 02:53:43 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55525)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <haynes.gt@HIDDEN>) id 1eRvfh-00031t-5P
 for bug-gnu-emacs@HIDDEN; Thu, 21 Dec 2017 02:53:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <haynes.gt@HIDDEN>) id 1eRvff-0000oN-KK
 for bug-gnu-emacs@HIDDEN; Thu, 21 Dec 2017 02:53:41 -0500
Received: from mail-yb0-x236.google.com ([2607:f8b0:4002:c09::236]:46089)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <haynes.gt@HIDDEN>) id 1eRvff-0000o0-Df
 for bug-gnu-emacs@HIDDEN; Thu, 21 Dec 2017 02:53:39 -0500
Received: by mail-yb0-x236.google.com with SMTP id g15so16437347ybc.13
 for <bug-gnu-emacs@HIDDEN>; Wed, 20 Dec 2017 23:53:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=T6Me92n3VHUI2bD3BgqxpSspzaCgPsvp2ozVo1wafag=;
 b=jJ/0o80nDB/JDb0dVhuOb76tU17EXMNxxLkRLyYRsHAVbJzaMqTeqKI3fCN75HhqZw
 rhXf/ON36dOC62Rre033HuqorZyXCxzT0uuB93cYPzI52Mjg1BlgwepUPNjVb/tG++1L
 MMTFDBtWytMNmxLt6gBgdP6kfgloSE0fgCr8U9Cuogl6k5eSjNmwlRyZdT0ujAluIh6u
 kmk/E2QSmi4ZOc5V2EYzz795kVHy+kr+dgqANDXsCYeYgq7oplCvvqp7N5gcIGSz2Dhb
 wb6Vv/AzQ7Zhwbjhy/cFCR4gEw3d88SLmI+cbBbb2nH7cN/g1EyisRvphm94R/KUr6FT
 0f9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=T6Me92n3VHUI2bD3BgqxpSspzaCgPsvp2ozVo1wafag=;
 b=n/GLh7FzFDGYzqAwueBGEMOIdVHq4Y/H5SXmqqbMtpf7CAmeUOBxCsqC7IP1Q4d5+z
 o2VzKP0s33debeJ/xBet8TU0QZTe2ssRwN0oh6IQUQ2sP/3QCQOm9ANxKZPGKd8DpEqg
 w65vjArttxaWx/JEK5DWTG2fc7FpAQmutaK2hpYAHKb2a0BvaUHbkBv+f8hymaI5+m2P
 q0pvxb+6ODycfY0eOkKE0qAI4OAmCOW99fdum/Fs3WbvkaC/NEsU/U0/JCNLoLwhTtAc
 r4PgWIWzqLvd9Tr+YTmJK/VhStNRWLle29CpUahUbLcE/mV7MCffTKATQ8jMDpmFfLrs
 VcfA==
X-Gm-Message-State: AKGB3mJ3TNThrHdAOhulA6WdVhgH0rGWFIK/uBwhvov+qUuDKtTjtu4e
 rKt4Lyu7HZCqxc1IywGU8uoa7H7IOVhurfs54cPQJg==
X-Google-Smtp-Source: ACJfBosjkIulpaONtxJjY9P787BDXFkg38YR8Iof/vRhlT519HcJQfBzfrgiosNmoHGtS0l5aQI4+Wuv4mvMOQfCkTo=
X-Received: by 10.37.187.75 with SMTP id b11mr6930768ybk.167.1513842818304;
 Wed, 20 Dec 2017 23:53:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.91.130 with HTTP; Wed, 20 Dec 2017 23:53:37 -0800 (PST)
From: Gavin Haynes <haynes.gt@HIDDEN>
Date: Wed, 20 Dec 2017 23:53:37 -0800
Message-ID: <CAKfd4R8L_VkLPMe_OrBK2K+UhOVJqMHNGOP4Ook-xr=kH5+BQg@HIDDEN>
Subject: 24.3; Javascript: Too much indentation with + and -
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="f403043d76d06e504d0560d4ffa2"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 21 Dec 2017 02:57:15 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--f403043d76d06e504d0560d4ffa2
Content-Type: text/plain; charset="UTF-8"

Please describe exactly what actions triggered the bug, and the precise
symptoms of the bug. If you can, give a recipe starting from `emacs -Q':
Write the following in a .js file: { -2, 2, +2 } Then, put your cursor over
each line and press tab to indent it. The lines having -2 and +2 get twice
as much indentation as expected. The line having just 2 has the correct
indentation. If Emacs crashed, and you have the Emacs process in the gdb
debugger, please include the output from the following gdb commands: `bt
full' and `xbacktrace'. For information about debugging Emacs, please read
the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1
(x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2017-09-19 on lcy01-35,
modified by Debian System Description: Ubuntu 14.04.5 LTS Configured using:
`configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
'--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
'--localstatedir=/var/lib' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
'--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
'--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG:
en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix
default enable-multibyte-characters: t Major mode: Javascript Minor modes
in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t
menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t
font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t
auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent
input: ESC [ > 1 ; 3 4 0 9 ; 0 c C-n C-n C-e RET - 2 , TAB RET 3 TAB C-x
C-s C-p C-p RET TAB d e l e t e SPC 2 TAB , TAB TAB C-n TAB C-p TAB C-b C-b
C-b C-b C-b C-b C-b DEL TAB C-e C-n RET + 1 , TAB RET ~ 4 TAB , TAB RET ! 0
TAB , TAB C-p C-p C-n C-n RET - 2 TAB DEL DEL DEL DEL C-a C-k C-p C-e ESC x
r e p o r t - e m a c s - b u g RET Recent messages: Loading
/etc/emacs/site-start.d/50erlang-mode.el (source)...done Loading
/etc/emacs/site-start.d/50festival.el (source)...done Loading
/etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done Loading
/etc/emacs/site-start.d/50lilypond-data.el (source)...done Loading
/etc/emacs/site-start.d/50mdk.el (source)...done For information about GNU
Emacs and the GNU system, type C-h C-a. Saving file /tmp/a.js... Wrote
/tmp/a.js Auto-saving...done Auto-saving...done Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides
/usr/share/emacs/site-lisp/cmake-mode Features: (shadow sort gnus-util
mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils js json
imenu thingatpt cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs time-date byte-opt warnings
bytecomp byte-compile cconv advice help-fns cl-lib advice-preload
tide-autoloads flycheck-autoloads seq-autoloads let-alist-autoloads
pkg-info-autoloads epl-autoloads finder-inf s-autoloads dash-autoloads
typescript-mode-autoloads package erlang-start devhelp tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

--f403043d76d06e504d0560d4ffa2
Content-Type: text/html; charset="UTF-8"

<div dir="ltr"><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="white-space:pre">Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q&#39;:

Write the following in a .js file:

{
    -2,
  2,
    +2
}

Then, put your cursor over each line and press tab to indent it.
The lines having -2 and +2 get twice as much indentation as expected.
The line having just 2 has the correct indentation.



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full&#39; and `xbacktrace&#39;.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
 of 2017-09-19 on lcy01-35, modified by Debian
System Description:	Ubuntu 14.04.5 LTS

Configured using:
 `configure &#39;--build&#39; &#39;x86_64-linux-gnu&#39; &#39;--build&#39; &#39;x86_64-linux-gnu&#39;
 &#39;--prefix=/usr&#39; &#39;--sharedstatedir=/var/lib&#39; &#39;--libexecdir=/usr/lib&#39;
 &#39;--localstatedir=/var/lib&#39; &#39;--infodir=/usr/share/info&#39;
 &#39;--mandir=/usr/share/man&#39; &#39;--with-pop=yes&#39;
 &#39;--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp&#39;
 &#39;--with-crt-dir=/usr/lib/x86_64-linux-gnu&#39; &#39;--with-x=yes&#39;
 &#39;--with-x-toolkit=gtk3&#39; &#39;--with-toolkit-scroll-bars&#39;
 &#39;build_alias=x86_64-linux-gnu&#39; &#39;CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall&#39;
 &#39;LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro&#39;
 &#39;CPPFLAGS=-D_FORTIFY_SOURCE=2&#39;&#39;

Important settings:
  value of $LANG: en_CA.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Javascript

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC [ &gt; 1 ; 3 4 0 9 ; 0 c C-n C-n C-e RET - 2 , TAB 
RET 3 TAB C-x C-s C-p C-p RET TAB d e l e t e SPC 2 
TAB , TAB TAB C-n TAB C-p TAB C-b C-b C-b C-b C-b C-b 
C-b DEL TAB C-e C-n RET + 1 , TAB RET ~ 4 TAB , TAB 
RET ! 0 TAB , TAB C-p C-p C-n C-n RET - 2 TAB DEL DEL 
DEL DEL C-a C-k C-p C-e ESC x r e p o r t - e m a c 
s - b u g RET

Recent messages:
Loading /etc/emacs/site-start.d/50erlang-mode.el (source)...done
Loading /etc/emacs/site-start.d/50festival.el (source)...done
Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done
Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done
Loading /etc/emacs/site-start.d/50mdk.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Saving file /tmp/a.js...
Wrote /tmp/a.js
Auto-saving...done
Auto-saving...done

Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils js json imenu thingatpt cc-mode cc-fonts easymenu
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
time-date byte-opt warnings bytecomp byte-compile cconv advice help-fns
cl-lib advice-preload tide-autoloads flycheck-autoloads seq-autoloads
let-alist-autoloads pkg-info-autoloads epl-autoloads finder-inf
s-autoloads dash-autoloads typescript-mode-autoloads package
erlang-start devhelp tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)</span>
</font></div><div><br></div></div>

--f403043d76d06e504d0560d4ffa2--




Acknowledgement sent to Gavin Haynes <haynes.gt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29798; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 3 Feb 2022 19:45:01 UTC

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