From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov 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: Fri, 20 Dec 2013 07:21:42 +0200 Message-ID: <52B3D3E6.8060409@yandex.ru> References: <874n66byoo.fsf@yandex.ru> <52B11F12.4070109@yandex.ru> <490C2BFA3C624DB6AB057CD2AA393D9C@gmail.com> <87txe5v4ol.fsf@yandex.ru> <1E72CA8B046B46A6B320EBB9A71FF8CA@gmail.com> <395424D4599947EBA14047DBA9440BB1@gmail.com> <52B329C1.9050602@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1387517262 19134 80.91.229.3 (20 Dec 2013 05:27:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Dec 2013 05:27:42 +0000 (UTC) Cc: Steve Purcell , 16182@debbugs.gnu.org, Adam Doppelt , Adam Sokolnicki To: Bozhidar Batsov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 20 06:27:48 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 1Vtscl-0007Hk-AT for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 06:27:47 +0100 Original-Received: from localhost ([::1]:47840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtsck-0000e8-Sr for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 00:27:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtsXI-0008UU-Be for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 00:22:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtsXC-0007ZV-5g for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 00:22:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtsXC-0007ZQ-2I for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 00:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VtsXB-0001lh-Ni for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 00:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2013 05:22: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.13875169116777 (code B ref 16182); Fri, 20 Dec 2013 05:22:01 +0000 Original-Received: (at 16182) by debbugs.gnu.org; 20 Dec 2013 05:21:51 +0000 Original-Received: from localhost ([127.0.0.1]:59314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtsX0-0001lE-Ed for submit@debbugs.gnu.org; Fri, 20 Dec 2013 00:21:50 -0500 Original-Received: from mail-ea0-f171.google.com ([209.85.215.171]:32785) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtsWx-0001l4-VN for 16182@debbugs.gnu.org; Fri, 20 Dec 2013 00:21:48 -0500 Original-Received: by mail-ea0-f171.google.com with SMTP id h10so813465eak.2 for <16182@debbugs.gnu.org>; Thu, 19 Dec 2013 21:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=iJZz/l/ro90lnEz1OyyrVGjpbjexlML4THzbyVfCSyU=; b=nrBqLjaLMjhRyjtqf9UIPTa+FTXnaUm+EPHhZdoO1fHCf8sYpwpG9v4j4jCHpIZnNQ AwM4lQ0CX0UUDZVO3HtWCyPC2JK2bUdyp7L3RXdoIzAKchBWfefSXZ1O0X0PnvnVf+Ys j/VskPGwylXdVaRZseG9xnaujHDMXygTbrgVD1Qd+mwRDt/djtALtbXfFh5SfaYXUnjc Z96ymQc95RTbOkYnzzF47oS0I0eXlIthFOtQ4oJaLH2iju94/rcvIfShyJv3xOZJw74s sZYylSos58HI1sQ438PtPVeQq+6mboavnOOl7SBloGqjRSaWIWNcM3IGvlRybujh/Wj4 xqXA== X-Received: by 10.14.246.202 with SMTP id q50mr562227eer.58.1387516906903; Thu, 19 Dec 2013 21:21:46 -0800 (PST) Original-Received: from [192.168.10.2] (93-2-98.netrun.cytanet.com.cy. [93.109.2.98]) by mx.google.com with ESMTPSA id 44sm15250001eek.5.2013.12.19.21.21.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 21:21:45 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: 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:82258 Archived-At: On 19.12.2013 22:33, Bozhidar Batsov wrote: > Part of the reason people are not using a particular style from time to > time is simply lack of tool support. :-) I guess more people would have > used that style if their editor supported it. Maybe so. I'll have to return to the "do" block later, since this kind of special handling requires finding the beginning of the method chain (in the general case) that the block is passed to. Other keywords are simpler. > Well, even though I develop Rails apps for a living I wouldn’t say the > style used in the Rails codebase should be considered some gold standard > - after all they are outdenting “private/protected” there :-) Yuck indeed. :) > That said > - before I started using programming Ruby in Emacs I aligned to the > beginning of the statement, but I stopped because this wasn’t supported > in ruby-mode. After using the alignment to keyword style for several > years I’ve grown to like it a lot (and it seems others are enjoying it > as well > http://stackoverflow.com/questions/2925028/how-do-you-assign-a-variable-with-the-result-of-a-if-else-block). > I’m perfectly fine with alignment to statement becoming the default > (although the change of this default would be fairly visible/disruptive, > since as it stands keyword alignment is the only supported style and I > guess most Rubyists using Emacs employ it). Well, since there's not much support for changing the defaults, I've reverted the special handling of "begin" that already made its way in, and added a user option that would control all applicable keywords: `ruby-align-to-stmt-keywords', in revision 115624. Everyone, please try how it works for you, maybe comment on the name, etc. The feature freeze is in a couple of days, so we have to get the basics right.