GNU bug report logs - #16996
24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments

Previous Next

Package: emacs;

Reported by: Bozhidar Batsov <bozhidar <at> batsov.com>

Date: Wed, 12 Mar 2014 10:55:02 UTC

Severity: minor

Found in version 24.3.50

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 16996 <at> debbugs.gnu.org, Bozhidar Batsov <bozhidar <at> batsov.com>
Subject: Re: bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for
 implicit hash arguments
Date: Sat, 29 May 2021 10:55:02 +0200
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> Bozhidar Batsov <bozhidar <at> batsov.com> writes:
>
>> top(1, :a => 1,
>>     :b => 2)
>>
>> top(1, :a => 1,
>>        :b => 2)
>
> This looks like something that would be pretty gnarly to implement. I'm
> not sure if we want to. Here's another example:
>
> top(1, {
>       :a => 1,
>       :b => 2
>     })
>
> If we remove the braces, would you still indent :a and :b like if the
> braces were present?

The current indentation in Ruby here seems pretty natural to me, so I'm
closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 331 days ago.

Previous Next


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