GNU bug report logs - #15594
24.3; Indentation of method arguments without parentheses in ruby-mode is broken

Previous Next

Package: emacs;

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

Date: Sat, 12 Oct 2013 06:26:02 UTC

Severity: normal

Found in version 24.3

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15594: closed (24.3; Indentation of method arguments without
 parentheses in ruby-mode is broken)
Date: Mon, 14 Oct 2013 18:58:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 12 Oct 2013 16:41:26 -0400
with message-id <jwviox2p6hz.fsf-monnier+emacsbugs <at> gnu.org>
and subject line Re: bug#15594: 24.3; Indentation of method arguments without parentheses in ruby-mode is broken
has caused the debbugs.gnu.org bug report #15594,
regarding 24.3; Indentation of method arguments without parentheses in ruby-mode is broken
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
15594: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15594
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Indentation of method arguments without parentheses in
 ruby-mode is broken
Date: Sat, 12 Oct 2013 09:24:49 +0300
[Message part 3 (text/plain, inline)]
In Ruby one can invoke methods with or without parentheses:

some_method(arg1, arg2)
some_method arg1, arg2

ruby-mode currently does not handle properly the indentation of calls without parentheses that span several lines:

# indented properly in 24.3
some_method(arg1,
                     arg2)

# not indented at all in 24.3
some_method arg1,
arg2

Ideally the second code example would be indented by ruby-mode like this:

some_method arg1,
                     arg2

-- 
Cheers,
Bozhidar

[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Cc: 15594-done <at> debbugs.gnu.org
Subject: Re: bug#15594: 24.3;
 Indentation of method arguments without parentheses in ruby-mode is
 broken
Date: Sat, 12 Oct 2013 16:41:26 -0400
>> > In Ruby one can invoke methods with or without parentheses:
>> > some_method(arg1, arg2)
>> > some_method arg1, arg2

I just added some support for it, thank you,


        Stefan


This bug report was last modified 11 years and 208 days ago.

Previous Next


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