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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54702 in the body.
You can then email your comments to 54702 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Mon, 04 Apr 2022 02:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aaron Jensen <aaronjensen <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Apr 2022 02:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; ruby-mode indentation: endless methods
Date: Sun, 03 Apr 2022 22:03:27 -0400
Ruby 3 and 3.1 bring us different versions of endless methods. They
currently don't indent correctly in `ruby-mode`:

Current:

```rb
class Bar
  def foo = bar

    def baz
    end
  end
```

Expected:

```rb
class Bar
  def foo = bar

  def baz
  end
end
```
In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.3.0, NS appkit-2113.30 Version 12.2.1 (Build 21D62))
 of 2022-03-04 built on aaron-m1.local
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.3.1

Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp
 --infodir=/opt/homebrew/Cellar/emacs-plus <at> 29/29.0.50/share/info/emacs
 --prefix=/opt/homebrew/Cellar/emacs-plus <at> 29/29.0.50 --with-xml2
 --with-gnutls --with-native-compilation --without-dbus
 --without-imagemagick --with-modules --with-rsvg --with-ns
 --disable-ns-self-contained 'CFLAGS=-I/opt/homebrew/opt/gcc/include
 -I/opt/homebrew/opt/libgccjit/include -I/opt/homebrew/opt/gmp/include
 -I/opt/homebrew/opt/jpeg/include' 'LDFLAGS=-L/opt/homebrew/lib/gcc/11
 -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include
 -I/opt/homebrew/opt/gmp/include -I/opt/homebrew/opt/jpeg/include''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS XIM ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Wed, 27 Apr 2022 02:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>, 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Wed, 27 Apr 2022 05:44:36 +0300
Hi Aaron,

On 04.04.2022 05:03, Aaron Jensen wrote:
> 
> Ruby 3 and 3.1 bring us different versions of endless methods. They
> currently don't indent correctly in `ruby-mode`:
> 
> Current:
> 
> ```rb
> class Bar
>    def foo = bar
> 
>      def baz
>      end
>    end
> ```
> 
> Expected:
> 
> ```rb
> class Bar
>    def foo = bar
> 
>    def baz
>    end
> end
> ```

Thanks for the report.

I'll work on this further, but here's a quick-and-dirty patch to fix the 
indentation problems.

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index a197724634..3733603fb3 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -528,6 +528,9 @@ ruby-smie--forward-token
               (ruby-smie--forward-token)) ;Fully redundant.
              (t ";")))
            ((equal tok "&.") ".")
+           ((and (equal tok "def")
+                 (looking-at " *[a-zA-Z0-9_]* *\\(([^()]*)\\)? *="))
+            "def=")
            (t tok)))))))))

 (defun ruby-smie--backward-token ()
@@ -575,6 +578,9 @@ ruby-smie--backward-token
             (ruby-smie--backward-token)) ;Fully redundant.
            (t ";")))
          ((equal tok "&.") ".")
+         ((and (equal tok "def")
+               (looking-at "def *[a-zA-Z0-9_]* *\\(([^()]*)\\)? *="))
+          "def=")
          (t tok)))))))

 (defun ruby-smie--indent-to-stmt ()




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Thu, 28 Apr 2022 00:00:04 GMT) Full text and rfc822 format available.

Message #11 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Wed, 27 Apr 2022 19:58:42 -0400
On Tue, Apr 26, 2022 at 10:44 PM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> Thanks for the report.
>
> I'll work on this further, but here's a quick-and-dirty patch to fix the
> indentation problems.

Great, thank you. I've since moved back to enh-ruby-mode and I was
able to patch it to support this (though that project appears to be
currently not accepting contributions). I'd probably use ruby-mode if
it supported indenting long parameter/argument lists the way the
non-smie version does, like this:

def some_method(
  some_param,
  some_other_param
)

I believe I've seen you imply concerns about enh-ruby-mode -- do you
have any aside from the fact that it's not in core and it requires a
ruby process? It's mostly worked well for me, but I don't know what I
don't know.

Thanks,

Aaron




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 00:34:02 GMT) Full text and rfc822 format available.

Message #14 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 02:33:17 +0200
[Message part 1 (text/plain, inline)]
Hi Aaron,

Sorry for the long pause. You said you're using something else, though, 
so it didn't seem urgent (and I've yet to encounter endless methods at 
$day_job, FWIW).

On 28/04/2022 02:58, Aaron Jensen wrote:
> On Tue, Apr 26, 2022 at 10:44 PM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
>> Thanks for the report.
>>
>> I'll work on this further, but here's a quick-and-dirty patch to fix the
>> indentation problems.
> 
> Great, thank you. I've since moved back to enh-ruby-mode and I was
> able to patch it to support this (though that project appears to be
> currently not accepting contributions).

Not a problem for me, but could you test the attached patch anyway?

It seems to handle a bunch of different/complex cases fine without 
regressions, but it's always better with a second pair of eyes.

> I'd probably use ruby-mode if
> it supported indenting long parameter/argument lists the way the
> non-smie version does, like this:
> 
> def some_method(
>    some_param,
>    some_other_param
> )

Now that the SMIE stuff is again in my short-term memory, it shouldn't 
be too hard. Just please file a separate bug report (slash feature 
request) with a precise example. Bonus points for linking to a relevant 
Rubocop rule, so that we can pick a better name for the new user option.

I don't see the non-SMIE version indenting it like this -- it looks more 
like this instead (and only if I set ruby-deep-indent-paren to nil):

def test2 (
    asd,
    asd
    asd
    )

So let's start with a couple of good examples.

> I believe I've seen you imply concerns about enh-ruby-mode -- do you
> have any aside from the fact that it's not in core and it requires a
> ruby process? It's mostly worked well for me, but I don't know what I
> don't know.

My main problem with it is the spotty maintenance like in this example: 
https://github.com/zenspider/enhanced-ruby-mode/issues/96

But it might work fine for many people. Especially those who don't use Robe.

Some previous versions of it (probably by the previous maintainer) were 
really broken, so I just took up ruby-mode instead. I haven't tried 
using its latest versions much.
[ruby-endless-methods.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 05:08:02 GMT) Full text and rfc822 format available.

Message #17 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 00:07:07 -0500
On Thu, Dec 15, 2022 at 7:33 PM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
>
> Hi Aaron,
>
> Sorry for the long pause. You said you're using something else, though,
> so it didn't seem urgent (and I've yet to encounter endless methods at
> $day_job, FWIW).

Not a problem at all. Our project is very data heavy and we define
lots of one line methods, so we have made good use of them.

> Not a problem for me, but could you test the attached patch anyway?
>
> It seems to handle a bunch of different/complex cases fine without
> regressions, but it's always better with a second pair of eyes.

Sure. I tried a few things and the only problem I can find is that it
does not handle endless module methods:

def self.some_method =
  "some-value"

(with or without the line break, it handles them as the unpatched
version handles instance endless methods.

> > I'd probably use ruby-mode if
> > it supported indenting long parameter/argument lists the way the
> > non-smie version does, like this:
> >
> > def some_method(
> >    some_param,
> >    some_other_param
> > )
>
> Now that the SMIE stuff is again in my short-term memory, it shouldn't
> be too hard. Just please file a separate bug report (slash feature
> request) with a precise example. Bonus points for linking to a relevant
> Rubocop rule, so that we can pick a better name for the new user option.

Sure thing, just sent one in: bug#60110

> I don't see the non-SMIE version indenting it like this -- it looks more
> like this instead (and only if I set ruby-deep-indent-paren to nil):
>
> def test2 (
>      asd,
>      asd
>      asd
>      )
>
> So let's start with a couple of good examples.

Yeah, this is what I see too. Not sure what I saw before. In any case,
I sent a current/desired.

> My main problem with it is the spotty maintenance like in this example:
> https://github.com/zenspider/enhanced-ruby-mode/issues/96
>
> But it might work fine for many people. Especially those who don't use Robe.
>
> Some previous versions of it (probably by the previous maintainer) were
> really broken, so I just took up ruby-mode instead. I haven't tried
> using its latest versions much.

Copy that. It works well for me. My endless method patch has since been merged.

Unrelated, but I'm excited about the prospect of a treesit mode for Ruby.

Thanks again,

Aaron




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 12:32:02 GMT) Full text and rfc822 format available.

Message #20 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 14:31:17 +0200
[Message part 1 (text/plain, inline)]
On 16/12/2022 07:07, Aaron Jensen wrote:

>> Not a problem for me, but could you test the attached patch anyway?
>>
>> It seems to handle a bunch of different/complex cases fine without
>> regressions, but it's always better with a second pair of eyes.
> 
> Sure. I tried a few things and the only problem I can find is that it
> does not handle endless module methods:
> 
> def self.some_method =
>    "some-value"
> 
> (with or without the line break, it handles them as the unpatched
> version handles instance endless methods.

Right, thanks. See the attached updated patch.

>>> I'd probably use ruby-mode if
>>> it supported indenting long parameter/argument lists the way the
>>> non-smie version does, like this:
>>>
>>> def some_method(
>>>     some_param,
>>>     some_other_param
>>> )
>>
>> Now that the SMIE stuff is again in my short-term memory, it shouldn't
>> be too hard. Just please file a separate bug report (slash feature
>> request) with a precise example. Bonus points for linking to a relevant
>> Rubocop rule, so that we can pick a better name for the new user option.
> 
> Sure thing, just sent one in: bug#60110
> 
>> I don't see the non-SMIE version indenting it like this -- it looks more
>> like this instead (and only if I set ruby-deep-indent-paren to nil):
>>
>> def test2 (
>>       asd,
>>       asd
>>       asd
>>       )
>>
>> So let's start with a couple of good examples.
> 
> Yeah, this is what I see too. Not sure what I saw before. In any case,
> I sent a current/desired.

Thanks! The implementation (on top of the patch here) looks trivial, the 
question is whether to add an option, or just change the behavior and 
treat it like a "fix". Let's continue there after closing this one.

> Unrelated, but I'm excited about the prospect of a treesit mode for Ruby.

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.
[ruby-endless-methods.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 12:41:02 GMT) Full text and rfc822 format available.

Message #23 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 54702 <at> debbugs.gnu.org, Aaron Jensen <aaronjensen <at> gmail.com>
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 14:40:24 +0200
Hi Eli,

On 16/12/2022 14:31, Dmitry Gutov wrote:

> See the attached updated patch.

What do you think about installing this on emacs-29?

I want to treat this like a bugfix. It's fixing the lack of support for 
a language feature that came out 2 years ago, but is apparently growing 
in popularity now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 13:13:01 GMT) Full text and rfc822 format available.

Message #26 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 14:50:01 GMT) Full text and rfc822 format available.

Message #29 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 54702 <at> debbugs.gnu.org, aaronjensen <at> gmail.com
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 16:49:37 +0200
> Date: Fri, 16 Dec 2022 14:40:24 +0200
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Cc: 54702 <at> debbugs.gnu.org, Aaron Jensen <aaronjensen <at> gmail.com>
> 
> Hi Eli,
> 
> On 16/12/2022 14:31, Dmitry Gutov wrote:
> 
> > See the attached updated patch.
> 
> What do you think about installing this on emacs-29?
> 
> I want to treat this like a bugfix. It's fixing the lack of support for 
> a language feature that came out 2 years ago, but is apparently growing 
> in popularity now.

If you think this is safe enough, it's fine with me.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 16:16:02 GMT) Full text and rfc822 format available.

Message #32 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 18:15:36 +0200
[Message part 1 (text/plain, inline)]
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.
[ruby-endless-methods-v2.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 16:25:01 GMT) Full text and rfc822 format available.

Message #35 received at 54702 <at> debbugs.gnu.org (full text, mbox):

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Fri, 16 Dec 2022 17:50:02 GMT) Full text and rfc822 format available.

Message #38 received at 54702 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 54702 <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 19:49:35 +0200
On 16/12/2022 18:24, Aaron Jensen wrote:

>> 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,

I suppose we might still want to care about a bunch of Emacs users who 
got used to this indentation over the years. :/

> and my guess is
> that it was influenced by Lisp rather than being influenced by Ruby
> and its community.

You could say that.

Not really influenced, though, it just works that way by accident due to 
the structural indentation algorithm.

There are other Lispy examples which seem to provide their value:

  foo = 3 + 4 *
            5

or this example, which is influenced by a lot of early Ruby code 
examples, yet is not supported by a lot of editors these days:

  qux :+,
      bar,
      :[]=,
      bar,
      :a





Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sun, 18 Dec 2022 12:07:01 GMT) Full text and rfc822 format available.

Notification sent to Aaron Jensen <aaronjensen <at> gmail.com>:
bug acknowledged by developer. (Sun, 18 Dec 2022 12:07:01 GMT) Full text and rfc822 format available.

Message #43 received at 54702-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 54702-done <at> debbugs.gnu.org, aaronjensen <at> gmail.com
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Sun, 18 Dec 2022 14:06:48 +0200
Version: 29.1

On 16/12/2022 16:49, Eli Zaretskii wrote:
>> Date: Fri, 16 Dec 2022 14:40:24 +0200
>> From: Dmitry Gutov <dgutov <at> yandex.ru>
>> Cc: 54702 <at> debbugs.gnu.org, Aaron Jensen <aaronjensen <at> gmail.com>
>>
>> Hi Eli,
>>
>> On 16/12/2022 14:31, Dmitry Gutov wrote:
>>
>>> See the attached updated patch.
>>
>> What do you think about installing this on emacs-29?
>>
>> I want to treat this like a bugfix. It's fixing the lack of support for
>> a language feature that came out 2 years ago, but is apparently growing
>> in popularity now.
> 
> If you think this is safe enough, it's fine with me.

Thank you.

After some testing, I went with the v2 patch, further simplified.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#54702; Package emacs. (Sun, 18 Dec 2022 15:43:02 GMT) Full text and rfc822 format available.

Message #46 received at 54702-done <at> debbugs.gnu.org (full text, mbox):

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 54702-done <at> debbugs.gnu.org
Subject: Re: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Sun, 18 Dec 2022 10:42:24 -0500
On Sun, Dec 18, 2022 at 7:06 AM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> Thank you.
>
> After some testing, I went with the v2 patch, further simplified.

Thank you.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Jan 2023 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.