unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 60110@debbugs.gnu.org
Subject: bug#60110: 29.0.60; ruby-mode method parameter alignment
Date: Sun, 18 Dec 2022 17:53:25 -0500	[thread overview]
Message-ID: <CAHyO48wd-4ij1gob_PTasbhKymxq70qThnDmJdw=W9fgP4kxog@mail.gmail.com> (raw)
In-Reply-To: <b64f1ae3-16ad-407a-d543-5e02f4458ceb@yandex.ru>

On Sun, Dec 18, 2022 at 5:32 PM Dmitry Gutov <dgutov@yandex.ru> wrote:
>
> I'm assuming the difference in indentation between these posted cases is
> just an email/bug tracker bug. If they are sometimes different, please
> let me know. That would be another bug.

I think so, yeah.

>
> > I would prefer to be able to indent them like this:
> >
> > def some_method(
> >    some_arg,
> >    some_other_arg
> > )
> > end
> >
> > def self.some_method(
> >    some_arg,
> >    some_other_arg
> > )
> > end
>
> See the attached patch. (setq ruby-method-params-indent 0) should do it.

Works for me.

Next question is... is there an existing setting to change the
indentation of expressions like:

x = [3,4].
      map { |x| x * 2 }

Like everything else, I just want a 2 space indent, no alignment,
nothing clever:

x = [3,4].
  map { |x| x * 2 }

I can open another issue for this if there's no existing option and
you'd like me to.

Thanks,

Aaron





  reply	other threads:[~2022-12-18 22:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16  5:04 bug#60110: 29.0.60; ruby-mode method parameter alignment Aaron Jensen
2022-12-18 22:32 ` Dmitry Gutov
2022-12-18 22:53   ` Aaron Jensen [this message]
2022-12-19  1:00     ` Dmitry Gutov
2022-12-19  2:58       ` Aaron Jensen
2022-12-19 19:09         ` Dmitry Gutov
2022-12-19  0:48   ` Dmitry Gutov
2022-12-19 12:12     ` Eli Zaretskii
2022-12-19 19:14       ` Dmitry Gutov
2022-12-19 19:30         ` Eli Zaretskii
2022-12-19 20:08           ` Dmitry Gutov
2022-12-20  0:17             ` Andy Moreton
2022-12-20  1:13               ` 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='CAHyO48wd-4ij1gob_PTasbhKymxq70qThnDmJdw=W9fgP4kxog@mail.gmail.com' \
    --to=aaronjensen@gmail.com \
    --cc=60110@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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).