all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 54702@debbugs.gnu.org
Subject: bug#54702: 29.0.50; ruby-mode indentation: endless methods
Date: Fri, 16 Dec 2022 19:49:35 +0200	[thread overview]
Message-ID: <bbae8839-b0a3-7e4d-66f8-76193bdfdd13@yandex.ru> (raw)
In-Reply-To: <CAHyO48wJqJf8T7ZWS_55Tmtic09T_JjtSEsG660=i_vu2LXZOg@mail.gmail.com>

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	other threads:[~2022-12-16 17:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04  2:03 bug#54702: 29.0.50; ruby-mode indentation: endless methods Aaron Jensen
2022-04-27  2:44 ` Dmitry Gutov
2022-04-27 23:58   ` Aaron Jensen
2022-12-16  0:33     ` Dmitry Gutov
2022-12-16  5:07       ` Aaron Jensen
2022-12-16 12:31         ` Dmitry Gutov
2022-12-16 12:40           ` Dmitry Gutov
2022-12-16 14:49             ` Eli Zaretskii
2022-12-18 12:06               ` Dmitry Gutov
2022-12-18 15:42                 ` Aaron Jensen
2022-12-16 13:12           ` Aaron Jensen
2022-12-16 16:15             ` Dmitry Gutov
2022-12-16 16:24               ` Aaron Jensen
2022-12-16 17:49                 ` Dmitry Gutov [this message]

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=bbae8839-b0a3-7e4d-66f8-76193bdfdd13@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=54702@debbugs.gnu.org \
    --cc=aaronjensen@gmail.com \
    /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.