all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bozhidar Batsov <bozhidar.batsov@gmail.com>
To: 15594@debbugs.gnu.org
Subject: bug#15594: 24.3; Indentation of method arguments without parentheses in ruby-mode is broken
Date: Sat, 12 Oct 2013 09:24:49 +0300	[thread overview]
Message-ID: <755585C36CA244F598A91F3A4C76E258@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1618 bytes --]

             reply	other threads:[~2013-10-12  6:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-12  6:24 Bozhidar Batsov [this message]
2013-10-12 14:37 ` bug#15594: 24.3; Indentation of method arguments without parentheses in ruby-mode is broken Stefan Monnier
2013-10-12 14:44   ` Bozhidar Batsov
2013-10-12 20:41     ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=755585C36CA244F598A91F3A4C76E258@gmail.com \
    --to=bozhidar.batsov@gmail.com \
    --cc=15594@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.