GNU bug report logs - #60110
29.0.60; ruby-mode method parameter alignment

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Fri, 16 Dec 2022 05:05:01 UTC

Severity: normal

Found in version 29.0.60

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: Dmitry Gutov <dgutov <at> yandex.ru>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 60110 <at> debbugs.gnu.org
Subject: bug#60110: 29.0.60; ruby-mode method parameter alignment
Date: Mon, 19 Dec 2022 03:00:21 +0200
On 19/12/2022 00:53, Aaron Jensen wrote:

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

Yes, please.

That's going to be more difficult, though, since this part stems from 
the default SMIE indentation behavior.

It will help to be specific: whether you are concerned about this 
behavior for assignments only (and probably for operators like +=, /=, 
&=, etc), or whether there are other tokens/keywords like that.

Or whether adding an option for = and friends will get us 99% there, maybe.




This bug report was last modified 2 years and 149 days ago.

Previous Next


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