From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: How to get decent java-script support Date: Thu, 25 Jun 2015 18:14:44 +0300 Message-ID: <558C1AE4.9020305@yandex.ru> References: <87h9pw37jv.fsf@gmx.us> <558BC8F1.9010107@yandex.ru> <87lhf7ltix.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435245317 24716 80.91.229.3 (25 Jun 2015 15:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 15:15:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rasmus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 17:15:17 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z88rz-00015i-Nm for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 17:15:15 +0200 Original-Received: from localhost ([::1]:56171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88rz-0007FG-3C for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 11:15:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88rk-0007F3-CA for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 11:15:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z88rg-00030e-6j for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 11:15:00 -0400 Original-Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:34943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88rg-0002t8-08 for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 11:14:56 -0400 Original-Received: by wgbhy7 with SMTP id hy7so65377443wgb.2 for ; Thu, 25 Jun 2015 08:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=aeW349ktmWhF1LMSZyz1JkU/YbFL9aUZVNCUmOYPrbo=; b=xRN8EzEJBvRm07Yp9QcRIKZ0gXzzmre43fonx+KxJRTznC+4bNMyRifSH6KS/ot9Dl L5cqEzjmNa1Vwk4htloX51FJC1Y4iXjzZwaag4Yze8KGSDoHcgyZXCxOwL9j1c0SHh3/ lUcaC4NR2Jku26OqtvXDgMCmBdqVcfGlsHPhVeZEG74fD/FOsmxGTYtjy8NxLDWMQsr9 /zGKS0+Zl5BmjVscvvTx8oB1fck7c++Jgl8WRdCYZrFhH4wF8E3pr47rFZumn804Hrh7 YTAwE1AzLEkgJuzaeoyuD35IpU7GoQqwBi6PJmmYXC9UZLmy1zci2IBpzFOD/f8TxnwH fMIg== X-Received: by 10.194.77.179 with SMTP id t19mr79320244wjw.30.1435245286751; Thu, 25 Jun 2015 08:14:46 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id az1sm3574603wib.0.2015.06.25.08.14.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 08:14:46 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <87lhf7ltix.fsf@gmx.us> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105158 Archived-At: On 06/25/2015 06:03 PM, Rasmus wrote: > Would you mind if I open a bug on that on github? I don't know if it's a > d3 thing or something that is generally useful for JS. If you want to open a bug, do it for js-mode, via M-x report-emacs-bug. js2-mode intends to reuse its indentation engine. > It's can get pretty nasty so I don't know if rules can be written. > E.g. > > var myvar = d3.select("#whatever") > .somefun(arg) > .call(d3.something_else(arg) > .anotherfun(arg)); > > You'd not actually write code like that of course (the something_else call > would be factored out to a separate var), so for the majority of code it > would be enough to just align on the first dot. Yes, that could be non-trivial. I haven't looked into it much, though.