From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#54702: 29.0.50; ruby-mode indentation: endless methods Date: Fri, 16 Dec 2022 11:24:23 -0500 Message-ID: References: <2136fe2e-85dd-8a3f-dc7b-ee7a8389dc76@yandex.ru> <0178ae56-21d9-55e9-68f6-b2e8e2a483ff@yandex.ru> <0d8a9e9d-2c8f-6282-63da-e4af020fea8d@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22526"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54702@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 17:25:36 2022 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 1p6DWh-0005j5-Te for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 17:25:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6DWI-0003Ux-Il; Fri, 16 Dec 2022 11:25:10 -0500 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 1p6DWA-0003Oz-L6 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 11:25:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6DWA-0000Jp-Bo for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 11:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6DW9-0001Rf-MK for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 11:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2022 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54702 X-GNU-PR-Package: emacs Original-Received: via spool by 54702-submit@debbugs.gnu.org id=B54702.16712078855541 (code B ref 54702); Fri, 16 Dec 2022 16:25:01 +0000 Original-Received: (at 54702) by debbugs.gnu.org; 16 Dec 2022 16:24:45 +0000 Original-Received: from localhost ([127.0.0.1]:50278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6DVs-0001RJ-Jk for submit@debbugs.gnu.org; Fri, 16 Dec 2022 11:24:44 -0500 Original-Received: from mail-pj1-f46.google.com ([209.85.216.46]:51820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6DVp-0001RD-3v for 54702@debbugs.gnu.org; Fri, 16 Dec 2022 11:24:43 -0500 Original-Received: by mail-pj1-f46.google.com with SMTP id gt4so2994309pjb.1 for <54702@debbugs.gnu.org>; Fri, 16 Dec 2022 08:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FwDLgfm2tVhAdtDmkevrzvNo57ZW/XheyFSKiVDUemY=; b=Xhg6LhKzLyBFSk7zGwMtg5rlRyID9teDiTs2NnfkXY4t7HC0QRb6tRYSBnDs7rNDJ3 rXWzgnEGwVZxVjqAZfSd8QbeWDUobYJa+b6XvJpvnkeyjusZ3+GT7MT6xpj98kBjo+Fk gpqJNv6S+qOJzfvD+/zDBkktSTOMW2+vM9tKoIb4PPk3bijdHZk2GYTgLMVYfbFxV+w0 LcVuHVlmPcmBJTwn96eeBjBjkNGFhCbzYZ+eCsYKhIrdpstsgqdaPpW2IOU0oL+e5253 UPGKF2W1LjKFAik0CCAzBs/ihi7veXLmkmcZwuSNAs+ZzXTdFtusQWCCwOCnMmEawlP0 9SvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FwDLgfm2tVhAdtDmkevrzvNo57ZW/XheyFSKiVDUemY=; b=0Uy4oJn5QneJroQllH8b7HjlEKrg9hUBcfYLE+IXJCW+4geR72RWyIre93YjLdrGPU RYFB9C6dxSQada0HW2qUWcN+iG1mLfY/NXABNRa/RmYgkOWnhy4EW+kHUOr8F4pa1LyO G/dt/X1+Hx4fHvImovStsBy3UrfSyV88seWtDi2F5f9yt3Ux7XGA0UqP7d5+Frwu1IWK JvAeD2KsDL59fZtYRdSvm0N3uR/hRzn9YgNQILFQIrdjBcUk+r+eIRQObfdG9o7fJyj0 dTYuhHTk1xjte9K5RJjowMMeKchIltzaBAvh1gvbevsp76eubYfRHdnJONd8eoBMSL/w jKzA== X-Gm-Message-State: ANoB5pkX33DGwjExTox0En9dunNAT5fa+SgN5A19XZoV+W8A0uymJG+t fBBZc21rcuPiS0a4F8rqKA0dCotLoZRVMZYg74d0IBE+4NQ= X-Google-Smtp-Source: AA0mqf5msD7KaHQiFxHbTLvUUIrw655dUYBHoqCkS1yCUxgd+RTF28fp+jQZIebOTTI8cDwbYhjcVzWZdM+UlU4i/6Q= X-Received: by 2002:a17:902:9b92:b0:18e:bd50:f19a with SMTP id y18-20020a1709029b9200b0018ebd50f19amr1335707plp.81.1671207874920; Fri, 16 Dec 2022 08:24:34 -0800 (PST) In-Reply-To: <0d8a9e9d-2c8f-6282-63da-e4af020fea8d@yandex.ru> 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:251223 Archived-At: On Fri, Dec 16, 2022 at 11:15 AM Dmitry Gutov wrote: > > On 16/12/2022 15:12, Aaron Jensen wrote: > > On Fri, Dec 16, 2022 at 7:31 AM Dmitry Gutov wrote: > >> > >> Right, thanks. See the attached updated patch. > > > > That works. I found another inconsistency related to the other issue I > > just opened: > > > > def foo( > > baz, > > bar > > ) = what > > > > def foo( > > baz, > > bar > > ) > > hello > > end > > > > I don't know who is savage enough to do a multi-line endless method > > like that, but when it's done the closing paren should probably be > > consistent w/ the regular method closing paren. > > Thank you, savage indeed. > > Okay, here's an alternative version -- this was a pain to implement. > > Would be much easier if we just decided to change the args indentation > without support for the current one. It works for me w/ that example. You won't find me resisting getting rid of the old way. Lining up against the method name is a fairly clear UX issue, in my opinion. I don't know that it's something I see outside of Emacs, and my guess is that it was influenced by Lisp rather than being influenced by Ruby and its community. Aaron