GNU bug report logs -
#54702
29.0.50; ruby-mode indentation: endless methods
Previous Next
Reported by: Aaron Jensen <aaronjensen <at> gmail.com>
Date: Mon, 4 Apr 2022 02:04:02 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 54702 <at> debbugs.gnu.org (full text, mbox):
On Fri, Dec 16, 2022 at 11:15 AM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
>
> On 16/12/2022 15:12, Aaron Jensen wrote:
> > On Fri, Dec 16, 2022 at 7:31 AM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> >>
> >> Right, thanks. See the attached updated patch.
> >
> > That works. I found another inconsistency related to the other issue I
> > just opened:
> >
> > def foo(
> > baz,
> > bar
> > ) = what
> >
> > def foo(
> > baz,
> > bar
> > )
> > hello
> > end
> >
> > I don't know who is savage enough to do a multi-line endless method
> > like that, but when it's done the closing paren should probably be
> > consistent w/ the regular method closing paren.
>
> Thank you, savage indeed.
>
> Okay, here's an alternative version -- this was a pain to implement.
>
> Would be much easier if we just decided to change the args indentation
> without support for the current one.
It works for me w/ that example.
You won't find me resisting getting rid of the old way. Lining up
against the method name is a fairly clear UX issue, in my opinion. I
don't know that it's something I see outside of Emacs, and my guess is
that it was influenced by Lisp rather than being influenced by Ruby
and its community.
Aaron
This bug report was last modified 2 years and 213 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.