From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Harald_J=C3=B6rg?= Newsgroups: gmane.emacs.devel Subject: Re: Please do not deprecate perl-mode in favour of cperl-mode Date: Sat, 30 Dec 2023 21:10:57 +0000 Message-ID: <87y1dbtmzi.fsf@oook.m.uunet.de> References: <5d846dd1b7a8b557073b317863bc590a@purelymail.com> <83ttoz7ohj.fsf@gnu.org> <432593e94d8f9316cce77962a0598c23@purelymail.com> <875y1fzakn.fsf@oook.m.uunet.de> <313e6ac232c876c5ec22df58571395b6@purelymail.com> <87v88hkpy8.fsf@oook.m.uunet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Paul W. Rankin" , emacs-devel@gnu.org, Eli Zaretskii To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 30 22:12:04 2023 Return-path: Envelope-to: ged-emacs-devel@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 1rJgcm-000ANk-Ip for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Dec 2023 22:12:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJgc1-0008OH-0h; Sat, 30 Dec 2023 16:11:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJgbz-0008O3-6N for emacs-devel@gnu.org; Sat, 30 Dec 2023 16:11:15 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJgbu-0003Tn-LW for emacs-devel@gnu.org; Sat, 30 Dec 2023 16:11:14 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 444C8240101 for ; Sat, 30 Dec 2023 22:10:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1703970659; bh=YwGeM19miElrweHEz0PKQ8YCkN+XUXnFDMNpmv4l01U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VWCa57KUsqiqHmhrwxT5uB503C5u0k5oCaRPqg2Mar+piBKsC4XjCD4LggfGXUqte 7yhNNz7lvFgm0L3ToounAQil1TfJdzNV1iYnS21P6aGVOBvag3cg0xGgPRj9dBfDBt 5EZtNXqAlv8XWW50LAvuU8CyZbiNCgCb3ZL4LLY5FZoF4X/JDRMvNvd8nwVOW6Yvcu wxn9Qa/Ih7PczBAajqDnCxXn5Ox9/0G87ytTJ3rvwGFEr71dCzPiLHF87le+oFYzjF E55MzIvZU9Hv77Rjj3ehfSmZ08zBqDAjTrAnPGjTpSIlsrnevLM5PAuwE+kaKYyPoz iys4jMKqfltGA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T2ZfV2cbNz9rxN; Sat, 30 Dec 2023 22:10:58 +0100 (CET) In-Reply-To: (Stefan Kangas's message of "Fri, 29 Dec 2023 13:52:33 -0800") Received-SPF: pass client-ip=185.67.36.66; envelope-from=haj@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314379 Archived-At: Stefan Kangas writes: > Harald J=C3=B6rg 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 discoverab= le >>>> (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. --=20 Cheers, haj