[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please do not deprecate perl-mode in favour of cperl-mode
From: |
Harald Jörg |
Subject: |
Re: Please do not deprecate perl-mode in favour of cperl-mode |
Date: |
Sat, 30 Dec 2023 21:10:57 +0000 |
Stefan Kangas <stefankangas@gmail.com> writes:
> Harald Jörg <haj@posteo.de> writes:
>
>>>> Ah this is excellent. "PBP" is indeed how I assume Perl should be
>>>> indented. But how do I set this as a user option, i.e. M-x
>>>> customize-option? I think M-x cperl-set-style is not easily discoverable
>>>> (i.e. I didn't find it). For my own packages I encourage user discovery
>>>> through M-x customize-group, but I think here cperl-set-style would
>>>> remain elusive...
It is now (in the master branch) available in the customization group
cperl-indentation-details.
>> I guess the reason why cperl-set-style was implemented as a command is
>> the fact that it sets a bulk of independent variables (11 for PBP) at
>> once.
>
> I think you could use the defcustom :set keyword for that.
>
> Users would need to use `setopt` to set it though (or the :set won't
> take effect), but I think we want to encourage people to use that
> instead of `setq` in any case.
That looks fine!
I'd like to postpone that, though: I try to keep cperl-mode.el
compatible with Emacs 27 (currently Emacs 26, but I'll probably push
because of the new font-lock-faces in Emacs 27), and eventually make it
dual-life via GNU ELPA - and setopt is not available before Emacs 29.
--
Cheers,
haj
- Please do not deprecate perl-mode in favour of cperl-mode, Paul W. Rankin, 2023/12/03
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Eli Zaretskii, 2023/12/03
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Paul W. Rankin, 2023/12/03
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Harald Jörg, 2023/12/03
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Paul W. Rankin, 2023/12/28
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Stefan Kangas, 2023/12/29
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Harald Jörg, 2023/12/29
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Stefan Kangas, 2023/12/29
- Re: Please do not deprecate perl-mode in favour of cperl-mode,
Harald Jörg <=
- Re: Please do not deprecate perl-mode in favour of cperl-mode, Stefan Kangas, 2023/12/30
Re: Please do not deprecate perl-mode in favour of cperl-mode, Harald Jörg, 2023/12/03