From: Rasmus <rasmus@gmx.us>
To: 20896@debbugs.gnu.org
Subject: bug#20896: 25.0.50; [js-mode][FR] support chain syntax indentation
Date: Fri, 26 Jun 2015 02:14:51 +0200 [thread overview]
Message-ID: <87zj3niav8.fsf@gmx.us> (raw)
In-Reply-To: <87a8vnlrxs.fsf@gmx.us>
Hi,
Rasmus <rasmus@gmx.us> writes:
> var an_axis = axes.append("g")
> .call(d3.svg.axis()
> .scale(Scale)
> .orient("bottom"));
Actually, this case is not as crazy as first assumed and should ideally be
supported. Here's a pretty reasonable example (except for names being too
long):
plot.axes.yScale = d3.scale.ordinal()
.domain(d3.range(bar.ybins).map(function(d){return d*10;}))
.range(d3.range(bar.ybins)
.map(function(d,i) {
return plot.height-plot.height/bar.ybins * i;}));
Also, notice there's another, potential, indentation typo in this code.
The last "return" should be one character to the right IMO, i.e.
.map(function(d,i) {
return plot.height-plot.height/bar.ybins * i;}));
Thanks,
Rasmus
--
Dung makes an excellent fertilizer
next prev parent reply other threads:[~2015-06-26 0:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 15:37 bug#20896: 25.0.50; [js-mode][FR] support chain syntax indentation Rasmus
2015-06-26 0:14 ` Rasmus [this message]
2017-01-10 6:29 ` bug#20896: patch to add chained indentation Tom Tromey
2017-01-12 1:57 ` Dmitry Gutov
2017-01-12 4:01 ` Tom Tromey
2017-01-13 1:09 ` Dmitry Gutov
2017-01-14 17:45 ` bug#20896: done Tom Tromey
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=87zj3niav8.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=20896@debbugs.gnu.org \
/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.