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#60110: 29.0.60; ruby-mode method parameter alignment Date: Sun, 18 Dec 2022 17:53:25 -0500 Message-ID: References: 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="21157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60110@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 18 23:54:13 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 1p72Xt-0005Ip-Cc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Dec 2022 23:54:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p72Xj-00035l-OE; Sun, 18 Dec 2022 17:54:03 -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 1p72Xi-00035c-Io for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 17:54:02 -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 1p72Xi-0002sQ-B1 for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 17:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p72Xh-0008Up-RT for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 17:54: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: Sun, 18 Dec 2022 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60110 X-GNU-PR-Package: emacs Original-Received: via spool by 60110-submit@debbugs.gnu.org id=B60110.167140402532653 (code B ref 60110); Sun, 18 Dec 2022 22:54:01 +0000 Original-Received: (at 60110) by debbugs.gnu.org; 18 Dec 2022 22:53:45 +0000 Original-Received: from localhost ([127.0.0.1]:36371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p72XQ-0008Ub-QD for submit@debbugs.gnu.org; Sun, 18 Dec 2022 17:53:45 -0500 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:39477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p72XO-0008UV-Qt for 60110@debbugs.gnu.org; Sun, 18 Dec 2022 17:53:43 -0500 Original-Received: by mail-pl1-f182.google.com with SMTP id d15so7392879pls.6 for <60110@debbugs.gnu.org>; Sun, 18 Dec 2022 14:53:42 -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=ObGc+1xe/dIIloR1HI52y40QJ62I95sBZCmqDbzPQCY=; b=U+fpww/qSlgAtQvqwBEyFaKUQlvyBYy5NfyWjdV6BB8Y3fgwjig0EVK3V0IV6xuIgT 0RGwn/Rr+EokPLLYB7QTG9lYBqbOjmm5NLSWPNuzhupDh29yt9h7TIqToHJR/Z5qg6VG c4Or+2fdY33LIbpC6yaJAdL0eFPxVlWIKxF/SmaG6lYvYozmV6xY3lG3hGgrK31OmhG5 lIVfy91Ihkv1ZEslZKnLZ1IafoGzjjHazRzyozQbHCvoA+edKk3GUkc5uVBZXvFOyVbU 6pqwTKwKSjwtxoq06SQ2KGBBdHjsbceRH+XHEB/IdUzzk8LKeZBBN4ulkBvjA1tVwLt7 KDgw== 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=ObGc+1xe/dIIloR1HI52y40QJ62I95sBZCmqDbzPQCY=; b=tzH2rL7S7QxV9zeM6YvY/1jfLKedxnrCBfuSOtpXL8nP/2iMTqsX6sw8UEUQouqcJc SalVMKVvIbumZo7VMK2p6ia/m2qm17dn+OHzFLyLAh1fe+7RbLT66YOsb+ULI3h/EWiT DdkVUWJPZDFQlB4X/xNRLRgoFvNwWQth2qQ2fntzB0Tkhkk9Pb8I+J9N/clJvvFu+SNN WwcXHcOm24Kn7qeDADAoKrzlo+mrnS9dQM0W460q23EQgkakSKL3WxuRbrNcno23Gm9d PTkPBRznxOUY9h20ogKnUvRn692Y6ImxQ2iALlUkOsfCbGvipTdmmfKdHGCyWgkb+CuG gYIg== X-Gm-Message-State: ANoB5pkKCBY4susb7v69fVo+GwcPlrcLuC7GF8cNM3sAmDMkbzGp6+aK WZRlEK5+1qNhuSgu8lRwklKzDbREXdh9KudwhySNk7gd4oBseA== X-Google-Smtp-Source: AA0mqf6OKCuVqn9TaL/abkcBX4l9Vl/vhn+b8xs+no7QIHxe/aFngdVb38x+CzY083BICEFNT+dFg0yFoAWtcsFR+nc= X-Received: by 2002:a17:902:7689:b0:189:b6cf:850d with SMTP id m9-20020a170902768900b00189b6cf850dmr32517911pll.30.1671404016901; Sun, 18 Dec 2022 14:53:36 -0800 (PST) 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:251383 Archived-At: On Sun, Dec 18, 2022 at 5:32 PM Dmitry Gutov wrote: > > I'm assuming the difference in indentation between these posted cases is > just an email/bug tracker bug. If they are sometimes different, please > let me know. That would be another bug. I think so, yeah. > > > I would prefer to be able to indent them like this: > > > > def some_method( > > some_arg, > > some_other_arg > > ) > > end > > > > def self.some_method( > > some_arg, > > some_other_arg > > ) > > end > > See the attached patch. (setq ruby-method-params-indent 0) should do it. Works for me. Next question is... is there an existing setting to change the indentation of expressions like: x = [3,4]. map { |x| x * 2 } Like everything else, I just want a 2 space indent, no alignment, nothing clever: x = [3,4]. map { |x| x * 2 } I can open another issue for this if there's no existing option and you'd like me to. Thanks, Aaron