all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests.
Date: Mon, 07 Oct 2013 14:29:22 +0300	[thread overview]
Message-ID: <874n8tz5d9.fsf@yandex.ru> (raw)
In-Reply-To: <E1VT1eQ-0007di-60@vcs.savannah.gnu.org> (Stefan Monnier's message of "Mon, 07 Oct 2013 03:38:30 +0000")

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>  a = foo(j, k) -
> -  bar_tee
> +    bar_tee

Hmm, that indentation looks meaningful, and it's even close to
implementing one of the long-standing feature requests
(http://bugs.ruby-lang.org/issues/5357), but I suspect it'll go against
some established codebases.

I think we'll need a toggle here, eventually.

>  foo.
>    bar
>
> +# FIXME: is this really valid Ruby?  Isn't the newline after "foo" treated as
> +# an implicit semi-colon?
>  foo
>    .bar

It is, I guess it's the main exception to the newline termination rule.

This style is actually preferred over keeping the dot on the first line:

https://github.com/bbatsov/ruby-style-guide (search for "chained method
invocation")



       reply	other threads:[~2013-10-07 11:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1VT1eQ-0007di-60@vcs.savannah.gnu.org>
2013-10-07 11:29 ` Dmitry Gutov [this message]
2013-10-07 15:22   ` trunk r114545: * lisp/progmodes/ruby-mode.el: Fix recently added tests Stefan Monnier
2013-10-07 23:27     ` 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

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

  git send-email \
    --in-reply-to=874n8tz5d9.fsf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.