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#16118: 24.3.50; ruby-smie-rules: hanging literal in first method call argument is indented 1 column too few Date: Thu, 12 Dec 2013 07:48:41 +0200 Message-ID: <877gbaipqe.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386827412 20761 80.91.229.3 (12 Dec 2013 05:50:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2013 05:50:12 +0000 (UTC) To: 16118@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 12 06:50:17 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 1VqzA9-0003R9-FU for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 06:50:17 +0100 Original-Received: from localhost ([::1]:33524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqzA9-0006nd-4b for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 00:50:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqzA0-0006lS-A4 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:50:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqz9u-0001hb-GF for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:50:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz9u-0001gl-Bw for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vqz9t-0007f5-TJ for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00: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, 12 Dec 2013 05:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16118 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.138682735229376 (code B ref -1); Thu, 12 Dec 2013 05:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Dec 2013 05:49:12 +0000 Original-Received: from localhost ([127.0.0.1]:44601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqz95-0007dj-8b for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44859) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqz93-0007da-43 for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqz8w-0001WL-VK for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:08 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8w-0001WH-SI for submit@debbugs.gnu.org; Thu, 12 Dec 2013 00:49:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8q-0006HL-Sr for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:49:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqz8l-0001Va-0Y for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:48:56 -0500 Original-Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:33740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqz8k-0001VW-Ms for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 00:48:50 -0500 Original-Received: by mail-ea0-f170.google.com with SMTP id k10so3290522eaj.15 for ; Wed, 11 Dec 2013 21:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=Lbtocjj9nTE7iMM9/O36DlExg4GZ5qa3LHTuxXpke6A=; b=kRaqjh6uL1rOgQMlhjQwImQFvoD+JSBbrVnsFJOe7+St3F5q6wyFRVGjqarpZmqq7i 7XKgr6O9kKHzZn5ApQixJGQa7DX0Iw/e49kN7/Pca+mCxrnn25ZX9yaIqLY9Wo4zjB+N 7xxR0lQbFFBzm9VDsoeJcs687UA7ji3XqRB4bwVGnSNSHXuBL6iFVaZDVi3FfDWDaN/s FukOohRpnvLU5cUVKs6O7z9KFrtp3goUxcPOtNXJE6TO5Sr5nA/Xa+LlP2V2zni31uCa Vmv02i/os0Wq67X5AAfA0/GOi5QDgH4/KVIxhQJoZeBMcqiYuVKwblBRHDzi1pA9Km10 JK2A== X-Received: by 10.14.211.130 with SMTP id w2mr5413049eeo.111.1386827329415; Wed, 11 Dec 2013 21:48:49 -0800 (PST) Original-Received: from axl (213-241-09.netrun.cytanet.com.cy. [213.7.241.9]) by mx.google.com with ESMTPSA id e43sm61615781eep.7.2013.12.11.21.48.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 11 Dec 2013 21:48:48 -0800 (PST) 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:81801 Archived-At: We have this example in indent/ruby.rb: foo({ a: b, c: d }) - The curlies don't line up. - If I expand this example, the hash literal in the first argument doesn't line up with the arguments after it: foo({ a: b, c: d }, { e: f }) foo({ a: b, c: d }, :bar => { e: f }) foo(:bar => { a: b, c: d }, :tee => { e: f }) ...but: foo({ a: b, c: d }, { e: f }) Still, I think the literals should be lined up to the first column after "(", not the column of "(" itself. How can we do that? Adding a `(1+ )' in the relevant place in `ruby-smie-rules' is an obvious solution, but it breaks other examples. In GNU Emacs 24.3.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6) of 2013-12-09 on axl Bzr revision: 115440 dmantipov@yandex.ru-20131209163052-oess75ps2o5tt61q Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: Ubuntu 13.10