From unknown Tue Aug 19 11:04:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17213 <17213@debbugs.gnu.org> To: bug#17213 <17213@debbugs.gnu.org> Subject: Status: 24.3.50; ruby-mode: misindented continuation method calls inside parens Reply-To: bug#17213 <17213@debbugs.gnu.org> Date: Tue, 19 Aug 2025 18:04:10 +0000 retitle 17213 24.3.50; ruby-mode: misindented continuation method calls ins= ide parens reassign 17213 emacs submitter 17213 Dmitry Gutov severity 17213 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 06 22:46:12 2014 Received: (at submit) by debbugs.gnu.org; 7 Apr 2014 02:46:12 +0000 Received: from localhost ([127.0.0.1]:38615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWzZb-0006Dg-DE for submit@debbugs.gnu.org; Sun, 06 Apr 2014 22:46:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45619) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWzZY-0006DY-IS for submit@debbugs.gnu.org; Sun, 06 Apr 2014 22:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWzZP-0006Iz-D9 for submit@debbugs.gnu.org; Sun, 06 Apr 2014 22:46:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWzZP-0006Iv-9Y for submit@debbugs.gnu.org; Sun, 06 Apr 2014 22:45:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWzZG-0005Jo-44 for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 22:45:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWzZ7-0006Dz-4I for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 22:45:50 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:45040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWzZ6-0006Db-Hv for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 22:45:41 -0400 Received: by mail-we0-f175.google.com with SMTP id q58so6030037wes.6 for ; Sun, 06 Apr 2014 19:45:39 -0700 (PDT) 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=OoxIbi2OgXLn9H1uuLPoxd48QVkz+jACaIL80JGy6gM=; b=F9zNV7zo8r+t/haE4vRBqFATxFhxYh5MXvzAjM8OicP+6ysyw59wbf309gUEbJiVA0 78QWboVJEy11NDtZalztFxSKxSyo/yq6BjEYjuhs3eiDZgWqPjKnZ1WVo9QJ/vWmtOU1 ibO6ZB5C7Z5HjqpD3Khi5dEQBoCn2sRkQzDMy8XGNeTqUdaQJQOK85BznvKugVuydlxr mgN2FPRCwhK1tC/N5w9qqxLcTw8oLpRZDba2Qakx2guyai0n6LOpRm6NcMp6cBYvAJi2 /CV27eGW0e4/dzU/TVaIpAJ37Zsa3VzLFekH1jFw4/KJ5g6Ar6C3qMpTX+5/yIPVsagK r9hg== X-Received: by 10.180.98.67 with SMTP id eg3mr2224181wib.38.1396838738976; Sun, 06 Apr 2014 19:45:38 -0700 (PDT) Received: from axl (87-233-54.netrun.cytanet.com.cy. [87.228.233.54]) by mx.google.com with ESMTPSA id l42sm38609267eew.19.2014.04.06.19.45.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 06 Apr 2014 19:45:37 -0700 (PDT) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 24.3.50; ruby-mode: misindented continuation method calls inside parens Date: Mon, 07 Apr 2014 05:45:27 +0300 Message-ID: <87txa5dfi0.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Example: abc(foo .bar, tee .qux) The lines with dots should be indented one column more. Same if I move either dot to the end of the previous line, but keep the called methods where they are. I can fix that for the second method call with the patch at the bottom, but the first one is unaffected. Not sure what would be the best fix for it. On a related note, it's worrisome that indentation of the these two similar pieces of code in fairly similar positions is governed by different logic. === modified file 'lisp/progmodes/ruby-mode.el' --- lisp/progmodes/ruby-mode.el 2014-03-27 08:21:15 +0000 +++ lisp/progmodes/ruby-mode.el 2014-04-04 03:28:12 +0000 @@ -658,7 +658,7 @@ (`(:before . ".") (if (smie-rule-sibling-p) (and ruby-align-chained-calls 0) - ruby-indent-level)) + (smie-rule-parent ruby-indent-level))) (`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure")) (smie-rule-parent)) (`(:before . "when") From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 13 19:50:30 2016 Received: (at 17213-done) by debbugs.gnu.org; 13 Mar 2016 23:50:31 +0000 Received: from localhost ([127.0.0.1]:47238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1afFmI-0001Bi-Oe for submit@debbugs.gnu.org; Sun, 13 Mar 2016 19:50:30 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34323) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1afFmH-0001BW-Ak for 17213-done@debbugs.gnu.org; Sun, 13 Mar 2016 19:50:29 -0400 Received: by mail-wm0-f45.google.com with SMTP id p65so81606755wmp.1 for <17213-done@debbugs.gnu.org>; Sun, 13 Mar 2016 16:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=l/UqEfrVD+gMRbI/zbnI6Lm0E34129l9PJp/wU+/UVU=; b=STtAuP6tQFh98fk1+o553A1pVIP/HTySuAPIjT2+bSty3ox7AQaoU/iji4eazPiazP PpLpbIjgAqiGPVMPq2asqzIsI/YEHkEJpbNyUqWUZoQ5F07/DDjkafiRum1uJ2MuRf3L Miie3J61ElikPY46Ir0BBsrnr0TnF+/dlcRyUERVysODde63lQHHu30XrDBpkaEBO2G9 c0Y0g6dIpvYn3G7/DutqOp8ugiptRMfLRvaSWx5Bfgx6rHcY5bEjCEYSgNfiGQmX+tdp T3xqYlfbNlYGarZISIx3LfQnwQGGsFOpNmOlX2oIPJeBzI3ZGLVUmspgv+dXFdgpfYrj wIdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=l/UqEfrVD+gMRbI/zbnI6Lm0E34129l9PJp/wU+/UVU=; b=CeiF8kulCmf6J9QsBciAjsCSIWJWKfpFlR5J1NlSo8iyYDqf76TlAljHh7s0fTNA5h iC11/6YW3bAyJpWV4eF8GPRJCaKp+JEc8e8eEzqFhDlwp/YExkwJDt7bdji+zTDR/1S/ dx8yOU1SGYWlxAPXcI8VQIFzS2xL8CEm+x4fU1ClT2TOueJ56MA8HwMFQjY1bx+6+uDY 9/PgBCujFIhm2u4Wg+twvMk7tKhxqty16jFDSxoXpcb4JUTcM2sd0KNwSCmyuRKheKvN J2+HTgTZ3ir06igwJdaA435pxaaQhLqe0X/Tp1wvWpktJbqV8Jr6PhB9mI/HHQKzNWAL Q79A== X-Gm-Message-State: AD7BkJKRzpbQLqq+CrxbDgPTPNDwWmQfMEpnbabopOk0kJmLDRd/xg7I+CNw9zOgb5pXAQ== X-Received: by 10.194.113.38 with SMTP id iv6mr20990269wjb.126.1457913023716; Sun, 13 Mar 2016 16:50:23 -0700 (PDT) Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id u3sm13481135wmg.15.2016.03.13.16.50.22 for <17213-done@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Mar 2016 16:50:22 -0700 (PDT) Subject: Re: bug#17213: Acknowledgement (24.3.50; ruby-mode: misindented continuation method calls inside parens) To: 17213-done@debbugs.gnu.org References: <87txa5dfi0.fsf@yandex.ru> From: Dmitry Gutov Message-ID: <3ba46e7d-b0d2-7f2d-a787-f620e9059e4e@yandex.ru> Date: Mon, 14 Mar 2016 01:50:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 17213-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Pushed a workaround in 5b705bc97d3928e6550d271c415c54e00e020011 to emacs-25. From unknown Tue Aug 19 11:04:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 11 Apr 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator