unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Bozhidar Batsov <bozhidar@batsov.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: [ruby-mode] dot-alignment support for multi-line method chaining
Date: Thu, 30 Jan 2014 06:31:44 +0200	[thread overview]
Message-ID: <52E9D5B0.3010601@yandex.ru> (raw)
In-Reply-To: <CAM9Zgm0JvDpfwfe7HfA9nY1wkXVJCg4HG=4W7SoJ+=wYM-KYFA@mail.gmail.com>

See http://debbugs.gnu.org/16593

On 22.01.2014 19:28, Bozhidar Batsov wrote:
> Hard to read indentation examples in an email, but it seems to me that:

Yeah, both Gnus and Thunderbird mangle indentation quite a bit for me. 
lists.gnu.org displays it right, though.

> zoo.keep.bar!(
>    {x: y,
>     z: t}
> )
>
> is the only sensible indentation for the third example

It doesn't seem to correspond to the AST, but sure, this looks nicer.

>     By the way, do you think it'd be good if the same variable toggled
>     between
>
>     foo = foobar
>            .baz
>
>     and
>
>     foo = foobar
>        .baz
>
>     ? Or would that be a different variable?
>
>
> Didn't notice this until now. Seems to me the default indent should be
> relative to the `=` (similar to what we do for ops like +, -, etc):

Okay, won't touch this for now, then,



  reply	other threads:[~2014-01-30  4:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21 12:25 [ruby-mode] dot-alignment support for multi-line method chaining Bozhidar Batsov
2014-01-22 13:41 ` Dmitry Gutov
2014-01-22 17:28   ` Bozhidar Batsov
2014-01-30  4:31     ` Dmitry Gutov [this message]
2014-01-30  8:51       ` Andreas Schwab
2014-01-30 14:45         ` Dmitry Gutov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E9D5B0.3010601@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=bozhidar@batsov.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).