From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#8165: cperl-mode: The wanted indentation is available via customize Date: Tue, 1 Sep 2020 18:22:19 +0200 Message-ID: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28102"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 To: 8165@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 18:24:47 2020 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 1kD95S-0007C7-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 18:24:47 +0200 Original-Received: from localhost ([::1]:50862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD95R-0005NJ-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 12:24:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD93m-0002zA-4b for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 12:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kD93l-00073C-RF for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 12:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kD93l-00022r-Ma for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 12:23:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Sep 2020 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8165 X-GNU-PR-Package: emacs Original-Received: via spool by 8165-submit@debbugs.gnu.org id=B8165.15989773487809 (code B ref 8165); Tue, 01 Sep 2020 16:23:01 +0000 Original-Received: (at 8165) by debbugs.gnu.org; 1 Sep 2020 16:22:28 +0000 Original-Received: from localhost ([127.0.0.1]:56957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD93E-00021t-FE for submit@debbugs.gnu.org; Tue, 01 Sep 2020 12:22:28 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:57539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD93C-00021b-7b for 8165@debbugs.gnu.org; Tue, 01 Sep 2020 12:22:27 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C68702400FC for <8165@debbugs.gnu.org>; Tue, 1 Sep 2020 18:22:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1598977339; bh=kVHpVMRGahxizZnejvFuQOxEIHWJ5BEWAhC9k+iIsXE=; h=To:From:Subject:Autocrypt:Date:From; b=croz3jD4srpoKAhrjmExkm8kz8O3fxv7Znm+5Kl2NxZ5ZKF/l4G2IpbPRl+tskfE6 tYm0eharuKCKArjTLG769j10Winmo/yFh1M0SzRpCY3eifTC2oWCeDOeYQexnX4YT8 zH6w3DUSB/cIwf/1br2oCOHKZRKNlZM/CsMaaeWsMO0+hmdbzJILWx0JMEmkc3goU+ Zdd/ahleSQI4aNGBLZM9Mo7GUUoKcVZTtDVmnXp4Tm0UrqhxMXtr8Gd0Ib0StQ1mtk fB/BXyQHCo2BNU7EzI5HpYpC2FBbff4174KpR44WVbG4qopDwXadPzMEltIlknB+Ru QDJfgrnAcnaPA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BgsmC2gQlz9rxL for <8165@debbugs.gnu.org>; Tue, 1 Sep 2020 18:22:19 +0200 (CEST) Autocrypt: addr=haj@posteo.de; keydata= mQINBF0DVrIBEAC7TRlIilBg/5Dx7R2rV4FBDEavbyMT2cS2wWyksh7JA8e17LNmTdakf+Bm u6C2m6+frolteYRlkreoyAg0fj/5tDw/s5dJDw3tM0b+m/pj2HcwTSRpQSEy5lBiCg11E6Mt F9UngCfkGtJzu8PBWXc1RDQVBwRn5MZbpMZZatE8NOq9AA3Yg6sY11Ez3xIvYU2R7a4OSxmc RJV2+dhdQ4oOTBIGQ2urQSU81kyRtkx+/Yh8WefMrk9nF3nzYziLS53euCAXyzklwYmD6Li3 XSu7wYp5fISky9DK6DPFK7h4RXEL4GFAhy31ehrVnNTcGRohM1Dm9BV9dwXkwlaeT3q0X+nE SXVqPDHtv748bXNIg2WVCZ0WgShcA46XVlSE9Fm+w0HI/1m1L4BaMmQ7gyK5dEchbhxohkk0 AqC3hEJ4ULRidrsCoCWGMFKiOIb9rjeC00vhrUkVJDkPWEGLXjhnRQykb6cESko0rPrSDLqX 9YqaNQ6KO9Un6uogE7YnXYg35EXJ8ORdX257IbXNbFVpgM8FFsl48WV3Pl9WNdADhnnOrz3O wzyK58i/BTsnjVX8ghbWkQcPQ2Kprt+4YR2trEi7TM5Uqzzrg0vp7Oe/9KZBxdxCE67thV7h ElW3CHb4q6o31b4cFmLbtFesSy+hnUU4UymgHgi/hvhxioBxIQARAQABtBxIYXJhbGQgSsO2 cmcgPGhhakBwb3N0ZW8uZGU+iQJOBBMBCAA4FiEEIpYEZLQynxF8Q17KN4XzzzqAcpsFAl0D VrICGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQN Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:186867 Archived-At: The desired indentation of data use Class::Struct Foo => [ a => '$', b => '$', c => '$', ]; is already available. As so many things in cperl-mode, it can be customized: (setq cperl-close-paren-offset -4) (setq cperl-indent-parens-as-block t) Therefore I suggest to close this bug. These are also the recommended settings in the most influential book Perl Best Practices (PBP) by Damian Conway. I guess I should add the PBP settings for indentation in a new value to cperl-style-alist, but that's probably beyond the scope of this bug report. -- Cheers, haj