GNU bug report logs - #43457
28.0.50; [FEATURE][PATCH] cperl-mode: Add value "PBP" to cperl-set-style

Previous Next

Package: emacs;

Reported by: Harald Jörg <haj <at> posteo.de>

Date: Wed, 16 Sep 2020 21:19:01 UTC

Severity: normal

Tags: fixed, patch

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Harald Jörg <haj <at> posteo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [FEATURE][PATCH] cperl-mode: Add value "PBP" to
 cperl-set-style
Date: Wed, 16 Sep 2020 23:18:20 +0200
[Message part 1 (text/plain, inline)]
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
[0001-cperl-mode-Add-new-value-PBP-for-cperl-set-style.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.