unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Akinori MUSHA <knu@iDaemons.org>
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: ruby-mode broken with indentation?
Date: Sat, 02 Nov 2013 09:22:02 +0400	[thread overview]
Message-ID: <52748BFA.2010102@yandex.ru> (raw)
In-Reply-To: <8661sgt427.knu@iDaemons.org>

Hi Akinori,

On 29.10.2013 20:49, Akinori MUSHA wrote:
> I found ruby-mode indents an assignment + block construct incorrectly:
>
> What I expect is as follows:
>
> ```
> a = b {
>    c
> }
> aa = bb do
>    cc
> end
> ```
>
> But ruby-mode from Emacs trunk indents it as follows:
>
> ```
> a = b {
>      c
>    }
> aa = bb do
>       cc
>     end
> ```
>
> Does this reproduce for you?

It does. ruby-mode in Emacs trunk has switched to SMIE as its default 
indentation engine, and it still handles some cases badly. To use the 
old indentation engine, add (setq ruby-use-smie nil) to your config.

I've fixed the examples above in revision 114901, but I'm not sure if 
that was a good approach. Stefan, could you take a look?



       reply	other threads:[~2013-11-02  5:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8661sgt427.knu@iDaemons.org>
2013-11-02  5:22 ` Dmitry Gutov [this message]
2013-11-03 22:51   ` ruby-mode broken with indentation? Stefan Monnier
2013-11-05  1:12     ` 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=52748BFA.2010102@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=knu@iDaemons.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 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).