GNU bug report logs - #16118
24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Thu, 12 Dec 2013 05:50:01 UTC

Severity: normal

Found in version 24.3.50

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16118 in the body.
You can then email your comments to 16118 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16118; Package emacs. (Thu, 12 Dec 2013 05:50:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 12 Dec 2013 05:50:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50;
 ruby-smie-rules: hanging literal in first method call argument is
 indented 1 column too few
Date: Thu, 12 Dec 2013 07:48:41 +0200
We have this example in indent/ruby.rb:

foo({
     a: b,
     c: d
   })

- The curlies don't line up.
- If I expand this example, the hash literal in the first argument
  doesn't line up with the arguments after it:

foo({
     a: b,
     c: d
   },
    {
      e: f
    })

foo({
     a: b,
     c: d
   }, :bar => {
      e: f
    })

foo(:bar =>
    {
      a: b,
      c: d
    }, :tee =>
       {
      e: f
    })

...but:

foo({
     a: b,
     c: d
   }, {
     e: f
   })

Still, I think the literals should be lined up to the first column after
"(", not the column of "(" itself. How can we do that?

Adding a `(1+ )' in the relevant place in `ruby-smie-rules' is an
obvious solution, but it breaks other examples.


In GNU Emacs 24.3.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
 of 2013-12-09 on axl
Bzr revision: 115440 dmantipov <at> yandex.ru-20131209163052-oess75ps2o5tt61q
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:     Ubuntu 13.10




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sat, 14 Dec 2013 06:50:04 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Gutov <dgutov <at> yandex.ru>:
bug acknowledged by developer. (Sat, 14 Dec 2013 06:50:07 GMT) Full text and rfc822 format available.

Message #10 received at 16118-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: 16118-done <at> debbugs.gnu.org
Subject: Re: bug#16118: Acknowledgement (24.3.50; ruby-smie-rules: hanging
 literal in first method call argument is indented 1 column too few)
Date: Sat, 14 Dec 2013 08:49:46 +0200
Version: 24.4

Revision 115514.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 11 Jan 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 128 days ago.

Previous Next


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