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 20:15:52 +0200 Message-ID: <6db194f9-262e-983a-792d-3145ca9055e4@posteo.de> References: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> 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="32376"; 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, stefankangas@gmail.com, sds@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 20:17:09 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 1kDAqD-0008J5-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 20:17:09 +0200 Original-Received: from localhost ([::1]:46648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDAqC-0000Uh-Cy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 14:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDAq6-0000UJ-0r for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 14:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDAq5-0005yF-OE for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 14:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDAq5-0002YN-K5 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 14:17:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 8165-submit@debbugs.gnu.org id=B8165.15989841626886 (code B ref 8165); Tue, 01 Sep 2020 18:17:01 +0000 Original-Received: (at 8165) by debbugs.gnu.org; 1 Sep 2020 18:16:02 +0000 Original-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 Original-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 Original-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== Original-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) 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 In-Reply-To: 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:186879 Archived-At: 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