bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43457: 28.0.50; [FEATURE][PATCH] cperl-mode: Add value "PBP" to cper


From: Harald Jörg
Subject: bug#43457: 28.0.50; [FEATURE][PATCH] cperl-mode: Add value "PBP" to cperl-set-style
Date: Wed, 16 Sep 2020 23:18:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

This is not a bug report, but a feature request.  If I understand
correctly, both go through the same channel.

Motivation: cperl-mode offers a command 'cperl-set-style' which sets
some customization values for code formatting according to a list of
rule sets.  The book "Perl Best Practices", known as "PBP" in the Perl
community, also defines such a rule set, including the corresponding
settings for Emacs (among other editors).

The PBP rules are widely accepted for Perl code, so in my opinion it
makes sense to make these settings available through 'cperl-set-style'.

The attached patch adds the new value "PBP" to the style selection and
to the documentation, and also contains a simple formatting test
according to these rules.

I also added some lines to etc/NEWS, but I'm unsure about the handling
of "---" to indicate that the change is not relevant to the manual:
There is no texinfo manual for CPerl mode, so maybe "---" should be
added before the heading "CPerl Mode"?
--
Cheers,
haj

Attachment: 0001-cperl-mode-Add-new-value-PBP-for-cperl-set-style.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]