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#16182: Acknowledgement (24.3.50; ruby-mode: Indentation style of multiline literals with hanging open paren inside other parens) Date: Wed, 18 Dec 2013 12:31:51 +0200 Message-ID: <490C2BFA3C624DB6AB057CD2AA393D9C@gmail.com> References: <874n66byoo.fsf@yandex.ru> <52B11F12.4070109@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="52b17997_25a70bf7_1c26" X-Trace: ger.gmane.org 1387362732 29037 80.91.229.3 (18 Dec 2013 10:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2013 10:32:12 +0000 (UTC) Cc: Steve Purcell , 16182@debbugs.gnu.org, Adam Sokolnicki To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 11:32:18 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 1VtEQL-0001Gk-W1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 11:32:18 +0100 Original-Received: from localhost ([::1]:38020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEQL-000891-K0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 05:32:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEQC-00088m-92 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:32:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtEQ6-0002ou-Dq for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:32:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEQ6-0002on-Ae for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VtEQ5-0005km-SF for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2013 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16182-submit@debbugs.gnu.org id=B16182.138736271822105 (code B ref 16182); Wed, 18 Dec 2013 10:32:01 +0000 Original-Received: (at 16182) by debbugs.gnu.org; 18 Dec 2013 10:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:56601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtEQ2-0005kS-3n for submit@debbugs.gnu.org; Wed, 18 Dec 2013 05:31:58 -0500 Original-Received: from mail-ee0-f51.google.com ([74.125.83.51]:44218) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtEPz-0005kG-Im for 16182@debbugs.gnu.org; Wed, 18 Dec 2013 05:31:56 -0500 Original-Received: by mail-ee0-f51.google.com with SMTP id b15so3442799eek.38 for <16182@debbugs.gnu.org>; Wed, 18 Dec 2013 02:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=U0ssV/C2P1YZZ2OhILpT18IUH8LwEAK7KZ2qfSTpnuU=; b=d+vLU1SDh+RT2jwfBODZ9kdhCiwucs/hwGTze15yOrHDvMJ5WaWbi1uAFN9aWNHRin /rwYP677BCuSMslXGZmUyGlHHoUFE1x63nKRJgzRuMABOAqkDnaXlaT5Tel7ZSE/Aubd X90BBOqwVmJ1ryNmiy/U1KDLydsxasFa+fscbXGhHRH8f5m0SlPQ2vkb7a17QArudFNy CG1AsgKT8/4KNsKRVimrEoIE5Wv0b9n+AWqHcaQNBT3WsR3wWFc0MIg2RmRh4hCYWASv SHxRSZa2jf27/K/0eBLdqCb9gG8plVo4MA7kfPnFax24h+Q8pJMML+EXIuUC8po8W4WJ iZPA== X-Received: by 10.14.149.139 with SMTP id x11mr27626186eej.35.1387362714625; Wed, 18 Dec 2013 02:31:54 -0800 (PST) Original-Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id 4sm61178402eed.14.2013.12.18.02.31.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:31:53 -0800 (PST) In-Reply-To: <52B11F12.4070109@yandex.ru> X-Mailer: sparrow 1.6.4 (build 1178) 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:82180 Archived-At: --52b17997_25a70bf7_1c26 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Personally I dislike this style, because you=E2=80=99re basically it obsc= ures the semantics of the method arguments, but I acknowledge that I=E2=80= =99ve seen it the wild. =46or me it would be more beneficial if we suppor= ted a variant of the style: methods.each do =7Cmethod=7C route=5Fset.add=5Froute( self, =7B path=5Fin= fo: route.route=5Fcompiled, request=5Fmethod: method, =7D, route=5Finfo: = route ) end The current trunk indents this all wrong: methods.each do =7Cmethod=7C route=5Fset.add=5Froute( self, =7B path=5Fin= fo: route.route=5Fcompiled, request=5Fmethod: method, =7D, route=5Finfo: = route ) end =20 Something that=E2=80=99s not mentioned here, but it=E2=80=99s a bigger pr= oblem for the users is probably the fact that we don=E2=80=99t support th= e following indentation style: x =3D if something do=5Fsomething end Even if I don=E2=80=99t use and (and the majority of Ruby hackers A=46AIK= ) it=E2=80=99s still fairly popular. Currently this is the only supported= option (which is arguably the most popular): x =3D if something do=5Fsomething end -- =20 Cheers, Bozhidar On Wednesday, December 18, 2013 at 6:05 AM, Dmitry Gutov wrote: > http://debbugs.gnu.org/cgi/bugreport.cgi=3Fbug=3D16182 > =20 > Comments welcome. =20 --52b17997_25a70bf7_1c26 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Personally I dislike this style, because you=E2=80=99re basically= it obscures the semantics of the method arguments, but I acknowledge tha= t I=E2=80=99ve seen it the wild. =46or me it would be more beneficial if = we supported a variant of the style:

methods=
.each do =7Cmethod=7C
  route=5Fset.add=5Froute(
    self, =7B
      path=5Finfo: route.route=5Fcompiled,
      request=5Fmethod: method,
    =7D, route=5Finfo: route
  )
end
The current trunk indents this all wrong:
methods.each do =7Cmethod=7C
  route=5Fset.add=5Froute(
      self, =7B
        path=5Finfo: route.route=5Fcompiled,
        request=5Fmethod: method,
      =7D, route=5Finfo: route
    )
end
Something that=E2=80=99s not mentioned here, but it=E2=80= =99s a bigger problem for the users is probably the fact that we don=E2=80= =99t support the following indentation style:

x =3D if something
  do=5Fsomething
end
=

Even if I don=E2=80=99t use and (and the majori= ty of Ruby hackers A=46AIK) it=E2=80=99s still fairly popular. Currently = this is the only supported option (which is arguably the most popular):

x =3D if something
    &= nbsp; do=5Fsomething
    end

-- 
Cheers,
=
Bozhidar

=20

On Wednesday, December= 18, 2013 at 6:05 AM, Dmitry Gutov wrote:

=20 =20 =20 =20
=20

--52b17997_25a70bf7_1c26--