From: Dmitry Gutov <dgutov@yandex.ru>
To: Rasmus <rasmus@gmx.us>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get decent java-script support
Date: Thu, 25 Jun 2015 18:14:44 +0300 [thread overview]
Message-ID: <558C1AE4.9020305@yandex.ru> (raw)
In-Reply-To: <87lhf7ltix.fsf@gmx.us>
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.
next prev parent reply other threads:[~2015-06-25 15:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 1:23 How to get decent java-script support Rasmus
2015-06-25 9:25 ` Dmitry Gutov
2015-06-25 15:03 ` Rasmus
2015-06-25 15:14 ` Dmitry Gutov [this message]
2015-06-25 18:27 ` Rasmus
2015-06-25 18:34 ` Dmitry Gutov
2015-06-25 19:12 ` John Mastro
2015-06-25 21:40 ` Rasmus
2015-06-25 23:49 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=558C1AE4.9020305@yandex.ru \
--to=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.