GNU bug report logs - #54702
29.0.50; ruby-mode indentation: endless methods

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 54702 <at> debbugs.gnu.org
Subject: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 08:12:09 -0500
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.


> Yeah, it looks promising, but let's see how it goes.
>
> And there is a certain barrier to compiling the tree-sitter stuff, so
> we'll probably need to maintain the current/pure version in parallel for
> a while.

Indeed, it took me a while to even find reference to documentation on
it and I was looking explicitly, so there's work to be done there for
sure.

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.