From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#60321: 29.0.60; ruby-mode indentation of hash or array as first arg in multiline method call Date: Mon, 2 Sep 2024 04:10:05 +0300 Message-ID: <2345189c-0033-4357-841c-1a6c7bc51a3c@yandex.ru> References: <902440c7-706a-20e1-55af-4e12e8cdda2c@yandex.ru> <1191195d-1528-dc2a-64e0-15426e4b5608@yandex.ru> <75342f40-d576-e1c6-3d63-692b80e78bfe@yandex.ru> <90f8ce9c-4a60-4af9-8ed7-eeddff557129@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 60321@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 02 03:26:29 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1skvps-00066W-3G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Sep 2024 03:26:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skvpb-0008Em-A1; Sun, 01 Sep 2024 21:26:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skvpW-0008EN-Mg for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2024 21:26:08 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skvpS-0002tj-73 for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2024 21:26:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=pF6ekC/RmOA5lOBKBty2QLBb/LIGaEMRPnxWNobtRgY=; b=I5QvV8fSTBYQgFpTRAwh/j81+xdffGgdwA8BE3NgcY38bXpCpRT0qTbj02019j/osfzetSxUEfR2149RHyAVdN6fhge1irwcriMwZzJSehV0CSzbMiGyWmHv+KGjBkkGUx9LUgS8XZdZ9fWXRC77MkfYAjChqdrKiiaHuy9vRdsLWeuEuxSSCtcArOmgIijoAcpxcN2hJU5ZuyZo0fsXxftzb0pDnFGcuvU3X56dB0IJ4cKInCbtXb37jusZkAjMHKfSGTteYGguXBXUqyhESpg5nBdXO/RKvTsf2iBeztSIHOEsamfWP1NbrgjTHV8bh48no4lwecTdEhgbvgYNWA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skvqQ-0002E5-6M for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2024 21:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2024 01:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60321 X-GNU-PR-Package: emacs Original-Received: via spool by 60321-submit@debbugs.gnu.org id=B60321.17252404158528 (code B ref 60321); Mon, 02 Sep 2024 01:27:02 +0000 Original-Received: (at 60321) by debbugs.gnu.org; 2 Sep 2024 01:26:55 +0000 Original-Received: from localhost ([127.0.0.1]:41361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skvqI-0002DT-U0 for submit@debbugs.gnu.org; Sun, 01 Sep 2024 21:26:55 -0400 Original-Received: from forward500d.mail.yandex.net ([178.154.239.208]:51804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skvqF-0002DG-Ew for 60321@debbugs.gnu.org; Sun, 01 Sep 2024 21:26:53 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:e80:0:640:5426:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id D019660C67; Mon, 2 Sep 2024 04:10:10 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 8AORxg17LqM0-Jc6el04x; Mon, 02 Sep 2024 04:10:10 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1725239410; bh=pF6ekC/RmOA5lOBKBty2QLBb/LIGaEMRPnxWNobtRgY=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=OqvYDyn9I5rpU+nBf6LjCcMrIHjB/IZ5yIJg22gAN9W58MIHtZ2thv10J82yL4r1U 20z6JC7pL5xDt7Jn5nuMN/zoFhM3/W2ls5IX0ZlrZi0fV0GySYDuszci73ifpao/Iu F6IQQi5W6/Qs8vu9pMbFgAtcP3JZop+F2Lg1OUuY= Authentication-Results: mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfauth.nyi.internal (Postfix) with ESMTP id E618B1200070; Sun, 1 Sep 2024 21:10:07 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sun, 01 Sep 2024 21:10:07 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudegledggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrd hruheqnecuggftrfgrthhtvghrnhepiefhjeeuveetffffvdefteffffekhfeuudejieeh heeiudelgfehgffffeduffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhi thihqddufeeffeelleehhedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvg igrdhruhesfhgrshhtmhgrihhlrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgep shhmthhpohhuthdprhgtphhtthhopegrrghrohhnjhgvnhhsvghnsehgmhgrihhlrdgtoh hmpdhrtghpthhtohepiedtfedvudesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Sep 2024 21:10:06 -0400 (EDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291079 Archived-At: On 02/09/2024 03:49, Aaron Jensen wrote: >> Here's a bonus example which looks off but would be more difficult to >> fix (and it's not urgent, given the expression is in mixed styles): >> >> foo([{ >> a: 2 >> }, >> { >> b: 3 >> }, >> 4 >> ]) > > Yes, that's connected to the case I mentioned... how do you think it > should be indented? I wonder if it should just be 2 spaces in (rather > than aligned with the opening bracket) It seems to me that anything other than 0 spaces would look inconsistent with the first element (the hash), and its closing brace in particular. Anyway, it's not urgent and like you said in the first message, people formatting code this way might have other unusual requirements as well. >> * Support for the new option in ruby-ts-mode (it's good to have parity). >> Could you take the attached patch for a spin? Seems to work here, but >> I'd like to have an extra confirmation. > > I don't have the treesitter stuff installed at the moment, will try > this out shortly. Thanks in advance.