GNU bug report logs - #9151
js-mode indentation doesn't recognize brace-less function expressions

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; Reported by: Štěpán Němec <stepnem@HIDDEN>; dated Fri, 22 Jul 2011 19:34:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 22 Jul 2011 19:33:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 22 15:33:27 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QkLTS-0000lC-7u
	for submit <at> debbugs.gnu.org; Fri, 22 Jul 2011 15:33:26 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTQ-0000l1-GE
	for submit <at> debbugs.gnu.org; Fri, 22 Jul 2011 15:33:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTK-0006IP-Bb
	for submit <at> debbugs.gnu.org; Fri, 22 Jul 2011 15:33:19 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:34077)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTK-0006IC-9Z
	for submit <at> debbugs.gnu.org; Fri, 22 Jul 2011 15:33:18 -0400
Received: from eggs.gnu.org ([140.186.70.92]:60772)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTJ-0005td-BB
	for bug-gnu-emacs@HIDDEN; Fri, 22 Jul 2011 15:33:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTI-0006Hm-FZ
	for bug-gnu-emacs@HIDDEN; Fri, 22 Jul 2011 15:33:17 -0400
Received: from mail-fx0-f52.google.com ([209.85.161.52]:63661)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stepnem@HIDDEN>) id 1QkLTI-0006Hc-85
	for bug-gnu-emacs@HIDDEN; Fri, 22 Jul 2011 15:33:16 -0400
Received: by fxd18 with SMTP id 18so4675574fxd.39
	for <bug-gnu-emacs@HIDDEN>; Fri, 22 Jul 2011 12:33:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=from:to:subject:date:message-id:mime-version:content-type
	:content-transfer-encoding;
	bh=g+Pb3zhGkBsxawrJgeGBcRh1ZyybIWrkxezzag7d9+8=;
	b=r3Z0HEIEPyVMyLJ8a2ciD8i9vz93kIbXhPaZsHBySyhPCIjwv1WQBs5jZQlcFn5hMd
	ohIe5CEUW+TofVkcs/hBkuOp9lU5ZaPXcTFzJxODpEuzEBAppnsK8K8k4gVb1cqkyKiy
	xFPMI7L7dWDqNl7i/AG7J6i3aLM0oP3LI8lwQ=
Received: by 10.223.21.219 with SMTP id k27mr287151fab.54.1311363195141;
	Fri, 22 Jul 2011 12:33:15 -0700 (PDT)
Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176])
	by mx.google.com with ESMTPS id b14sm756151fam.21.2011.07.22.12.33.13
	(version=TLSv1/SSLv3 cipher=OTHER);
	Fri, 22 Jul 2011 12:33:14 -0700 (PDT)
From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= <stepnem@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Subject: js-mode indentation doesn't recognize brace-less function expressions
Date: Fri, 22 Jul 2011 21:28:45 +0200
Message-ID: <8762mu5d3m.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.8 (----)

GNU Emacs 24.0.50.6 (i686-pc-linux-gnu) of 2011-01-15 on headley

In JavaScript, the following is a valid function definition:

function foo ()
    a.somewhat().complicated()
    .computation()

but `js-mode' currently indents it like this:

function foo ()
a.somewhat().complicated()
    .computation()

--=20
=C5=A0t=C4=9Bp=C3=A1n




Acknowledgement sent to Štěpán Němec <stepnem@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9151; 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: Fri, 31 Oct 2014 17:00:04 UTC

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