From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.bugs 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 Message-ID: <755585C36CA244F598A91F3A4C76E258@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5258eb31_520eedd1_30e" X-Trace: ger.gmane.org 1381559187 15104 80.91.229.3 (12 Oct 2013 06:26:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Oct 2013 06:26:27 +0000 (UTC) To: 15594@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 12 08:26:27 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUseg-0001FF-VE for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2013 08:26:27 +0200 Original-Received: from localhost ([::1]:57149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUseg-00025Z-IU for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2013 02:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUseW-00025F-5C for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:26:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUseN-0005RD-Jc for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:26:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUseN-0005R9-ER for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:26:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VUseL-0006Em-TA for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:26:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2013 06:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138155912823930 (code B ref -1); Sat, 12 Oct 2013 06:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2013 06:25:28 +0000 Original-Received: from localhost ([127.0.0.1]:43940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUsdh-0006Dq-1I for submit@debbugs.gnu.org; Sat, 12 Oct 2013 02:25:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34995) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VUsdb-0006Dc-7a for submit@debbugs.gnu.org; Sat, 12 Oct 2013 02:25:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUsdS-00050k-Ko for submit@debbugs.gnu.org; Sat, 12 Oct 2013 02:25:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUsdS-00050g-Hc for submit@debbugs.gnu.org; Sat, 12 Oct 2013 02:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUsdJ-0001vc-VK for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:25:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUsdB-0004j3-I7 for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:25:01 -0400 Original-Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:63617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUsdB-0004is-Au for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2013 02:24:53 -0400 Original-Received: by mail-ee0-f52.google.com with SMTP id c41so2310300eek.11 for ; Fri, 11 Oct 2013 23:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type; bh=L13XekaX7o/cz9ptCxBxoNi770IbjlVlJ6vYlxI6Zqc=; b=gOVrZWiaPfq8tYB20dEj4aIaDnrABIfFjqcdyrTt4rTqWK6FlkfOH7OXvODZo9XohX dxc9J0CJu/Ma8OYoWmQ0C08OiRlbw0sLbZ/9U/jUBn8REOooy0BVCTvlZpRBs3sz6o9J z72x+PsMuHQ9kBFHj5H5Hn5azYgMKqTi9bGUSJXgnRUOlMVdklnewldWkDrjDw5wTxK5 gAhsbAj4wMp/tCPJlCbkcQu/f8VUSZT6xVaTrj3HaC+dQEG1rfk0mq7PXeFwy/9YEZgz +vKlNkrd62AjO8/c4/x5txCxYuUBhh7RWtQ9b8BarzExqdKyxNYxowJbFWwVf7x407RW h6ag== X-Received: by 10.15.101.137 with SMTP id bp9mr912177eeb.53.1381559092403; Fri, 11 Oct 2013 23:24:52 -0700 (PDT) Original-Received: from [10.0.1.4] (93-152-182-45.ddns.onlinedirect.bg. [93.152.182.45]) by mx.google.com with ESMTPSA id h45sm123626540eeg.5.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 11 Oct 2013 23:24:51 -0700 (PDT) X-Mailer: sparrow 1.6.4 (build 1178) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79205 Archived-At: --5258eb31_520eedd1_30e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: 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 --5258eb31_520eedd1_30e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
In Ruby one can = invoke methods with or without parentheses:

= some=5Fmethod(arg1, arg2)
some=5Fmethod arg1, arg2

ruby-mode currentl= y does not handle properly the indentation of calls without parentheses t= hat span several lines:

=23 indented = properly in 24.3
some=5F= method(arg1,
  &nbs= p;                  arg2)

=23 not indented at all in 24.3
<= div>some=5Fmethod arg1,
= arg2

Ideall= y the second code example would be indented by ruby-mode like this:

some=5Fmethod arg1,
               = ;      arg2

-- 
Cheers,
Bozhidar=

--5258eb31_520eedd1_30e--