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#61017: 29.0.60; ruby-ts-mode indents class between two lines incorrectly Date: Wed, 25 Jan 2023 17:23:06 +0200 Message-ID: <684b7942-c219-26fc-0971-6662feca9231@yandex.ru> References: <1a2436ef-ff4d-827c-f22f-33b0737d9b1f@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="10078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 61017-done@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 25 16:24:29 2023 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 1pKhdT-0002SN-B5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Jan 2023 16:24:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKhd7-0002aT-PE; Wed, 25 Jan 2023 10:24:05 -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 1pKhd5-0002Zi-9E for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 10:24: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 1pKhd5-0001rm-1I for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 10:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKhd4-0005Ia-Co for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 10:24:02 -0500 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2023 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61017 X-GNU-PR-Package: emacs Mail-Followup-To: 61017@debbugs.gnu.org, dgutov@yandex.ru, aaronjensen@gmail.com Original-Received: via spool by 61017-done@debbugs.gnu.org id=D61017.167466019920289 (code D ref 61017); Wed, 25 Jan 2023 15:24:02 +0000 Original-Received: (at 61017-done) by debbugs.gnu.org; 25 Jan 2023 15:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:59732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKhcN-0005HB-HP for submit@debbugs.gnu.org; Wed, 25 Jan 2023 10:23:19 -0500 Original-Received: from mail-ed1-f43.google.com ([209.85.208.43]:44916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKhcI-0005Gu-Re for 61017-done@debbugs.gnu.org; Wed, 25 Jan 2023 10:23:17 -0500 Original-Received: by mail-ed1-f43.google.com with SMTP id v13so22153603eda.11 for <61017-done@debbugs.gnu.org>; Wed, 25 Jan 2023 07:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=yJd79QWc7JZpAF6E5XU85xom6rLv9AcLLEZmPpGYcOU=; b=epZHCW+fxhbRY9P+Q8FiPJvrvBaaJsGyCqxar9AOC3ZIx6yudPavU3Oq6TYhXXaoX4 s4lA/5QgokPOK7G0GSgDvDl7UeCzwtMtFpNPx14AWqd2LTwttKMZXx8OKNerRIRUtfwR 7GhrYlnbOmKPszslRIA/NiGtAHNSYsjBm9By1fgZ2NZI0RXEdqldjBldAfj/PnKA243m PwFa4uPVEX1ySYbPGj1i4zEeBqk0kE67gFmvnFXHxB4/NyzNuhzs2ZCnGGcEMQsntxlX 5Ob0J1akABWuE3Tzj98+y6R88Z+SL40jt/SyuH14hqcprEs8ffL8W20moo2UMsx2GZ4G NjKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yJd79QWc7JZpAF6E5XU85xom6rLv9AcLLEZmPpGYcOU=; b=xOx+hXOr/83m17wGY98rvoJHMbiyrLxp2kM6HTC+yPCbd+9wBVlY8A0MC78/4dZ7qI KHzJQzIFbDKA+Eiwlg2Xq4tMyZy2udFuL5IVhEBDUvhHwtfKrqJdbOb0sg//sCk8kybS L1yfAd3fXclwH/PzwrEzJMPLCCqXF27vJUAzQ/s7mtKOeG3EpvjpvBbwj3PqzefJk0xT P9BObWnRB920SKlk+0nmP1X9oM0TiPJnnX5f7z6GLk1it2yHqu7NVmB4vQ95z+DgmMof IyW1RNvEa2e/8YOZcfxcag9C15cdFaqtPcwaJSkuzV9kSqHGR9yo1//iUa6WP9tLHn3J 7fKw== X-Gm-Message-State: AFqh2kofbEzLP8DQcj2vE56YJ7wYSFG9mn+HPKdA/Y6YwFrRjw0FLF+D 6rHPYEWQT4RDI1z69+cMD1E= X-Google-Smtp-Source: AMrXdXsXOjT9tbUcWuaDfP7MMwYh+PPHMvo9GFj4+tr+BpFhhZ2bKjSlW+wTYuH9b1uJnB9sa4iv9Q== X-Received: by 2002:a05:6402:28ca:b0:499:c294:77af with SMTP id ef10-20020a05640228ca00b00499c29477afmr34390583edb.12.1674660188730; Wed, 25 Jan 2023 07:23:08 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l13-20020aa7cacd000000b00463bc1ddc76sm2477002edt.28.2023.01.25.07.23.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 07:23:07 -0800 (PST) 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:254141 Archived-At: On 25/01/2023 16:22, Aaron Jensen wrote: > On Tue, Jan 24, 2023 at 11:00 PM Dmitry Gutov wrote: >> On 25/01/2023 02:45, Aaron Jensen wrote: >> >>>>>> Is it enough of an improvement? >>>>> That seems to make indentation after an open def not happen: >>>>> >>>>> def foo >>>>> bar >>>>> end >>>> Not sure what you mean. Is that an example with an "open def"? "end" >>>> seems to be closing it. In the final state, it indents correctly here. >>> Sorry, that's what I meant. If I do type exactly that and do not >>> reindent, I end up with that though (closing with the end does not >>> cause the previous line to reindent) >> All right. >> >> But if the proposed patch doesn't make things worse for this example, we >> might as well install it. Because this "unclosed def" case is distinct >> from the one you filed this bug report regarding. > Sounds good to me. And done. Thanks for testing.