From unknown Wed Aug 20 03:37:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8165: 24.0.50; cperl indentation Resent-From: Sam Steingold Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8165@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: sds@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129917026323120 (code B ref -1); Thu, 03 Mar 2011 16:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:37:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBX5-00060q-6L for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:43 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBX3-00060f-0v for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBWt-0007q7-5Q for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBWt-0007q2-0c for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:31 -0500 Received: from [140.186.70.92] (port=33878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvBWn-0001b8-Pk for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:37:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBWi-0007kp-Ij for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:37:25 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:55304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBWc-0007iY-IA; Thu, 03 Mar 2011 11:37:14 -0500 Received: by vxc38 with SMTP id 38so1424023vxc.0 for ; Thu, 03 Mar 2011 08:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:user-agent :mail-copies-to:return-receipt-to:reply-to:x-attribution :x-disclaimer:date:message-id:mime-version:content-type; bh=Cno9NFtSsvHbXb4WBovxvNXG/lKl25wKPerqT7Cqx0U=; b=k5/RDlKoaKgIlaYK9uLRHjuFqcqRzIZ1A6YOlcn/lQfLd/CNzO8y/Wp1T+qxhSaAAW gYArBgKlq1EFnJTp0jvsdkh8KDSeqKJt0CM/2Wsl6BgIBuPODCsRtONJguA5QSCyhzuX vzb7VYytcwoRmExc7BnhoH7dtWY6gGDzHvjj8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:user-agent:mail-copies-to:return-receipt-to :reply-to:x-attribution:x-disclaimer:date:message-id:mime-version :content-type; b=JX6twJyC5k0dQRZvZznlmqX60WLKP+gWHCojZUwiHB4RpsJgNFHlunaPSDRrEVlQPr Mxk9toLRK6oVOsgBwZM8ZyB/krRUD+omubNCCanjZLRa7fBjdbL/Fv0F/hMdlazIWJUZ tb1MAEzbqtgP4damRf2NpoisB93NV51s8pQt8= Received: by 10.52.90.208 with SMTP id by16mr2102867vdb.280.1299170232799; Thu, 03 Mar 2011 08:37:12 -0800 (PST) Received: from tbox.wtc.algo (rrcs-24-103-48-205.nyc.biz.rr.com [24.103.48.205]) by mx.google.com with ESMTPS id v7sm220950vch.11.2011.03.03.08.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2011 08:37:11 -0800 (PST) From: Sam Steingold User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 03 Mar 2011 11:37:10 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) cperl-mode mis-indents _data_ (as opposed to _code_). e.g., use Class::Struct Foo => [ a => '$', b => '$', c => '$', ]; is indented as use Class::Struct Foo => [ a => '$', b => '$', c => '$', ]; which is much less readable. the same goes for my $foo = [ "a", "b", ("c","d"), ]; I understand that this might be a matter of taste, but it would be nice if my preferred indentation were also available. PS. I am aware (and not fond) of the alternative my $foo = [ .... ]; -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final) X http://mideasttruth.com http://iris.org.il http://ffii.org http://memri.org http://pmw.org.il http://www.memritv.org The paperless office will become a reality soon after the paperless toilet. From unknown Wed Aug 20 03:37:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8165: cperl-mode: The wanted indentation is available via customize References: 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 X-GNU-PR-Keywords: To: 8165@debbugs.gnu.org Received: via spool by 8165-submit@debbugs.gnu.org id=B8165.15989773487809 (code B ref 8165); Tue, 01 Sep 2020 16:23:01 +0000 Received: (at 8165) by debbugs.gnu.org; 1 Sep 2020 16:22:28 +0000 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 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 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== 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) From: Harald =?UTF-8?Q?J=C3=B6rg?= 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 VrICGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQN4XzzzqAcpv0Lw/9H0KfYwkBY1jO aE8gBIP7cUGytufW9Kp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PCcUtCaayB3lZdLsAEQEAAYkCNgQYAQgAIBYhBCKWBGS0Mp8RfENeyjeF8886gHKbBQJd A1ayAhsMAAoJEDeF8886gHKbPZ8QAI16XfXtSGcMDjm5/2M0qLNTpCcPCVGbKlWdshJPt9gH QcQKHXrHEl4kTdBFB15LzHIqfcjbhMxdxEPqU+3wpz9UVIEUHQ+9+sFMU79CXGCPMOz6bo44 UXo4bbe0AdX7pLmdZnYce+wAlUEYlzBgf+5tA62RqgB4/kDgk8TX9LZKpxUp5zUhUTac6o2b NVhf77jFz/gGSEdo9DFxXyZOnvW5sy71cSXaYvecCX4Zkt1PIt6Je8FPrZB18m7204/5abHA FcekJd+WfxbLBpiidIsPqEGhjQuH3NE7A/YIYcYno0gasjjOl9voOgF63gWq0rU9DXPYzAEo T0X5U61d1MieiGzszbnAiFjuiCPOgEAZ5UOG1jgk0brXOGXcB6uLUKXdHY/Hew2Qw2UN4jsF qgaVHmgokTr0ml7VVP2x/QTsFB7+mCbJvKIy7wuaRUN8/YELIrcBo9TlZbHFhQuF/nUloLFy qWfnjERPf3F15raGx0mGtxyYmgjRGAmtn11fNUrvrPxvbrVOWq7kcSukdtHavH3J6VBv+8kd YFQMaa1HVZ6Fhp50GYB+zZ29C7gtNIe0rn59xAcsBab/TyNjpG4BP4D0oGCl0+TTgzNIemji AsnleF4J+/xNczT+QQusHYtByZ6FRWqKPxLl3NE9h5e4Uy5QpwXCCI97ZA248Hmp Message-ID: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> Date: Tue, 1 Sep 2020 18:22:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) 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: -1.7 (-) 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 From unknown Wed Aug 20 03:37:42 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: sds@gnu.org Subject: bug#8165: closed (Re: bug#8165: cperl-mode: The wanted indentation is available via customize) Message-ID: References: X-Gnu-PR-Message: they-closed 8165 X-Gnu-PR-Package: emacs Reply-To: 8165@debbugs.gnu.org Date: Tue, 01 Sep 2020 17:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1598980382-21203-1" This is a multi-part message in MIME format... ------------=_1598980382-21203-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8165: 24.0.50; cperl indentation which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8165@debbugs.gnu.org. --=20 8165: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8165 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1598980382-21203-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8165-done) by debbugs.gnu.org; 1 Sep 2020 17:12:16 +0000 Received: from localhost ([127.0.0.1]:57099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD9pP-0005Uw-VY for submit@debbugs.gnu.org; Tue, 01 Sep 2020 13:12:16 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:45860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD9pO-0005Ui-GO for 8165-done@debbugs.gnu.org; Tue, 01 Sep 2020 13:12:15 -0400 Received: by mail-ej1-f53.google.com with SMTP id i26so2711623ejb.12 for <8165-done@debbugs.gnu.org>; Tue, 01 Sep 2020 10:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :content-transfer-encoding; bh=Izk8mtShESBi43dLEG8+rvMWQ0dN7d+sQ4wRbZ6BU74=; b=ktGONff3k3qoxRme2KMwfzsq3tWRMJ8YqtvqlEWFdfII8kvQMX8kkyE/0WNEEd1ut9 fuuZT+c1M3BM69cHTy3KILsLlOr1tg7Dn3J+sFchU2D7+G15e26kimADN+MN1ah5d0M0 XXS5GsJYBohCb8Gz0QzOyAHyFWfz8+TmMZLbkbXsnmHdFqLpJWgnjF7xDoC5zAboGyCK jzS16+hrxVVaAbapboE+TOpgITqzWwOAaRBTraHNLaYG6stbp4hyEApnmHZNKDttWanF GKBvP2bvOJQ4RGClycvyqg2hCH+Z4ZbA65tYBiC6l7NoDs1w/twDd90aT4igBbdcjNMs PTbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:content-transfer-encoding; bh=Izk8mtShESBi43dLEG8+rvMWQ0dN7d+sQ4wRbZ6BU74=; b=dpnuvNnKGg09kvNbbNE6MsG4+EogTd1IMidUQswfndrxdedtokuCsafuptHXDer6eP VAzIY/mpmITUdh3VgvbZOfgWb3sGRXdiP0/wrG9BDgZ1FpnJaBzM2ogU72ErKECGXVoT 1VK2qWdIKjjeVrM51Y0pZbZ7WFXpsg6N4tG+r7nRUwTr89iHwmr4ks1ZFzsPekgbzCNE Lqy9p9VcZ/27miYw7SU6cd1s3qrTV9zghzb5UDpkVRGUH3WvY9wwliqi0IsllipW2HXV giLNpTGhPRkeeCScDNB4gzhVo1CE5Gh/vivYC8m7Q4QvCB/AA5pEdKBXl51smDK284G0 d51w== X-Gm-Message-State: AOAM530Ojp6sSjhHiKBZD0KSs7YnGG/MND8rqci+ttFe5W6W3wGeRasc SOS95n+uAm/Mk7w7cuOgRg6xPK/x47z11parua0= X-Google-Smtp-Source: ABdhPJweC1SAABie7CqzA0IU0+ioU4SM0T3rsKxkzpjqOnuooCjWSR/4SUl1iXc5kDsND7sf4uVbEjhx3H2dtJdBEgw= X-Received: by 2002:a17:906:bb0e:: with SMTP id jz14mr2570656ejb.525.1598980328620; Tue, 01 Sep 2020 10:12:08 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 1 Sep 2020 10:12:07 -0700 From: Stefan Kangas In-Reply-To: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> References: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> MIME-Version: 1.0 Date: Tue, 1 Sep 2020 10:12:07 -0700 Message-ID: Subject: Re: bug#8165: cperl-mode: The wanted indentation is available via customize To: =?UTF-8?B?SGFyYWxkIErDtnJn?= , 8165-done@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 8165-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: -1.0 (-) Harald J=C3=B6rg writes: > Therefore I suggest to close this bug. Done. You can just add -done to the bug number in the address if you would like to do it yourself next time. See the To-field of this message. > 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. It sounds like a good idea to add such an option. Just a thought: I seem to remember that the PBP recommendations is the generally accepted style in the Perl community these days? Does it make sense to change that to be the default? (It's been over 10 years since I did any serious Perl programming...) Best regards, Stefan Kangas ------------=_1598980382-21203-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:37:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBX5-00060q-6L for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:43 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBX3-00060f-0v for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBWt-0007q7-5Q for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBWt-0007q2-0c for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:37:31 -0500 Received: from [140.186.70.92] (port=33878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvBWn-0001b8-Pk for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:37:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBWi-0007kp-Ij for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:37:25 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:55304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBWc-0007iY-IA; Thu, 03 Mar 2011 11:37:14 -0500 Received: by vxc38 with SMTP id 38so1424023vxc.0 for ; Thu, 03 Mar 2011 08:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:user-agent :mail-copies-to:return-receipt-to:reply-to:x-attribution :x-disclaimer:date:message-id:mime-version:content-type; bh=Cno9NFtSsvHbXb4WBovxvNXG/lKl25wKPerqT7Cqx0U=; b=k5/RDlKoaKgIlaYK9uLRHjuFqcqRzIZ1A6YOlcn/lQfLd/CNzO8y/Wp1T+qxhSaAAW gYArBgKlq1EFnJTp0jvsdkh8KDSeqKJt0CM/2Wsl6BgIBuPODCsRtONJguA5QSCyhzuX vzb7VYytcwoRmExc7BnhoH7dtWY6gGDzHvjj8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:user-agent:mail-copies-to:return-receipt-to :reply-to:x-attribution:x-disclaimer:date:message-id:mime-version :content-type; b=JX6twJyC5k0dQRZvZznlmqX60WLKP+gWHCojZUwiHB4RpsJgNFHlunaPSDRrEVlQPr Mxk9toLRK6oVOsgBwZM8ZyB/krRUD+omubNCCanjZLRa7fBjdbL/Fv0F/hMdlazIWJUZ tb1MAEzbqtgP4damRf2NpoisB93NV51s8pQt8= Received: by 10.52.90.208 with SMTP id by16mr2102867vdb.280.1299170232799; Thu, 03 Mar 2011 08:37:12 -0800 (PST) Received: from tbox.wtc.algo (rrcs-24-103-48-205.nyc.biz.rr.com [24.103.48.205]) by mx.google.com with ESMTPS id v7sm220950vch.11.2011.03.03.08.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2011 08:37:11 -0800 (PST) From: Sam Steingold To: bug-gnu-emacs@gnu.org Subject: 24.0.50; cperl indentation User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 03 Mar 2011 11:37:10 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: sds@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) cperl-mode mis-indents _data_ (as opposed to _code_). e.g., use Class::Struct Foo => [ a => '$', b => '$', c => '$', ]; is indented as use Class::Struct Foo => [ a => '$', b => '$', c => '$', ]; which is much less readable. the same goes for my $foo = [ "a", "b", ("c","d"), ]; I understand that this might be a matter of taste, but it would be nice if my preferred indentation were also available. PS. I am aware (and not fond) of the alternative my $foo = [ .... ]; -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final) X http://mideasttruth.com http://iris.org.il http://ffii.org http://memri.org http://pmw.org.il http://www.memritv.org The paperless office will become a reality soon after the paperless toilet. ------------=_1598980382-21203-1-- From unknown Wed Aug 20 03:37:42 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8165: cperl-mode: The wanted indentation is available via customize 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 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8165@debbugs.gnu.org, stefankangas@gmail.com, sds@gnu.org Received: via spool by 8165-submit@debbugs.gnu.org id=B8165.15989841626886 (code B ref 8165); Tue, 01 Sep 2020 18:17:01 +0000 Received: (at 8165) by debbugs.gnu.org; 1 Sep 2020 18:16:02 +0000 Received: from localhost ([127.0.0.1]:57245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDAp7-0001mf-Uw for submit@debbugs.gnu.org; Tue, 01 Sep 2020 14:16:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDAp6-0001fw-0o for 8165@debbugs.gnu.org; Tue, 01 Sep 2020 14:16:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C3B462400FD for <8165@debbugs.gnu.org>; Tue, 1 Sep 2020 20:15:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1598984153; bh=E/8CUqaLfLtl1fIPAnukJfr/qUT/Hw9Fdf8aogrwJsg=; h=Subject:To:From:Autocrypt:Date:From; b=N5axgaEJjxTNDTLV9kqg2QIo2REPBVvgeAJr1aoMWNgNt9CoMQtSAocqOl3ovC1PF q0Zu4o2O19AdlY7J2rbeY/8W3ipVRBoQPd9kiOkFNqzXoP8DVxf3DNPC4Go6ptxdpR KIQ0e0LvSjoyOOdkaaYu2fdFpCPji3DaoquWmIk1hjWhuFnnWyA3P5fuqUVJzwihRa oaqAZvZEtIb82RmGi56du50lKN54OGjbxTIF+ORJ0wqqKCvje+r07IMPYWjbQ1URod 914FoEMEONsEqVoU4XqzcFvfLRbehDQuqpz5e4PmqpzCIb4Pu2nK/9yZQhQS+vIL7K KdaE+HeeE4zcw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BgwHF0fDYz9rxS; Tue, 1 Sep 2020 20:15:52 +0200 (CEST) References: <42e66bae-b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XfXtSGcMDjm5/2M0qLNTpCcPCVGbKlWdshJPt9gH QcQKHXrHEl4kTdBFB15LzHIqfcjbhMxdxEPqU+3wpz9UVIEUHQ+9+sFMU79CXGCPMOz6bo44 UXo4bbe0AdX7pLmdZnYce+wAlUEYlzBgf+5tA62RqgB4/kDgk8TX9LZKpxUp5zUhUTac6o2b NVhf77jFz/gGSEdo9DFxXyZOnvW5sy71cSXaYvecCX4Zkt1PIt6Je8FPrZB18m7204/5abHA FcekJd+WfxbLBpiidIsPqEGhjQuH3NE7A/YIYcYno0gasjjOl9voOgF63gWq0rU9DXPYzAEo T0X5U61d1MieiGzszbnAiFjuiCPOgEAZ5UOG1jgk0brXOGXcB6uLUKXdHY/Hew2Qw2UN4jsF qgaVHmgokTr0ml7VVP2x/QTsFB7+mCbJvKIy7wuaRUN8/YELIrcBo9TlZbHFhQuF/nUloLFy qWfnjERPf3F15raGx0mGtxyYmgjRGAmtn11fNUrvrPxvbrVOWq7kcSukdtHavH3J6VBv+8kd YFQMaa1HVZ6Fhp50GYB+zZ29C7gtNIe0rn59xAcsBab/TyNjpG4BP4D0oGCl0+TTgzNIemji AsnleF4J+/xNczT+QQusHYtByZ6FRWqKPxLl3NE9h5e4Uy5QpwXCCI97ZA248Hmp Message-ID: <6db194f9-262e-983a-792d-3145ca9055e4@posteo.de> Date: Tue, 1 Sep 2020 20:15:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) 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: -3.8 (---) On 9/1/20 7:12 PM, Stefan Kangas wrote: > Harald Jörg writes: > >> Therefore I suggest to close this bug. > > Done. > > You can just add -done to the bug number in the address if you would > like to do it yourself next time. See the To-field of this message. Thank you for this hint. I wasn't aware of that. >> 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. > > It sounds like a good idea to add such an option. > > Just a thought: I seem to remember that the PBP recommendations is the > generally accepted style in the Perl community these days? Does it make > sense to change that to be the default? (It's been over 10 years since > I did any serious Perl programming...) I would be absolutely fine with making the PBP recommendations the default. By now, the book is 13 years old and some of its content is no longer generally accepted - but as far as I can say, the indentation rules haven't seen any criticism. And though Damian is a vim wizard, his book lists the Emacs variables which match his recommendations - and it is still available for download from O'Reilly. Different indentation styles seem to be also present in perl-mode, but only in the mode's documentation - there's no command to switch all variables which customize indentation in one go. Since the set of available options is different anyway, I guess I can get away with adding the new option to cperl-mode only. -- Cheers, haj