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: Date: Thu, 19 Dec 2013 06:48:55 +0200 Message-ID: <87r499v420.fsf@yandex.ru> References: <874n66byoo.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387428619 8595 80.91.229.3 (19 Dec 2013 04:50:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2013 04:50:19 +0000 (UTC) Cc: 16182@debbugs.gnu.org To: Adam Sokolnicki Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 19 05:50:24 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 1VtVZ1-0007zB-O8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Dec 2013 05:50:23 +0100 Original-Received: from localhost ([::1]:42037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtVZ1-0000LA-D9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 23:50:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtVYr-0000Ku-U9 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 23:50:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtVYh-0004SQ-9Y for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 23:50:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtVYh-0004Ri-3v for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 23:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VtVYg-0004Ec-Pt for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 23:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2013 04:50:02 +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.138742854316185 (code B ref 16182); Thu, 19 Dec 2013 04:50:02 +0000 Original-Received: (at 16182) by debbugs.gnu.org; 19 Dec 2013 04:49:03 +0000 Original-Received: from localhost ([127.0.0.1]:58078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtVXi-0004Cy-Ri for submit@debbugs.gnu.org; Wed, 18 Dec 2013 23:49:03 -0500 Original-Received: from mail-ea0-f179.google.com ([209.85.215.179]:56669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtVXg-0004CW-3n for 16182@debbugs.gnu.org; Wed, 18 Dec 2013 23:49:00 -0500 Original-Received: by mail-ea0-f179.google.com with SMTP id r15so212622ead.10 for <16182@debbugs.gnu.org>; Wed, 18 Dec 2013 20:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=12eQH7DxInhifX487hdd3tg3ctmuxvmfrK8GBug62KM=; b=YXxumKyAJmWVUp5u3JNURbc00UQeJgKs++uxMZ+EtVc1s7I/gfzq36OnNK9+s3ACNO p3xQ1mu5F7PMzUDXxWFsNSUn0SxH8xyt93IUDlOiuDyG14iV5PQf/f4eoh3tXk6E4T/A AJAPV6E9nxyB5EKY2xC7feE79ixzYGqyYPpmBa0JLsy90wXNBJaN4DbxyxG5tirbTmcS V7d2GVgnjD0JO3mZgWCcN7rayPSeSJjLM6K+2+YhZB816QTbjWiDmLaH0+pd/lpecLOH z46Vr8V6WRbrUGpGHgLQvhuf86TkHgfLV9SFcslBgpH3PiS+ov9zTT0tqQUgUAfu50H7 AWJA== X-Received: by 10.15.82.8 with SMTP id z8mr33339213eey.25.1387428539336; Wed, 18 Dec 2013 20:48:59 -0800 (PST) Original-Received: from axl (93-2-98.netrun.cytanet.com.cy. [93.109.2.98]) by mx.google.com with ESMTPSA id a45sm5875196eem.6.2013.12.18.20.48.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 20:48:58 -0800 (PST) In-Reply-To: (Adam Sokolnicki's message of "Wed, 18 Dec 2013 18:57:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:82206 Archived-At: Adam Sokolnicki writes: > Personally I like the alignment to the beginning of the statement > rather to the open paren. Let's count this as +1. > When I'm breaking line on argument list it's > because the line is too long. With indentation to the opened paren the > line stays long despite breaking the line. Like Stefan suggests, if the opened paren is immediately followed by a newline, the arguments will be indented less (but still indented by additional two columns, compared to the beginning of the statement). > I think this is how vim indents ruby code by default. If that's true, could you point to: * Some other open source project or two using this style. * Some tutorial or step-by-step instruction for me to test this indentation in Vim. Do I need to install anything apart from the base distribution? Suppose I have the snippet of code typed out. What do I press next? > I you ask me emacs can only support the indentation to the beginning > of the statement. I don't think it's sufficient, by itself. Take this example: current_user.statuses.find(params[:id]).update({ user: current_user, text: params[:status] }) Suppose `update' accepted a second argument, and we wanted to pass it here, on the next line after the hash. Which column would it be indented to? 0?