GNU bug report logs - #66050
Making perl-mode.el obsolete

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Stefan Kangas <stefankangas@HIDDEN>; dated Sun, 17 Sep 2023 12:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 25 Sep 2023 09:19:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 25 05:19:03 2023
Received: from localhost ([127.0.0.1]:44188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkhk6-0008Ey-Di
	for submit <at> debbugs.gnu.org; Mon, 25 Sep 2023 05:19:03 -0400
Received: from mout01.posteo.de ([185.67.36.65]:50213)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkhjq-0008E8-Ce
 for 66050 <at> debbugs.gnu.org; Mon, 25 Sep 2023 05:19:01 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id A9625240029
 for <66050 <at> debbugs.gnu.org>; Mon, 25 Sep 2023 11:18:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;
 t=1695633507; bh=LPBiqyAjTXpocIpl+vRaXfHWbdira8ZtmACbPyHVr/8=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=qJrldcb4ns5Lv6/DHlQ1hC5C4TXjm0/M8I1mcQ8VfHZ6cP/Gtmy9+878jkIzkBY5m
 bLAmyRz8CVhTF6RpnF6mnAZkeLAXD+WMhYzfaBLayFUNIN6TVQd/AJK4u8zEXsLcvV
 7wLxXAfg49X1F8KKMk+E3nvaifDmanq6I2SdEBho0Y8MQyc32f4ofYOZSvHiJLxm6R
 kmIkZ7yEbUMQClhWQUP+Hs0UBNx5XbZDSN4oo0VTLQZQBL9WweU+rfXX30IxGiX0nv
 Wc9FTaDa63TMN7Xh8+c/X45IQ39Yoyeaba13JA76OSTV6worDmHvBYHUDVHtpWLiDJ
 8v8LUTmnP5blw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RvHNf57gVz6tw5;
 Mon, 25 Sep 2023 11:18:26 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <jwvcyy7b64o.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sun, 24 Sep 2023 18:12:49 -0400")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN> <874jjka15f.fsf@HIDDEN>
 <jwvo7hrbmnv.fsf-monnier+emacs@HIDDEN>
 <87ttrjw997.fsf@HIDDEN>
 <jwvcyy7b64o.fsf-monnier+emacs@HIDDEN>
Date: Mon, 25 Sep 2023 09:18:26 +0000
Message-ID: <87lecur4pp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Jens Schmidt <jschmidt4gnu@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>>>> Yes, that should be covered.  The option name is somewhat ... weird, but
>>>> I didn't find enough motivation to change it (or to fiddle with
>>>> font-lock-level 3, which would be more in line with other modes).
>>> That's a downvote for font-lock levels from me.
>> Oh - I guessed that ignoring font-lock-levels was one of the things you
>> meant when you wrote that cperl-mode is different than other major modes...
>
> Levels are just not the right concept, because there are many ways to
> "measure" and hence order by levels.

Oh, i see.  And I agree.

> [...]
>> Sure.  I think that creating custom themes might be a bit beyond what
>> *users* of c?perl-mode might want to do (I myself never did that).
>
> I'm not talking about users creating a custom theme.  I'm talking about
> cperl-mode providing a custom theme that gets it closer to something
> like `perl-mode`.

Ah - I understand.  Indeed, this looks like the way to go!

> [...]
>> An overhaul of all of this would take some time, and probably a thick
>> skin to weather the storm caused by cperl-mode users who are
>> accustomed to the current colors.
>
> I think you're overly pessimistic.  A few tweaks here and there
> shouldn't cause too much noise, if they make things more
> regular/consistent.

...and also I have a thick skin, so this won't stop me :)

>> It is a bit more than _changing_ faces.  In the match part, cperl-mode
>> highlights metacharacters (|) as keywords, [] as functions, and
>> character classes (\d \D \s and friends) as types.
>
> I guess using `font-lock-function-name-face` for [] does sound quite
> wrong, since it plays a very different role from "the place where an
> identifier is defined as a function-like thingy", which is what this
> face is typically used for elsewhere.

Yes, that's not a "correct" use of `font-lock-function-name-face` - but
it has been like this for ages.  I think it makes sense to highlight
*all* characters which aren't taken literally in the search pattern
since this is a frequent source of beginner problems.

> I'd recommend to highlight them as something like keywords as well.
> [ BTW, ELisp mode uses `font-lock-regexp-grouping-construct` for some
>   of that.  ]

So this would be a general improvement for cperl-mode!

> "Types" also sounds odd for \d and friends but the harm is probably
> a bit more mild.

I find it actually defendable.  Within the realm of the regular
expressions language, "digits" or "spaces" are sort of "types" (and
there's no dedicated font-lock-regexp-* face for those).

>> The substitution part can be actual Perl code, and cperl-mode will
>> fontify it as Perl code.
>
> IIRC `perl-mode` also tries to fontify the replacement part as Perl code
> (when it does contain Perl code). ...

Oh - I couldn't see it with my example.  Perhaps I miss a setting.

> ... I can't remember if I managed to make it work for all the relevant
> cases, but I haven't heard any complaint from `perl-mode` users when I
> made this change, so if `cperl-mode` does it in more cases, I don't
> think `perl-mode` users will complain when switching to `cperl-mode`.

I agree.

-- 
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 25 Sep 2023 08:40:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 25 04:40:47 2023
Received: from localhost ([127.0.0.1]:44111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkh94-0007CW-SM
	for submit <at> debbugs.gnu.org; Mon, 25 Sep 2023 04:40:47 -0400
Received: from mout01.posteo.de ([185.67.36.65]:36353)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkh92-0007CI-B9
 for 66050 <at> debbugs.gnu.org; Mon, 25 Sep 2023 04:40:45 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 54FEB24002A
 for <66050 <at> debbugs.gnu.org>; Mon, 25 Sep 2023 10:40:26 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;
 t=1695631226; bh=P9JPzPC+1pgn06o2SRUxzJwp8BHE8K/WJeczjPpTMII=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=bkff8EGocw0SJZr8HfgniOo7I6QjJKBgLy0x0dOE2KjU43w7epZC82LEpHa6q5t0b
 yNwUWl6rgQQ6h86kDVUmr61NwM4oT1MurbajLLHArMncPuK6gfY43lpHK/fG4r+o/e
 xuJwqLa848DLCcjKC33r5t+hNu1H5bsHb4Yo07Djjk/Y+S/TfBn3cGeYkig3THkSZd
 vH+skzhP1QeKg6bUb7cQT6okN8FoU84+hbCzv2sX1eAn572DN9D1I8lhrbkBCyEGSg
 NUgh8mhnTyO8Crs3B6vTYRRhUgM6Yl9DMDXwRP5tulei8Cx+aXgti8fbXnwHZhRRo3
 oKHYY6OIkE2rQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RvGXm6p7mz6txT;
 Mon, 25 Sep 2023 10:40:24 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <jwv7cofb3bn.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sun, 24 Sep 2023 18:54:11 -0400")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <87jzsfw6t8.fsf@HIDDEN>
 <jwv7cofb3bn.fsf-monnier+emacs@HIDDEN>
Date: Mon, 25 Sep 2023 08:40:24 +0000
Message-ID: <87pm26r6h3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Mauro Aranda <maurooaranda@HIDDEN>, rms@HIDDEN,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>>> 1. If I have something like:
>>> my $some_code = "";
>>> $some_code.= q(
>>> my $counter = 0;
>>> );
>>>
>>> If I put point at column 0 of the line "my $counter", and hit TAB, I get
>>> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
>>> options for making this work but I couldn't find anything.
>>
>> I consider the behavior of perl-mode to be a bug.
>
> The behavior looks right to me, tho I haven't checked the code if it's
> by accident (i.e. because of a bug in `perl-mode`) or not.

I was wrong (as explained in my reply to Mauro).  Sorry for the
confusion!

> [...]
>> The message is technically correct, and generally I consider the ability
>> of cperl-mode to locate syntax errors useful.  But I understand that it
>> can be annoying while you're typing (I myself don't see these messages
>> because I use paredit-mode, but I understand that not everyone wants
>> this electricity).  I guess that a way to optionally suppress these
>> messages can be found.
>
> I think the way we usually solve these tensions is to replace those
> error messages with some kind of highlighting (and if necessary
> `help-echo` properties to help the user figure out what this
> highlighting is for).
>
> E.g. in ELisp mode, a non-terminated string results in a string-highlight
> that bleeds into the subsequent code.  And an argument wrongly placed on
> the same line as something already indented within a subexpression as
> in:
>
>       (foo arg1
>            (some sub
>                  expression) badarg2)
>
> gets a `font-lock-warning-face` together with a `help-echo`.

Thanks for this suggestion!  This would be an improvement to cperl-mode
in general.  I didn't know about the help-echo property!

-- 
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 25 Sep 2023 08:33:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 25 04:33:26 2023
Received: from localhost ([127.0.0.1]:44100 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkh1y-000718-48
	for submit <at> debbugs.gnu.org; Mon, 25 Sep 2023 04:33:26 -0400
Received: from mout02.posteo.de ([185.67.36.66]:50377)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkh1v-00070v-Bm
 for 66050 <at> debbugs.gnu.org; Mon, 25 Sep 2023 04:33:25 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 25001240106
 for <66050 <at> debbugs.gnu.org>; Mon, 25 Sep 2023 10:33:05 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;
 t=1695630785; bh=2nka5rVILeG7ljGgkvcnEEj0rscfEa7efaCb/5OZ6BQ=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=M7+09vGd6j6K9hKXfE+viaOO/BPhBv6A45TrOi31Pr2kSnMBOqDoOBIccg92v+lbs
 c1g3GfpYc5UI0LdTvnqgelmFZJn5ixOKBn2dBCa7PNZCclH+FLKV/ou3P82EOYby21
 BvoZYGJdB5Zm1j5Zjzv6aS66Jwtb4vyPMf193Wjwdjtk/AEsYRVukd25tZz3eZ7XkU
 zHe8ZUd2TjSXK+gOX1sTNEiO21L9ldCEAsClZ6eDK2ETpBNai7cVJ7LBLDqVQATFIZ
 QoYRp/3pIgWDR2liLMmIeD5KMGEUqWVHyWGtes6j5GqqfMihXzn6Qb/z9V22fsPUo4
 DAmNnbVBFaMJg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RvGNH48j3z9rxR;
 Mon, 25 Sep 2023 10:33:03 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <9915f301-1808-8548-df5e-040e3c028714@HIDDEN> (Mauro Aranda's
 message of "Sun, 24 Sep 2023 19:40:10 -0300")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <87jzsfw6t8.fsf@HIDDEN>
 <9915f301-1808-8548-df5e-040e3c028714@HIDDEN>
Date: Mon, 25 Sep 2023 08:33:02 +0000
Message-ID: <87ttrir6td.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>, rms@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mauro Aranda <maurooaranda@HIDDEN> writes:

> On 24/9/23 19:21, Harald J=C3=B6rg wrote:
>> Mauro Aranda <maurooaranda@HIDDEN> writes:
>>
>>> In addition to what Jens Schmidt said, I can add that:
>>>
>>> 1. If I have something like:
>>> my $some_code =3D "";
>>> $some_code.=3D q(
>>> my $counter =3D 0;
>>> );
>>>
>>> If I put point at column 0 of the line "my $counter", and hit TAB, I get
>>> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
>>> options for making this work but I couldn't find anything.
>>
>> I consider the behavior of perl-mode to be a bug.
>>
>> Whatever is within the parens of  q(...) is a string, and will be
>> assigned to the variable $some_code.  By "indenting", perl-mode changes
>> the value of $some_code by adding spaces.  In my opinion, indenting
>> should change the optical layout, but not the code!
>
> I might be completely wrong about this, but I have the feeling that
> TAB behaves differently because in perl-mode I see TAB is bound to
> indent-for-tab-command (this is not in emacs -Q, just in case it has
> something to do with that).
>
> So, TAB is not really indenting (as I said originally, sorry), but
> adding a TAB character upon request.  And yes, in this case I want to
> change the code, so TAB is not doing anything incorrect here, I think.

I apologize!  I made a mistake here: I am so addicted to
cperl-tab-always-indent (t by default) that it didn't occur to me to
even *try* to insert a tab character!

And indeed, cperl-mode does not insert a tab character.  Even if
cperl-tab-always-indent is nil, it doesn't insert a character if point
is in the left margin.  This is documented in the docstring of
cperl-indent-command.

This behavior of cperl-mode is weird and it makes sense to find a way to
make <tab> insert a tab character.

(A workaround is <C-q> <tab>, but that isn't convincing)

>>> 2. While I'm typing the above string, I get messages about string/RE not
>>> found:
>>> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unba=
lanced
>>> parentheses 1092 1874)
>>> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unba=
lanced
>>> parentheses 1092 1918) [2 times]
>>> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unba=
lanced
>>> parentheses 1092 1962) [2 times]
>>>
>>> That's annoying.
>>
>> The message is technically correct, and generally I consider the ability
>> of cperl-mode to locate syntax errors useful.  But I understand that it
>> can be annoying while you're typing (I myself don't see these messages
>> because I use paredit-mode, but I understand that not everyone wants
>> this electricity).  I guess that a way to optionally suppress these
>> messages can be found.
>
> Sure is correct, but I'm used to see messages like those when I have
> really screwed up (typically editing an elisp file and making
> forward-sexp fail).  Not while I'm typing.  To me, it feels better to
> have kind of a visual indication, like when you are entering a string
> and everything fontifies as a string so you are reminded you better
> close it.

I agree.

Stefan Monnier has suggested how this could be handled in his reply, and
I think this would be an improvement to cperl-mode in general
(independent of using it as a replacement for perl-mode).

>>> So far, my settings for getting a perl-mode experience in cperl-mode,
>>> with emacs -Q: (taken from a custom file):
>>> '(cperl-highlight-variables-indiscriminately t)
>>> '(cperl-indent-level 4)
>>> '(cperl-indent-parens-as-block t)
>>> '(cperl-invalid-face 'default)
>> ,>
>>> '(cperl-array-face ((t (:inherit cperl-hash-face))))
>>> '(cperl-hash-face ((t (:underline t :inherit
>>> font-lock-variable-name-face))))
>>> '(cperl-nonoverridable-face ((t (:inherit default))))
>>
>> Thanks for collecting this!
>
> You're welcome.  I'm still trying to figure out if there are more
> settings to tweak.  Together with the settings that need to be added for
> a smooth perl-mode -> cperl-mode transition, they could be placed in a
> cperl-perl-mode-users-asylum-theme ;-)

Yes, a custom theme seems to be the way to go.
--=20
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 22:54:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 18:54:39 2023
Received: from localhost ([127.0.0.1]:43733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkXzp-00086j-FK
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:54:39 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33581)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qkXzj-00086S-Ft
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:54:36 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E1AF7100068;
 Sun, 24 Sep 2023 18:54:13 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695596052;
 bh=Ed4EJ+IkmEE1uoPWFowlWbcCZT0zJkQSpMgMOM3frAw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=lQfXrC0Uvpq5hQFkpMK8Qn+y83JfnWVYok7SICf8dqnG36EBNW7YKTD31SHDMPofZ
 rsLbBTEXiHPAHHwKfEzzJzt3n5yk8ZRCQglScd9yAA2TJ3GYzBi83eCxpRMp0hKsHx
 q2uj6f3JT3MwDcPq0o6tJADieuFpxyjslwVRl8jvI801VoNeqcm5Gydw9aiNC18uJt
 eX2a4deDbcyy6DsxV4czGQKcHyb/3G0GFsuU8VUamrEs0KHWaP7OBWo4u2N6s2tqg4
 c0krsyaTmEaJDJNTMrFxDfV1AteevACezwMrA8bLvdn0oaXZ6Z28UR4K4KdwkpEB4q
 dV6Ko2nVqUe4Q==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DD519100033;
 Sun, 24 Sep 2023 18:54:12 -0400 (EDT)
Received: from pastel (unknown [108.175.235.15])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A1DD312022A;
 Sun, 24 Sep 2023 18:54:12 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Harald =?windows-1252?Q?J=F6rg?= <haj@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <87jzsfw6t8.fsf@HIDDEN> ("Harald =?windows-1252?Q?J?=
 =?windows-1252?Q?=F6rg=22's?= message of
 "Sun, 24 Sep 2023 22:21:55 +0000")
Message-ID: <jwv7cofb3bn.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <87jzsfw6t8.fsf@HIDDEN>
Date: Sun, 24 Sep 2023 18:54:11 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.056 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Mauro Aranda <maurooaranda@HIDDEN>, rms@HIDDEN,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> 1. If I have something like:
>> my $some_code =3D "";
>> $some_code.=3D q(
>> my $counter =3D 0;
>> );
>>
>> If I put point at column 0 of the line "my $counter", and hit TAB, I get
>> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
>> options for making this work but I couldn't find anything.
>
> I consider the behavior of perl-mode to be a bug.

The behavior looks right to me, tho I haven't checked the code if it's
by accident (i.e. because of a bug in `perl-mode`) or not.

> Whatever is within the parens of  q(...) is a string, and will be
> assigned to the variable $some_code.  By "indenting", perl-mode changes
> the value of $some_code by adding spaces.  In my opinion, indenting
> should change the optical layout, but not the code!

Agreed in the sense that `indent-according-to-mode` (and
`indent-region`) should not touch this line.
But TAB should, using this part of `indent-line-function`:

    indent-line-function is a variable defined in =E2=80=98indent.el=E2=80=
=99.
    [...]
    If it is called somewhere where it cannot auto-indent, the function
    should return =E2=80=98noindent=E2=80=99 to signal that it didn=E2=80=
=99t.
    [...]

> The message is technically correct, and generally I consider the ability
> of cperl-mode to locate syntax errors useful.  But I understand that it
> can be annoying while you're typing (I myself don't see these messages
> because I use paredit-mode, but I understand that not everyone wants
> this electricity).  I guess that a way to optionally suppress these
> messages can be found.

I think the way we usually solve these tensions is to replace those
error messages with some kind of highlighting (and if necessary
`help-echo` properties to help the user figure out what this
highlighting is for).

E.g. in ELisp mode, a non-terminated string results in a string-highlight
that bleeds into the subsequent code.  And an argument wrongly placed on
the same line as something already indented within a subexpression as
in:

      (foo arg1
           (some sub
                 expression) badarg2)

gets a `font-lock-warning-face` together with a `help-echo`.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 22:40:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 18:40:36 2023
Received: from localhost ([127.0.0.1]:43728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkXmF-0007hs-H5
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:40:36 -0400
Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]:53415)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maurooaranda@HIDDEN>) id 1qkXmB-0007hc-JY
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:40:34 -0400
Received: by mail-oa1-x34.google.com with SMTP id
 586e51a60fabf-1cc87405650so3211833fac.2
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 15:40:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695595214; x=1696200014; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=ey8WhHvoRJUB0BMcLDgqJxHUOkV26ZBDlI7pyf0Ryx8=;
 b=LpxtpLIl1jPth6GLCzDqiVEoI8YgTcJIKR1yEiGssd8gN0PxcmwWHYxNSk/FiXiwS3
 K0F1KIHNGwBgTow5I9mSL54E/V2Nzy0R2AULo9ekfHfPnJ4sGSEpAQgOW61dTgJMvhMr
 y1XcQ7GNoBRBNquVafCymJPoYNLRHCTwa5C7z/FZm1ggKhe8qyfH2iYXhUcRUobsz5xF
 8LvTN9DS8zm1BvraUD3OOTi6bcAn75HlIC940/NRsa2V6rMekrOkSD/P9lCrP6S/1+CF
 +R1Lla1+qrdY23+M+947OVotXiDX2liD1KDoMl8cq6RKX7vIvXQ/HaUEwaxVfCv6zogZ
 Kskw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695595214; x=1696200014;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=ey8WhHvoRJUB0BMcLDgqJxHUOkV26ZBDlI7pyf0Ryx8=;
 b=kezPtNNC9ivR0jVfd5pHE60hASPcVqfpAyuPWtaeWQExrHfPzh8JH8Jaabbtftz61c
 xfwRx01Ilzh1D7gqQHovPCnNvyl6XTDqU9yoZTzCvgENLn6EQ1QoqOuSC/ul/dc/F3pH
 fbpnSRwHizW8Uhwfjhyh3YyBguqGYNwVQv84iyo2DLhIAf6n3SewLri3c9dBHnPcdY51
 swGE8vlMcPM5I/nLb3XMy7zM5HaFPV+7uVHWzVmem0kPcSkJH3tzliIWBgvOHaWobI3c
 zFkYEIRZYuwbWQTWkl1Q3oUCEB0w20DDskZiu7CuUtcYZmeOu3kdYf9y2JB5epK5+Dyb
 Oa+A==
X-Gm-Message-State: AOJu0YyE/4QmmkdTp6JGhPuvuh/OsfXIVQXmipII46T7RLvj5jFl1iVq
 lRFIdIYQXbgyxuR6GycqV44=
X-Google-Smtp-Source: AGHT+IG1akCyUZ/tFIovBYs7S9Nd7WoxW/wN7ureNiCZbhJp9KqxaDxlxorkrj1/x9uC/14Nsur5CA==
X-Received: by 2002:a05:6870:1602:b0:1bb:fa96:ae0e with SMTP id
 b2-20020a056870160200b001bbfa96ae0emr6518750oae.22.1695595213813; 
 Sun, 24 Sep 2023 15:40:13 -0700 (PDT)
Received: from [192.168.0.234] ([152.168.142.156])
 by smtp.gmail.com with ESMTPSA id
 f18-20020a637552000000b005777a50c14csm6607816pgn.0.2023.09.24.15.40.11
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 24 Sep 2023 15:40:13 -0700 (PDT)
Message-ID: <9915f301-1808-8548-df5e-040e3c028714@HIDDEN>
Date: Sun, 24 Sep 2023 19:40:10 -0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Subject: Re: bug#66050: Making perl-mode.el obsolete
Content-Language: en-US
To: =?UTF-8?Q?Harald_J=c3=b6rg?= <haj@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <87jzsfw6t8.fsf@HIDDEN>
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <87jzsfw6t8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>, rms@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

On 24/9/23 19:21, Harald Jörg wrote:
 > Mauro Aranda <maurooaranda@HIDDEN> writes:
 >
 >> In addition to what Jens Schmidt said, I can add that:
 >>
 >> 1. If I have something like:
 >> my $some_code = "";
 >> $some_code.= q(
 >> my $counter = 0;
 >> );
 >>
 >> If I put point at column 0 of the line "my $counter", and hit TAB, I get
 >> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
 >> options for making this work but I couldn't find anything.
 >
 > I consider the behavior of perl-mode to be a bug.
 >
 > Whatever is within the parens of  q(...) is a string, and will be
 > assigned to the variable $some_code.  By "indenting", perl-mode changes
 > the value of $some_code by adding spaces.  In my opinion, indenting
 > should change the optical layout, but not the code!

I might be completely wrong about this, but I have the feeling that
TAB behaves differently because in perl-mode I see TAB is bound to
indent-for-tab-command (this is not in emacs -Q, just in case it has
something to do with that).

So, TAB is not really indenting (as I said originally, sorry), but
adding a TAB character upon request.  And yes, in this case I want to
change the code, so TAB is not doing anything incorrect here, I think.

 >> 2. While I'm typing the above string, I get messages about string/RE not
 >> found:
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced
 >> parentheses 1092 1874)
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced
 >> parentheses 1092 1918) [2 times]
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced
 >> parentheses 1092 1962) [2 times]
 >>
 >> That's annoying.
 >
 > The message is technically correct, and generally I consider the ability
 > of cperl-mode to locate syntax errors useful.  But I understand that it
 > can be annoying while you're typing (I myself don't see these messages
 > because I use paredit-mode, but I understand that not everyone wants
 > this electricity).  I guess that a way to optionally suppress these
 > messages can be found.

Sure is correct, but I'm used to see messages like those when I have
really screwed up (typically editing an elisp file and making
forward-sexp fail).  Not while I'm typing.  To me, it feels better to
have kind of a visual indication, like when you are entering a string
and everything fontifies as a string so you are reminded you better
close it.

 >> So far, my settings for getting a perl-mode experience in cperl-mode,
 >> with emacs -Q: (taken from a custom file):
 >> '(cperl-highlight-variables-indiscriminately t)
 >> '(cperl-indent-level 4)
 >> '(cperl-indent-parens-as-block t)
 >> '(cperl-invalid-face 'default)
 > ,>
 >> '(cperl-array-face ((t (:inherit cperl-hash-face))))
 >> '(cperl-hash-face ((t (:underline t :inherit
 >> font-lock-variable-name-face))))
 >> '(cperl-nonoverridable-face ((t (:inherit default))))
 >
 > Thanks for collecting this!
 >

You're welcome.  I'm still trying to figure out if there are more
settings to tweak.  Together with the settings that need to be added for
a smooth perl-mode -> cperl-mode transition, they could be placed in a
cperl-perl-mode-users-asylum-theme ;-)





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 22:22:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 18:22:18 2023
Received: from localhost ([127.0.0.1]:43723 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkXUX-0004b8-J9
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:22:17 -0400
Received: from mout02.posteo.de ([185.67.36.66]:53993)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkXUV-0004av-Jq
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:22:16 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 909EA240101
 for <66050 <at> debbugs.gnu.org>; Mon, 25 Sep 2023 00:21:57 +0200 (CEST)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Rv0q81mbQz6tm4;
 Mon, 25 Sep 2023 00:21:56 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN> (Mauro Aranda's
 message of "Thu, 21 Sep 2023 11:13:51 -0300")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
Date: Sun, 24 Sep 2023 22:21:55 +0000
Message-ID: <87jzsfw6t8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>, monnier@HIDDEN, rms@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Mauro Aranda <maurooaranda@HIDDEN> writes:

> In addition to what Jens Schmidt said, I can add that:
>
> 1. If I have something like:
> my $some_code =3D "";
> $some_code.=3D q(
> my $counter =3D 0;
> );
>
> If I put point at column 0 of the line "my $counter", and hit TAB, I get
> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
> options for making this work but I couldn't find anything.

I consider the behavior of perl-mode to be a bug.

Whatever is within the parens of  q(...) is a string, and will be
assigned to the variable $some_code.  By "indenting", perl-mode changes
the value of $some_code by adding spaces.  In my opinion, indenting
should change the optical layout, but not the code!

> 2. While I'm typing the above string, I get messages about string/RE not
> found:
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced
> parentheses 1092 1874)
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced
> parentheses 1092 1918) [2 times]
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced
> parentheses 1092 1962) [2 times]
>
> That's annoying.

The message is technically correct, and generally I consider the ability
of cperl-mode to locate syntax errors useful.  But I understand that it
can be annoying while you're typing (I myself don't see these messages
because I use paredit-mode, but I understand that not everyone wants
this electricity).  I guess that a way to optionally suppress these
messages can be found.

The frequency of this error message exploded with the introduction of
jit-lock-mode - before that cperl-mode didn't scan the code for every
character you type.  I think that backing out of jit-lock-mode would not
be wise.

> So far, my settings for getting a perl-mode experience in cperl-mode,
> with emacs -Q: (taken from a custom file):
> '(cperl-highlight-variables-indiscriminately t)
> '(cperl-indent-level 4)
> '(cperl-indent-parens-as-block t)
> '(cperl-invalid-face 'default)
,>
> '(cperl-array-face ((t (:inherit cperl-hash-face))))
> '(cperl-hash-face ((t (:underline t :inherit
> font-lock-variable-name-face))))
> '(cperl-nonoverridable-face ((t (:inherit default))))

Thanks for collecting this!

--=20
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 22:13:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 18:13:17 2023
Received: from localhost ([127.0.0.1]:43710 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkXLo-0004Lm-LD
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:13:17 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38638)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qkXLi-0004LV-JH
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 18:13:14 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7ADC244221B;
 Sun, 24 Sep 2023 18:12:52 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695593570;
 bh=yAbm+N4sboSR31ZU9SxBJAiXu+Ow1/JPJRKjzEep89g=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=IdHvzNg7YWaL5OmHlBABFvE1FrQXkUD9p/xMxjUO7CKxq1MMad5Nr27Ro5NlU62Wx
 EVh+4o8zcmLZoURdGjUfWVer3VLcs6Yr6WM6QniYMPulQbARODEPdzwEA4pSlXfkY8
 fklUHc9qmC9fWHQ1bsYW6dZtlfr5xTdDI+YLPsX5U5M4CiOeRD7MZEi42//XDCHnK4
 mahbX80EFhoKuHRKpDbtd6xcwDiIxvRxBlwWviv749EIvj5wjqTFgFjG83ciCRgqaN
 50Xs0Q4dUCA+PKDXwV5xsbIQ0m20UN3x8wg6dPj6HiAUP/CLlr8E7Sql+S5qvMYN2s
 d25af7juTEAxA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A5550442219;
 Sun, 24 Sep 2023 18:12:50 -0400 (EDT)
Received: from pastel (unknown [108.175.235.15])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7A765120224;
 Sun, 24 Sep 2023 18:12:50 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Harald =?windows-1252?Q?J=F6rg?= <haj@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <87ttrjw997.fsf@HIDDEN> ("Harald =?windows-1252?Q?J?=
 =?windows-1252?Q?=F6rg=22's?= message of
 "Sun, 24 Sep 2023 21:29:08 +0000")
Message-ID: <jwvcyy7b64o.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN> <874jjka15f.fsf@HIDDEN>
 <jwvo7hrbmnv.fsf-monnier+emacs@HIDDEN>
 <87ttrjw997.fsf@HIDDEN>
Date: Sun, 24 Sep 2023 18:12:49 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.068 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Jens Schmidt <jschmidt4gnu@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>>> Yes, that should be covered.  The option name is somewhat ... weird, but
>>> I didn't find enough motivation to change it (or to fiddle with
>>> font-lock-level 3, which would be more in line with other modes).
>> That's a downvote for font-lock levels from me.
> Oh - I guessed that ignoring font-lock-levels was one of the things you
> meant when you wrote that cperl-mode is different than other major modes...

Levels are just not the right concept, because there are many ways to
"measure" and hence order by levels.

E.g. Most of the time, "level" is associated with the amount of effort
to figure out where to highlight, which is related to how much
understanding of the language is needed.  So it ends up providing
"lexical-level" information only at the lowest level and then as you
move up the level it gets more fancy and start accounting for grammar
and then static semantics (e.g. whether an identifier is a reference to
a local or global var).

Personally I want very little highlighting, but I'm usually more
interested in the "higher-level" highlighting, so I end up having to
choose the highest-level and then configuring most faces to be
indistinguishable from `default` :-(

> Sure.  I think that creating custom themes might be a bit beyond what
> *users* of c?perl-mode might want to do (I myself never did that).

I'm not talking about users creating a custom theme.  I'm talking about
cperl-mode providing a custom theme that gets it closer to something
like `perl-mode`.

> Emacs comes with themes which look better than anything I could create -

A cutom theme is nothing more than a set of Custom settings (vars and
faces), and users can enable *several* themes at the same time.  So we
can provide a `perl-mode` theme which just changes `cperl-mode` to look
and behave somewhat like `perl-mode` and that doesn't prevent users from
*also* using `modus-vivendi` or whichever "global color theme" they like.

A "custom theme" is like a minor mode, except that it's more declarative
so it better interacts with other user settings (or other themes which
may partly overlap).

> An overhaul of all of this would take some time, and probably a thick
> skin to weather the storm caused by cperl-mode users who are
> accustomed to the current colors.

I think you're overly pessimistic.  A few tweaks here and there
shouldn't cause too much noise, if they make things more
regular/consistent.

> It is a bit more than _changing_ faces.  In the match part, cperl-mode
> highlights metacharacters (|) as keywords, [] as functions, and
> character classes (\d \D \s and friends) as types.

I guess using `font-lock-function-name-face` for [] does sound quite
wrong, since it plays a very different role from "the place where an
identifier is defined as a function-like thingy", which is what this
face is typically used for elsewhere.
I'd recommend to highlight them as something like keywords as well.
[ BTW, ELisp mode uses `font-lock-regexp-grouping-construct` for some
  of that.  ]

"Types" also sounds odd for \d and friends but the harm is probably
a bit more mild.

> The substitution part can be actual Perl code, and cperl-mode will
> fontify it as Perl code.

IIRC `perl-mode` also tries to fontify the replacement part as Perl code
(when it does contain Perl code).  I can't remember if I managed to make
it work for all the relevant cases, but I haven't heard any complaint
from `perl-mode` users when I made this change, so if `cperl-mode` does
it in more cases, I don't think `perl-mode` users will complain when
switching to `cperl-mode`.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 21:29:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 17:29:33 2023
Received: from localhost ([127.0.0.1]:43688 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkWfU-00038o-Tb
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 17:29:33 -0400
Received: from mout01.posteo.de ([185.67.36.65]:44899)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkWfP-00038X-Mh
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 17:29:31 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id B152F240029
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 23:29:09 +0200 (CEST)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RtzfD5zXtz9rxL;
 Sun, 24 Sep 2023 23:29:08 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <jwvo7hrbmnv.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Sun, 24 Sep 2023 11:58:48 -0400")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN> <874jjka15f.fsf@HIDDEN>
 <jwvo7hrbmnv.fsf-monnier+emacs@HIDDEN>
Date: Sun, 24 Sep 2023 21:29:08 +0000
Message-ID: <87ttrjw997.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Jens Schmidt <jschmidt4gnu@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>> It would need more work.  An important step is to identify the features
>> we should be able to switch off per customization.  I am somewhat
>> reluctant to add more options to cperl-mode if they can't be bundled
>> (like `cperl-hairy' does):  The possible combinations of options are a
>> nightmare to document, to test, and also to learn for new users.
>
> BTW, "bundling" is what Custom themes are for.
> At least to solve the "learn for new users" side of the problem.
> Not to say we should add more options (or more fine-grained options),
> but it can be helpful to simplify the code (a.g. avoid having to test both
> `cperl-dont-be-hairy` and `cperl-highlight-variables-indiscriminately`).

Agreed.

cperl-mode has many customization options I've never tried (nor fully
understood).  These days, "Perl Best Practices" (the book, almost 20
years old by now) and perltidy (the tool) could be taken as guidelines
for new users.  Unfortunately, Perl has lots of very knowledgeable old
users, some of which are rather religious in their opinions - and
perltidy lets all of them have it their way.

I *guess* that for new users a manual or tutorial would be helpful, but
don't know whether I can spend the time to write it (nor whether I'm the
right person to do it).

>> Yes, that should be covered.  The option name is somewhat ... weird, but
>> I didn't find enough motivation to change it (or to fiddle with
>> font-lock-level 3, which would be more in line with other modes).
>
> That's a downvote for font-lock levels from me.

Oh - I guessed that ignoring font-lock-levels was one of the things you
meant when you wrote that cperl-mode is different than other major modes...

>> This seems doable.  The easy way is to make cperl-hash-face and
>> cperl-array-face customizable so that they can be "downgraded" to
>> font-lock-variable-name-face.
>
> They're faces, so they are already customizable, e.g. via Custom themes.

Sure.  I think that creating custom themes might be a bit beyond what
*users* of c?perl-mode might want to do (I myself never did that).
Emacs comes with themes which look better than anything I could create -
and adding four extra faces which fit these palettes needs experience I
don't have.

>>> 3. Variable sigils ("$", "%", "@") should not be highlighted at all.
>> I doubt that this is worth the effort in cperl-mode... and guess it
>> should be tolerable.  The sigil *is* part of the variable, after all.
>
> FWIW, I agree.  We don't have to satisfy all the wishlist items of
> previous `perl-mode` users.

>>> 4. Builtins ("shift", "ref", "defined") should not be highlighted at
>>>    all.
>> This is an area where cperl-mode is a bit untidy.  It has two different
>> faces for builtins, depending on whether they can be overridden by user
>> functions with the same name.  Many occur in two lists for
>> fontification, only the first one ever applies.  This has *some*
>> justification because builtins allow sloppy syntax (omitting
>> parentheses).
>
> What part of this is "untidy" or "a mess"?  I can see why you'd say it
> w.r.t Perl having those fine distinctions, but the corresponding
> features in `cperl-mode` seem to just reflect Perl's syntax&semantics.
> Or is it the implementation part to distinguish those two kinds of
> builtins messy?

It is the implementation.

There's some overlap in the "regex-opt" lists of keywords
(e.g. "require", "for").  Some of the "builtin functions" are actually binary
operands ("eq" and friends).  "use" is fontified as a keyword, but "no"
(which is sort of "do not use") is fontified as a non-overridable
function.  The builtins use font-lock-type-face, which isn't
appropriate.  "shift" is fontified as non-overridable, but it can be
overridden in recent Perl versions.

An overhaul of all of this would take some time, and probably a thick
skin to weather the storm caused by cperl-mode users who are accustomed
to the current colors.

>> When we clean up this mess, adding a way to not
>> highlighting them at all should not be too difficult.
>
> AFAIK that can also be solved by changing the faces' appearance, hence
> without changing the code.

Agreed.

>>> 5. Package names should be highlighted as font-lock-constant-face rather
>>>    than font-lock-function-face.
>>
>> perl-mode uses font-lock-function-name-face in the package declaration
>> but font-lock-constant-face in 'use' statements.  I can't say whether
>> that is intentional.
>>
>> Someone once suggested to use font-lock-type-face (because packages
>> usually are classes, and classes are sort-of types).  This is one of the
>> cases where I doubt that adding more options will actually improve
>> things.
>
> I think it's more important here to choose a "meaningful/consistent"
> behavior than to reproduce what was done historically in `perl-mode` or
> `cperl-mode`.

Agreed!

>>> 7. Regexps should be highlighted as font-lock-string-face.
>> This can be added as an option with some effort.  Regexps aren't
>> strings, but alas, almost no syntax highlighter takes the same effort as
>> cperl-mode to display them.
>
> Here again, I believe it's a small matter of changing faces.

It is a bit more than _changing_ faces.  In the match part, cperl-mode
highlights metacharacters (|) as keywords, [] as functions, and
character classes (\d \D \s and friends) as types.  The substitution
part can be actual Perl code, and cperl-mode will fontify it as Perl
code.

For example, the following substitution is rather colorful in cperl-mode
but (sorry) dull in perl-mode:

   s/\d+|[IVXLCDM]+(\D)/sqrt(2) . "_$1_"/eri;

Making these highlightings optional would, as far as I know, require to
define an extra set of faces, which could then be mapped either to their
cperl-mode values (cperl-mode style) or all to font-lock-string-face
(perl-mode style).

-- 
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 16:01:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 12:01:48 2023
Received: from localhost ([127.0.0.1]:43485 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkRYK-0005fM-Gf
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 12:01:48 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33503)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qkRYJ-0005f9-18
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 12:01:47 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CDBF080705;
 Sun, 24 Sep 2023 12:01:29 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695571288;
 bh=J3jw19ad0sSYqtAW7YXBpaolQqGpzGLVAwpV1XE3gnk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=G6Ig8Uzb4nO2plt8ECZurfUt8KuXHYNKD3Vl/gdJGsxEM2MF8xwd5dFNDisT1WZom
 QRBJn6uESrhmBYjlZOIufzsNhoF0bwF9Kf4zPByjkboWV75jcDlnKG9FmwES4Ce9HD
 ebmnSGJ2bWY5U3gjA+hIJ0psm0nOyNlfBFzCNnB4a0qtJEBZERnOlxPQqyVS2UkIuw
 O0Pdf6y55LJncabNKceKAIUdRvsoWEN8RgkTPK+XpXJNiRVBC3WjF/6arbTI9CjV1u
 a9UcTA89goJK43Cg4MKv6zUMiTafGf6Fy4m4KbD1ukPFlxavbnTl3F4oQrQS1+3C7H
 SjOmo+ExoJ1XA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C555780595;
 Sun, 24 Sep 2023 12:01:28 -0400 (EDT)
Received: from pastel (unknown [108.175.235.15])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 95F901203D4;
 Sun, 24 Sep 2023 12:01:28 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <CADwFkmkhAJe1LvYWYdGPrPWkBaByTvRJ_JC2TTWZLUdqXbec-w@HIDDEN>
 (Stefan Kangas's message of "Sun, 24 Sep 2023 00:31:15 -0700")
Message-ID: <jwvil7zblya.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <jwvil87fos2.fsf-monnier+emacs@HIDDEN>
 <87y1gw8kof.fsf@HIDDEN>
 <CADwFkmkhAJe1LvYWYdGPrPWkBaByTvRJ_JC2TTWZLUdqXbec-w@HIDDEN>
Date: Sun, 24 Sep 2023 12:01:27 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.022 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: eliz@HIDDEN, 66050 <at> debbugs.gnu.org,
 Harald =?windows-1252?Q?J=F6rg?= <haj@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Does anyone object to or see any problems with the above?

You can put two votes under "Stefan".


        The first





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 15:59:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 11:59:16 2023
Received: from localhost ([127.0.0.1]:43481 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkRVr-0005ZY-Rj
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 11:59:16 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27029)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qkRVo-0005ZK-VB
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 11:59:13 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 15471440B9B;
 Sun, 24 Sep 2023 11:58:55 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695571129;
 bh=jiSIekQ12ky3MaJAsYiztgd0m/UvFGAEqT3pOIfLfjY=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=SOWCMb9Bbq+2Pr8pkt2bNY1Mu+95Uem8PBFVh3ZPs2I7w15q99j8+ZsZ73s3dQyIu
 Vwmb4HCK3IwIP+ty0sUbwgjRmdT2OI+b2AyfTkkay/dibmEtn3xT1VmURtVLZJCNr9
 fWDgfTfrCseSyBz6CdbUuK9M1OXhmMd63TfqAyjILM9G7411OegdV4R5yVZ8W5jBnl
 6uz97nnRbjTaWLjHkZbZI1t89Pjl2KfcX45SqE4UpC7FhwQydAu7my5yu8qh0iX2KH
 LEThV7uQ5GL5agrhIsPUMC3rl+oyToXSOzPO82C8+KBuC1/ppUNgysv327ATDvqIMy
 z+h7Wd5q3QSkQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2418744083E;
 Sun, 24 Sep 2023 11:58:49 -0400 (EDT)
Received: from pastel (unknown [108.175.235.15])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EA40112041A;
 Sun, 24 Sep 2023 11:58:48 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Harald =?windows-1252?Q?J=F6rg?= <haj@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <874jjka15f.fsf@HIDDEN> ("Harald =?windows-1252?Q?J?=
 =?windows-1252?Q?=F6rg=22's?= message of
 "Sun, 24 Sep 2023 00:02:52 +0000")
Message-ID: <jwvo7hrbmnv.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN> <874jjka15f.fsf@HIDDEN>
Date: Sun, 24 Sep 2023 11:58:48 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.071 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Jens Schmidt <jschmidt4gnu@HIDDEN>,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> It would need more work.  An important step is to identify the features
> we should be able to switch off per customization.  I am somewhat
> reluctant to add more options to cperl-mode if they can't be bundled
> (like `cperl-hairy' does):  The possible combinations of options are a
> nightmare to document, to test, and also to learn for new users.

BTW, "bundling" is what Custom themes are for.
At least to solve the "learn for new users" side of the problem.
Not to say we should add more options (or more fine-grained options),
but it can be helpful to simplify the code (a.g. avoid having to test both
`cperl-dont-be-hairy` and `cperl-highlight-variables-indiscriminately`).

> Yes, that should be covered.  The option name is somewhat ... weird, but
> I didn't find enough motivation to change it (or to fiddle with
> font-lock-level 3, which would be more in line with other modes).

That's a downvote for font-lock levels from me.

> This seems doable.  The easy way is to make cperl-hash-face and
> cperl-array-face customizable so that they can be "downgraded" to
> font-lock-variable-name-face.

They're faces, so they are already customizable, e.g. via Custom themes.

>> 3. Variable sigils ("$", "%", "@") should not be highlighted at all.
> I doubt that this is worth the effort in cperl-mode... and guess it
> should be tolerable.  The sigil *is* part of the variable, after all.

FWIW, I agree.  We don't have to satisfy all the wishlist items of
previous `perl-mode` users.

>> 4. Builtins ("shift", "ref", "defined") should not be highlighted at
>>    all.
> This is an area where cperl-mode is a bit untidy.  It has two different
> faces for builtins, depending on whether they can be overridden by user
> functions with the same name.  Many occur in two lists for
> fontification, only the first one ever applies.  This has *some*
> justification because builtins allow sloppy syntax (omitting
> parentheses).

What part of this is "untidy" or "a mess"?  I can see why you'd say it
w.r.t Perl having those fine distinctions, but the corresponding
features in `cperl-mode` seem to just reflect Perl's syntax&semantics.
Or is it the implementation part to distinguish those two kinds of
builtins messy?

> When we clean up this mess, adding a way to not
> highlighting them at all should not be too difficult.

AFAIK that can also be solved by changing the faces' appearance, hence
without changing the code.

>> 5. Package names should be highlighted as font-lock-constant-face rather
>>    than font-lock-function-face.
>
> perl-mode uses font-lock-function-name-face in the package declaration
> but font-lock-constant-face in 'use' statements.  I can't say whether
> that is intentional.
>
> Someone once suggested to use font-lock-type-face (because packages
> usually are classes, and classes are sort-of types).  This is one of the
> cases where I doubt that adding more options will actually improve
> things.

I think it's more important here to choose a "meaningful/consistent"
behavior than to reproduce what was done historically in `perl-mode` or
`cperl-mode`.

>> 7. Regexps should be highlighted as font-lock-string-face.
> This can be added as an option with some effort.  Regexps aren't
> strings, but alas, almost no syntax highlighter takes the same effort as
> cperl-mode to display them.

Here again, I believe it's a small matter of changing faces.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 10:41:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 06:41:26 2023
Received: from localhost ([127.0.0.1]:41141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkMYI-0002la-Bz
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 06:41:26 -0400
Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:45301)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qkMYD-0002lG-JQ
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 06:41:25 -0400
Received: by mail-lj1-x236.google.com with SMTP id
 38308e7fff4ca-2c12ae20a5cso73320761fa.2
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 03:41:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695552063; x=1696156863; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Av6Cn5gAxFzJCx+NWkaBUnHZve17T74wtcIJdvhrFMo=;
 b=YoLMysH5QaxW8JmN4lwzS1zrzrtr4qGnnTBJGFmlY9bedAIVozJbMpay/oqtYNtloY
 kp7GwLcZ1+IGREXvVr2vSR9RbW3J/NyrNn9dtCUd4iZXzuM37qeZ4nw6VpXiOHm27nki
 ccXvIrM4EUd2NtdpOvrkJsn7aUmepC9YLEZtaA6xXyM6ayJnlHQ90ijTMZDUWJJLKizm
 YI6c6FTN6vAfnHGHWcraqQh+i36yOL1zV5X3z0KZjAvxXfFmGU9TAe5mBkosTpguJvNt
 UsrTGPXhidF65i6In4X2v7bLAv40e3KCXTpLrU4BjKMLPv58XtKuXzy8Fb5MujEEJ3YO
 gcBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695552063; x=1696156863;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=Av6Cn5gAxFzJCx+NWkaBUnHZve17T74wtcIJdvhrFMo=;
 b=IOx4FGNNpcPPt7A6g3OMUTpiHLbD1TF4oLr2iMmWLVEITOZsNBe4euwHUrkvWFRCrD
 yGGwtBmJaK/6R/fPEsCJxkucgUBpQa4kAekVJuSFbAuhXk/kn+5mkZLq3Yh8DMPNQHDx
 +pC+hVM3xiWTeXFf9i4BdWIO2z2rqjL+iUj5iLDWahgfhVe0S8lmBskdSUO6liDuZJlL
 obzpBgms4/o1HO1LGrq7B+orRloI0Hrit02x8PoYkfzFCh1IhbLaCkKe8Xy1lpuGFMG3
 Uqipl088CmIaq8iS9z+3i4dSTgp2Uqroo03eq+q1GDoQOKJKPAwIFYVlnEDN2F/8/UyO
 KLNA==
X-Gm-Message-State: AOJu0YzVAhdoN7wpbJRB2lhzF5ICujyiHPVyaOJXToL8CzWeuJB+Y+Gj
 Fs2SaON9RxJJC1aol5qgi5TpOrwf0YP8nii0H0M=
X-Google-Smtp-Source: AGHT+IE1Y/Y56HWf92XnUYGiiSJWbHHZwdSdVJliN5/PHJSqewEmPo8gfdtMxVbQ25TiGrm7NfJTaGAap1kSBrVVGbI=
X-Received: by 2002:a2e:9d18:0:b0:2bc:c557:84a0 with SMTP id
 t24-20020a2e9d18000000b002bcc55784a0mr3179847lji.30.1695552063404; Sun, 24
 Sep 2023 03:41:03 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 24 Sep 2023 03:41:02 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <878r8wa67e.fsf@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <878r8wa67e.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sun, 24 Sep 2023 03:41:02 -0700
Message-ID: <CADwFkmnXTA68WRGHgszGMiq0wMR9-U0M1DbC-=sppHmsMo3=wA@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: =?UTF-8?B?SGFyYWxkIErDtnJn?= <haj@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Harald J=C3=B6rg <haj@HIDDEN> writes:

> But I think that making cperl-mode.el acceptable for users of
> perl-mode.el is doable and might be worth the one-time effort.

Great!  It sounds like a plan, then.

> I intend to continue maintaining cperl-mode.el, though I've been a bit
> distracted this year.

BTW, feel free to mark yourself as a maintainer in the cperl-mode.el
header.  I think it'd be useful to provide clarity on the fact that it
is, in fact, actively maintained.

>> - cperl-mode.el used to be maintained outside of Emacs, but this is no
>>   longer the case.  All relevant development has been merged into and
>>   takes place in emacs.git.
>
> In my opinion, this makes sense.  Several Emacs developers have
> continually worked on cperl-mode.el to care for obsoletions or
> modernizations.  I don't think a place outside of emacs.git could
> provide this.

Fully agreed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 07:31:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 03:31:38 2023
Received: from localhost ([127.0.0.1]:40923 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkJac-0005su-Dx
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 03:31:38 -0400
Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:55656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qkJaY-0005sg-Co
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 03:31:36 -0400
Received: by mail-lj1-x22a.google.com with SMTP id
 38308e7fff4ca-2c00e1d4c08so73208851fa.3
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 00:31:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695540676; x=1696145476; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Ijiw/tQ963i6627SaOgXBwd8wJqRcf2sYCYJwt+mC4w=;
 b=Shhu6k/XystZwtxpWHmWm0vpPiZwhJNeEV3CV5S0RRluFYHNdiOLjoJQYdq9DvrVPP
 9bPb2n7Zi7YzLYttJ6ZAQDpLRcPYbnSkVNsfM2dh8kHOv0+bJfFZ0F9xfVajPruUlU7n
 LaF9g9NY99q0TBd5wYE1VSY0+ytJEEOc858ZHslmOFZmVudLVtOB5Z5CwOxot+svL/D9
 B4pz9s0PUx7PDmundgYjW8GICxC9NhYOe9crjdkaRm+oIS8Ez2omAYyTHX10n9S1SoYV
 N2sFHLQYUWLmGoddZsY4z2gvx1RIHBv2R/AnK+1IuW9JMx9fYTkR1EyOhx1uhpRlBmEf
 wZ9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695540676; x=1696145476;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=Ijiw/tQ963i6627SaOgXBwd8wJqRcf2sYCYJwt+mC4w=;
 b=mo86DVm2Zt+iA9J9fmnjXodmi3zz0wtn3yR4WciT0Jy4Wn9eKvgrG08b8alIh5psE4
 41FyC2v6Am7+F7QOun2D/wy3Vv44QWRvFvrVnMDeVBUOiktX6SajCDORrEGdxJrz9oPD
 h/OESWLwAvXbWbe+skGMvMtydkdiMjFVni8EZ7LQZ9UdMc+sIMv1fDnIypa82g3CISeS
 6ccHlpQwtGXmGCgvhHLFHVUwQ/G/sKSvzEPNO3um7uM9zb+DNu94uGeseqxBLwXF3iUM
 6iUQ4ltCpfe6yv3Oe4HhneTppO2i/KD+dOAD514soaj4rAHcLiIuIqtEKzvUpj8tgivJ
 eHmQ==
X-Gm-Message-State: AOJu0YzZ9oXekzgpfDEnN/mUWNSmvdpKWX645FxiXBhAHww+u/OiHeHw
 tyyVMhcUivr8tdbxhnZjtzwV34r7M34qxAZoXAg=
X-Google-Smtp-Source: AGHT+IGz35nmRAtpJCuAUm3lWFXBgkktj7PAERTzxMpxe5U2pqu5A43pfiD0n05BOYbPa1htOUNFlnBv2zMghIABO50=
X-Received: by 2002:a05:651c:cc:b0:2bf:f6f6:9fd9 with SMTP id
 12-20020a05651c00cc00b002bff6f69fd9mr2636183ljr.0.1695540676294; Sun, 24 Sep
 2023 00:31:16 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 24 Sep 2023 00:31:15 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87y1gw8kof.fsf@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <jwvil87fos2.fsf-monnier+emacs@HIDDEN> <87y1gw8kof.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sun, 24 Sep 2023 00:31:15 -0700
Message-ID: <CADwFkmkhAJe1LvYWYdGPrPWkBaByTvRJ_JC2TTWZLUdqXbec-w@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: =?UTF-8?B?SGFyYWxkIErDtnJn?= <haj@HIDDEN>, 
 Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: eliz@HIDDEN, 66050 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Harald J=C3=B6rg <haj@HIDDEN> writes:

> Stefan Monnier <monnier@HIDDEN> writes:
>
>> I think the best option is to obsolete `perl-mode` and to encourage
>> people to report bugs against `cperl-mode` when they find it doesn't
>> work as well as their beloved `perl-mode` :-)
>
> +1

How about this basic plan:

First, we make perl-mode.el obsolete on master.

Second, we announce that people should report bugs against cperl-mode
where they want it to be more like perl-mode, and that we are looking
for interested volunteers to help work on implementing this.

Third, we close all bugs against perl-mode as wontfix, and recommend the
reporter to see if it is fixed by using cperl-mode instead.

Fourth, if we don't have enough tangible progress in cperl-mode, we can
unobsolete perl-mode.el on the Emacs 30 release branch, right after it
is cut, while keeping it in obsolete/ on master.  That would give us
additional time to make sure cperl-mode.el is up to scratch.

My idea here is to motivate people to work on cperl-mode, avoid
unnecessary bikeshedding, and to take a firm stance on the direction we
want to take as a project here.

Does anyone object to or see any problems with the above?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 05:31:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 24 01:31:14 2023
Received: from localhost ([127.0.0.1]:40888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkHi6-0002UW-9V
	for submit <at> debbugs.gnu.org; Sun, 24 Sep 2023 01:31:14 -0400
Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:60913)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qkHi3-0002UI-Et
 for 66050 <at> debbugs.gnu.org; Sun, 24 Sep 2023 01:31:12 -0400
Received: by mail-lf1-x12c.google.com with SMTP id
 2adb3069b0e04-503065c4b25so6758425e87.1
 for <66050 <at> debbugs.gnu.org>; Sat, 23 Sep 2023 22:30:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695533453; x=1696138253; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=unzUw2BWX3akmaSL5AAKn1HumxN9a9wRA5GXfy57S+8=;
 b=PWZDg6rR8f8g/N90a8+mhPED6M3Dn6R74b5z9HCzSLfo4u+rp9CYTxilofAldrwEKf
 R+SGWB/Pqd1Zpy8XvJGtQhgRdQPXalGiTPvSD9RoCYQc5yVYmcUvqICOjw/8ZnGxmjrC
 KdAs1XC3PGq+KsY2tAjc3CmhEQZGErX15NCe2IEXxVPQP5Pm5YmAcTSC8GFSSiQ16bTp
 V7Z7SeixwK4C1uoClq72wA1D0CfADmZccWR8Wi49T6NKkQ+pgcJIaC1xLrP5GPG3X9yM
 goF06bSsemawqemJnmCMaQNxttpm1LL2PmK5NqzDROL54wxQSTT9W3qwIg4O10EMI4wT
 xDZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695533453; x=1696138253;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=unzUw2BWX3akmaSL5AAKn1HumxN9a9wRA5GXfy57S+8=;
 b=prC/72l96ZgnAqUobtLBIKHruHpOFbBYB01OFKvCLXfLp2lBYjAlh8E2A9mY9crhOD
 qCIlD7W6yBetmOAVT97frZSReZuxns/xcTiLbJfXkgJyHUdzXCVtQE0RlP8W+oiv06Kt
 ftfXrxMCYZ5+qmrTHpToqQgotczMJ7xfSHlECor9I+pX9Nx9hJNDR5FkFSeFwEN2/ct6
 9mjKdTX2tQ7d7bs2TEg5ylg4VnuZHKEVQZjN+PYlhGZIcKDrHmvEES9X41r7gX/OWewS
 K0kmhh8A1xhU71eESLgRsaHwIk/TkzG89U80gsaVAOIBNWiB4AHxNhPqQU2kXEMP+nX9
 DbMA==
X-Gm-Message-State: AOJu0Yy0qXmHk/QdPcuydUy8S1NFSGtxf85sH8GegIfzObzbrKFK+zmJ
 EEYw9TlbRNq56ueawCP/vr1l+O0bae13bhMn82U=
X-Google-Smtp-Source: AGHT+IG0WZkeMj4p9MLeVQes4zmqLEUlch+4+/nguj+VXfgJAMZZQx6oTHozQjNtPt8peTo5NXHkAgcSC3toJtUzd4Q=
X-Received: by 2002:ac2:4c9c:0:b0:503:18c3:d87a with SMTP id
 d28-20020ac24c9c000000b0050318c3d87amr2620924lfl.21.1695533453141; Sat, 23
 Sep 2023 22:30:53 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 23 Sep 2023 22:30:52 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <a7cb720b-7124-9bbf-f220-f79d97aee7da@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <jwvedirip8b.fsf-monnier+emacs@HIDDEN>
 <a7cb720b-7124-9bbf-f220-f79d97aee7da@HIDDEN>
MIME-Version: 1.0
Date: Sat, 23 Sep 2023 22:30:52 -0700
Message-ID: <CADwFkmm3x6gYk0NPtpYGni_vZv=ROscyUpnHWbKGdJ1GKYTf4g@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Mauro Aranda <maurooaranda@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org, rms@HIDDEN,
 haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Mauro Aranda <maurooaranda@HIDDEN> writes:

> On 21/9/23 11:20, Stefan Monnier wrote:
>  >> What would be a good way of collecting this information?
>  >
>  > I'd say: use `cperl-mode` and report regressions compared to what
>  > `perl-mode` used to do via `M-x report-emacs-bug`.
>  >
>
> OK, I'll do that.=C2=A0 But Someone will have to keep track of the bug
> reports that need to be handled before calling perl-mode obsolete.

If the bugs include the word "perl" somewhere in Subject, tracking them
for this purpose will not take much effort.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 00:44:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 23 20:44:24 2023
Received: from localhost ([127.0.0.1]:40769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkDEW-0003AK-9o
	for submit <at> debbugs.gnu.org; Sat, 23 Sep 2023 20:44:24 -0400
Received: from mout02.posteo.de ([185.67.36.66]:35719)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkDER-0003A4-N9
 for 66050 <at> debbugs.gnu.org; Sat, 23 Sep 2023 20:44:22 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id B8096240101
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 02:44:01 +0200 (CEST)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RtS1Y10mYz6tw8;
 Sun, 24 Sep 2023 02:44:01 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <jwvil87fos2.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Mon, 18 Sep 2023 12:14:28 -0400")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <jwvil87fos2.fsf-monnier+emacs@HIDDEN>
Date: Sun, 24 Sep 2023 00:44:00 +0000
Message-ID: <87y1gw8kof.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>> I don't think it makes sense for us to spend our meager resources
>> maintaining two major modes for Perl.  I would like to gauge what people
>> think about obsoleting perl-mode.el.
>
> I think I sadly agree.
>
> I've been a supporter of `perl-mode` because when I had to edit Perl
> files, I always found `cperl-mode` not to be to my taste (too different
> from other Emacs major modes). ...

Are there conventions or general expectations for major modes?  I would
love to make cperl-mode "less exotic", but Perl *is* a bit exotic, and
the "Major Mode Conventions" seem to be more or less obeyed (they cover
developer conventions, not user expectations).  Both modes derive from
prog-mode, and both have no built-in completion nor ElDoc support... but
Perl language servers can add these to some extent.

Another convention is documented in the "Levels of Font Lock", but neither
of the Perl modes makes use of the three levels as recommended.

> [...]
> I think the best option is to obsolete `perl-mode` and to encourage
> people to report bugs against `cperl-mode` when they find it doesn't
> work as well as their beloved `perl-mode` :-)

+1
-- 
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 24 Sep 2023 00:03:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 23 20:03:17 2023
Received: from localhost ([127.0.0.1]:40764 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkCaj-00028V-9X
	for submit <at> debbugs.gnu.org; Sat, 23 Sep 2023 20:03:17 -0400
Received: from mout01.posteo.de ([185.67.36.65]:42819)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkCad-00028C-WC
 for 66050 <at> debbugs.gnu.org; Sat, 23 Sep 2023 20:03:16 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 18EA2240027
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 02:02:53 +0200 (CEST)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RtR6505pVz6twC;
 Sun, 24 Sep 2023 02:02:52 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Jens Schmidt <jschmidt4gnu@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <87fs3cv7mg.fsf@HIDDEN> (Jens Schmidt's message of
 "Sun, 17 Sep 2023 22:59:19 +0200")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN>
Date: Sun, 24 Sep 2023 00:02:52 +0000
Message-ID: <874jjka15f.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Jens Schmidt <jschmidt4gnu@HIDDEN> writes:

> [...]
> Just to avoid misunderstandings: I have tried so far everything with
> `cperl-hairy' unchanged from default nil.  I guess that non-nil makes
> cperl-mode even more electric, etc., which is actually the opposite
> direction of what I'm heading for.

Indeed.  I always use `cperl-hairy' and am not really aware how
cperl-mode looks without it, but I know that it is still more colourful
than perl-mode.

>> Is it just a matter of setting some already existing options or is
>> "more work" needed?
>
> That's more a question for Harald, I think, since I'm not very well
> acquainted with cperl-mode.

It would need more work.  An important step is to identify the features
we should be able to switch off per customization.  I am somewhat
reluctant to add more options to cperl-mode if they can't be bundled
(like `cperl-hairy' does):  The possible combinations of options are a
nightmare to document, to test, and also to learn for new users.

> I can state only what I have noticed this afternoon, after some very
> cursory comparison and review.  Hoping this is the right place for such
> a wish list:
>
> 1. All scalar references should be hightlighted with
>    font-lock-variable-name-face.
>
> Seems that `cperl-highlight-variables-indiscriminately' provides that.

Yes, that should be covered.  The option name is somewhat ... weird, but
I didn't find enough motivation to change it (or to fiddle with
font-lock-level 3, which would be more in line with other modes).

> 2. Arrays and hashes should be highlighted just like scalars, in
>    font-lock-variable-name-face.

This seems doable.  The easy way is to make cperl-hash-face and
cperl-array-face customizable so that they can be "downgraded" to
font-lock-variable-name-face.

cperl-mode.el goes to great lengths to identify usage of array and hash
variables in situations where they don't look like arrays (for example,
$var is a scalar, but $#var belongs to an array), and this
distinction is helpful for Perl beginners (it was for me).

But I see that these two extra faces of cperl-mode are somewhat
nonstandard, and they don't play well with all of the Emacs themes (nor
can we expect the developers of themes to take these faces into
account).

> 3. Variable sigils ("$", "%", "@") should not be highlighted at all.

I doubt that this is worth the effort in cperl-mode... and guess it
should be tolerable.  The sigil *is* part of the variable, after all.

> 4. Builtins ("shift", "ref", "defined") should not be highlighted at
>    all.

This is an area where cperl-mode is a bit untidy.  It has two different
faces for builtins, depending on whether they can be overridden by user
functions with the same name.  Many occur in two lists for
fontification, only the first one ever applies.  This has *some*
justification because builtins allow sloppy syntax (omitting
parentheses).  When we clean up this mess, adding a way to not
highlighting them at all should not be too difficult.

> 5. Package names should be highlighted as font-lock-constant-face rather
>    than font-lock-function-face.

perl-mode uses font-lock-function-name-face in the package declaration
but font-lock-constant-face in 'use' statements.  I can't say whether
that is intentional.

Someone once suggested to use font-lock-type-face (because packages
usually are classes, and classes are sort-of types).  This is one of the
cases where I doubt that adding more options will actually improve
things.

> 6. Unquoted hash keys before "=>" should not be highlighted at all.

They are highlighted as strings because the *are* strings.  This is not
implemented in perl-mode, and it causes misinterpretations like in
Bug#45083: Not highlighting barewords but also preventing them to be
picked up by some other highlighting rule might be tricky.

> 7. Regexps should be highlighted as font-lock-string-face.

This can be added as an option with some effort.  Regexps aren't
strings, but alas, almost no syntax highlighter takes the same effort as
cperl-mode to display them.

> When I switch on cperl-mode, there is little left which is *not*
> highlighted ...
>
> 8. Re-indentation of blocks should not merge else/elsif keywords with
>    preceeding curlies.
>
> 9. Re-indenting a region should not adjust positions of after-code
>    comments.
>
> Ah, cperl-style "PBP" covers 8. and 9. above!

You are welcome :)

> 10. Some parts of cperl-mode look, well, over-engineered.  Function
>     `cperl-find-pods-heres' is a stunning 1000+ lines long and obviously
>     features regexps with more than 20 subres.

I agree that this function isn't a piece of beauty.  It was written
before non-capturing groups were added to Emacs and never thoroughly
reengineered.  This makes maintenance of that part difficult, but should
not affect users.

>     BTW, on Image/ExifTool.pm as of version 12.16 I get errors in "emacs
>     -Q" when switching on cperl-mode, I think because of that function.

It would be an interesting exercise to find out which options cause
this.  I can reproduce it (it spits out an unjustified error message,
but apparently without any consequences).  It does not happen with my
settings, and it does not happen if I explicitly call
cperl-fund-pods-heres with any settings.

> 11. Last not least, these pseudo-variables on the page labeled "Short
>     extra-docs."  always bug me.  Packing arbitrary documentation in
>     variables seems rather strange and rather non-standard.

Strange and non-standard for sure, but harmless.

> While that does not sound much:
>
> - I have the impression that, despite so many options in cperl-mode
>   being available, just the right ones to "turn cperl-mode into
>   perl-mode" are missing.  But that could also be because I haven't
>   found them yet ...

Correct, such an option does not exist.

> - There's probably more to it than that.  Having some
>   `like-perl-mode-sans-bugs' umbrella would be not only helpful to make
>   this more easily customizable, but also to have something to "attach"
>   future development to.  Not sure how to express that better.

I am not sure I understand what this means.  perl-mode does not
understand new syntax like the "class" feature - but that's not a bug,
it just has never been implemented.  Should these things be treated
"like in cperl-mode" (because in cperl-mode they are implemented), left
as they are in perl-mode today, or would perl-mode users want to decide
how support should look like for new language features?

-- 
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 23 Sep 2023 22:14:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 23 18:14:03 2023
Received: from localhost ([127.0.0.1]:40713 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qkAt1-0007Lm-Fl
	for submit <at> debbugs.gnu.org; Sat, 23 Sep 2023 18:14:03 -0400
Received: from mout02.posteo.de ([185.67.36.66]:33447)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1qkAsz-0007L7-3C
 for 66050 <at> debbugs.gnu.org; Sat, 23 Sep 2023 18:14:02 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id D9464240103
 for <66050 <at> debbugs.gnu.org>; Sun, 24 Sep 2023 00:13:42 +0200 (CEST)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4RtNh61G2qz6tvb;
 Sun, 24 Sep 2023 00:13:41 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 (Stefan Kangas's message of "Sun, 17 Sep 2023 05:47:49 -0700")
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
Date: Sat, 23 Sep 2023 22:13:41 +0000
Message-ID: <878r8wa67e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefankangas@HIDDEN> writes:

> I don't think it makes sense for us to spend our meager resources
> maintaining two major modes for Perl.  I would like to gauge what people
> think about obsoleting perl-mode.el.

I'm not the right person to talk about obsoleting, since I have never
used perl-mode.el.  When I started using Emacs for Perl, usenet was
still a thing.  Ilya Zakharevich (the long-time maintainer of
cperl-mode.el outside of Emacs) was active in the Perl newsgroups and
very helpful, so I started with cperl-mode.el and never looked back.

But I think that making cperl-mode.el acceptable for users of
perl-mode.el is doable and might be worth the one-time effort.

> [...]
> Here are some additional observations:
>
> - cperl-mode.el sees more maintenance than perl-mode.el, in large part
>   thanks to the efforts of Harald J=C3=B6rg.

I intend to continue maintaining cperl-mode.el, though I've been a bit
distracted this year.

> - The Perl community tends to favor cperl-mode over perl-mode.
>   perl-mode is seen as lacking in features compared to cperl-mode, and
>   no significant development has taken place to bridge the gap.

The extra features of cperl-mode are also a source of criticism... and
they come at a cost of some arcane elisp code.  Yet, it should be easier
to add options to switch *off* unwanted features in cperl-mode than to
add them to perl-mode.  So collecting such unwanted features, as
suggested later in this thread, is a good start!

> - cperl-mode.el used to be maintained outside of Emacs, but this is no
>   longer the case.  All relevant development has been merged into and
>   takes place in emacs.git.

In my opinion, this makes sense.  Several Emacs developers have
continually worked on cperl-mode.el to care for obsoletions or
modernizations.  I don't think a place outside of emacs.git could
provide this.

> - Perl, while historically important to hacker culture and still widely
>   used in some quarters (e.g. Debian), is seeing much less use today
>   than it used to.  This will negatively affect the amount of help we
>   can expect with maintaining these modes from others.

I guess that's true.  Also, neither Perl mode systematically tracked the
development of Perl for a decade or so, it will take some time to
re-build confidence.

> - Instead of maintaining perl-mode.el, I'd rather see that people worked
>   on a new perl-ts-mode.el.  From a web search, more than one treesitter
>   grammar exist; I have no idea which one is the most promising or how
>   mature any of them are.

https://github.com/tree-sitter-perl/tree-sitter-perl is very actively
developed, also following the "actual" Perl grammar in Perl's perly.y
source.  I consider it promising.  However, we've already identified a
shortcoming of the tree-sitter approach regarding Perl: Many Perl
extensions from CPAN _extend_ the syntax with new keywords and
constructs.  It is possible to accound for those extensions in Elisp,
even dynamically on a per-buffer basis, but very difficult to do for
tree-sitter grammars which need to be "built" from C-code and
"installed" as dynamic libraries.

--=20
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 22 Sep 2023 07:39:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 22 03:39:41 2023
Received: from localhost ([127.0.0.1]:35217 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjalI-0000nW-SS
	for submit <at> debbugs.gnu.org; Fri, 22 Sep 2023 03:39:41 -0400
Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:44310)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qjalD-0000nI-KZ
 for 66050 <at> debbugs.gnu.org; Fri, 22 Sep 2023 03:39:39 -0400
Received: by mail-lj1-x236.google.com with SMTP id
 38308e7fff4ca-2bffdf50212so29446071fa.1
 for <66050 <at> debbugs.gnu.org>; Fri, 22 Sep 2023 00:39:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695368359; x=1695973159; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=jjoUbzT0/47rbQqOVaVJpWSnaZpuQQQjDiMCqLxHvxU=;
 b=XZNiVimyBs4+qkABNlkrYzq943v3HOkGvY2Bo8V81FwnubHPYpQW8zebuIrrUocvRk
 xsTQPiQuoTUkWDTrogAWVb8BnprS064/J5qcxBW1dcBkttkBpnLE5eRcDouMBY4f52RD
 HIFPfrKymGoM1vUMrF+743cKQ8+I3zLaAo9LR6KUvcf12fg63Zuf2MhjPr3a8L4gmiAm
 qx9SwOE8zfpDdtYhcGjiF/y533SRcaQ/+cilaBWo+NvovvPvFEMT/E0AoFlOuqD1BO2Z
 /P8yfboTFYNptDfFherKGPSex8tAsoHGwAg//xHribjGf2ME3jjgsTvypmA2A/ZM8Yvf
 Au7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695368359; x=1695973159;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=jjoUbzT0/47rbQqOVaVJpWSnaZpuQQQjDiMCqLxHvxU=;
 b=cEV4hEQzmA2QiBXe2UTDeEbK69EQ1MKO6NuRON8dp2jJcaigPvTDuQ9cjdFsHdIB6m
 Cs3VmwpLLd7dh9qIVswIpVI/NQxjqeGde6uk1qPbI/nAcnrBNpmEkbkkyKHvvnFBawcC
 +dgYmVkq8XoXRJHFDfDT8FADS3uOCi2Lu6mZvXCJYMG+HFFBmZsoBGc3aXoHWQ0i++2S
 +vTUpN+Jp3y4bWmFkOXxNlt/hf8dOqtQYkvPR/SiNsxWywNcuS5UGy87938OUj8aqnYE
 d55QecssJ1IeH/CQJCPMqP5frcWOU+7w9Hu7dk5yTBHASju227izTDhtCAfm5ubX0s8x
 cJVA==
X-Gm-Message-State: AOJu0YwAyCSgk8JpaR5vMrTlrktqvZe11I0AHVxWumRAxr1OmFWPXQ+w
 7Gr5Va+4ehVTZcXjsR939MgAJDyvKcqVy6lRFp8=
X-Google-Smtp-Source: AGHT+IETl1qaOpgkJbVqIS/rt6dk62DEDSdco2J6p4D1r1NbXpt0Ws/7gP/LS2DBxVmoN0lBFDeXimnq/12DxbGKRQE=
X-Received: by 2002:a2e:3305:0:b0:2c0:32d7:8962 with SMTP id
 d5-20020a2e3305000000b002c032d78962mr6959002ljc.1.1695368358777; Fri, 22 Sep
 2023 00:39:18 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 22 Sep 2023 00:39:18 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87fs3cv7mg.fsf@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 <87fs3cv7mg.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 22 Sep 2023 00:39:18 -0700
Message-ID: <CADwFkm=3f_gegNjgB__m_xUg6fbXAc2gaZ-GXWAfqGRsurt5PQ@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Jens Schmidt <jschmidt4gnu@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, =?UTF-8?B?SGFyYWxkIErDtnJn?= <haj@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jens Schmidt <jschmidt4gnu@HIDDEN> writes:

>     BTW, on Image/ExifTool.pm as of version 12.16 I get errors in "emacs
>     -Q" when switching on cperl-mode, I think because of that function.

Please report this bug separately.

> 11. Last not least, these pseudo-variables on the page labeled "Short
>     extra-docs."  always bug me.  Packing arbitrary documentation in
>     variables seems rather strange and rather non-standard.

Suggestions for how to improve the situation are welcome, preferably in
a new bug report.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 20:15:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 16:15:10 2023
Received: from localhost ([127.0.0.1]:34857 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjQ4r-0007wU-QM
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 16:15:10 -0400
Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:62613)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maurooaranda@HIDDEN>) id 1qjQ4n-0007vd-11
 for 66050 <at> debbugs.gnu.org; Thu, 21 Sep 2023 16:15:09 -0400
Received: by mail-pf1-x435.google.com with SMTP id
 d2e1a72fcca58-68fdcc37827so1802189b3a.0
 for <66050 <at> debbugs.gnu.org>; Thu, 21 Sep 2023 13:14:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695327289; x=1695932089; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=SGea1C39tXqvN2IyfaD2k1MJGXOBGh7wrC4MK/f1xNQ=;
 b=LYupn/ZaywTGalwrG+M3xJvP1POesvH+wrPnClt7mjurZB+in7b72pzrQcF0gIl4lv
 qVKaYCZrYbsFSbYuMyyi2bZ7x7OCCXH5f038x9R22fcCOtOTRZkHvFCFy6EQ4kkqFpXD
 rxzXUo/PDnRuxPQZqyvfW0KaP4bhO4MczBNAvwoKCNx9QdGuENcrDPHaf7zGvaH7rlTs
 /heJEgqPiVkoGiGgFHPJA5d2u0L0bkH6+k29bUXlPLcnYIr6lk0Pij2e+DuqUyei3TWb
 CgJcDSz98KbiS3YsoYZpOuMNc/4NtT0y7l2tJ6DrEUJ937G6fW87DkEYY7usB0iIhJx9
 XeDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695327289; x=1695932089;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=SGea1C39tXqvN2IyfaD2k1MJGXOBGh7wrC4MK/f1xNQ=;
 b=mF8p2FleEUKGqSCh/TUObZvpODGiHHhQTK6ItvbL3IYW/pNmBldCLjSHP7xicecHxl
 Mm2d6LiLD2eCxlGVsQbz4Ocadx2iUZxRThFzachcYZgQ+FfB2244fFXLgm/s23iqx7IE
 SJ4xRFGZw+WtpLK3jJByv/i0INF3ydh4jL2vTL3gbpAX7E8NX8LAzmIB7Q/7jz/VnMQ+
 0LarQ/XrGz20IFxbxHKrwdAOGuJh55dwXQRwbGXyGQokmYcRyAxA40KiCnGXETtiD5k4
 +yXcwiBECqj1yPofneDeCDFYOzIQzkGDzogM+SBRFOz1NjuCpc50JaRL3jgMNVoHj5ID
 RnYg==
X-Gm-Message-State: AOJu0Yx1slQxX0+/K+vilHkBOoxpG3TX1WgLk6REF0UXw2NZ6baalCEV
 W7LncQUd8HN4seRj8FAQNc8=
X-Google-Smtp-Source: AGHT+IFGqFr/u6hrB3tVy94/ZRVrf0AwzX91RpnxL6vM+uazKR755SBCJErA8XylCGdsyd1xHDcHTQ==
X-Received: by 2002:a05:6a20:3d8d:b0:15d:eb3:839 with SMTP id
 s13-20020a056a203d8d00b0015d0eb30839mr892759pzi.31.1695327288716; 
 Thu, 21 Sep 2023 13:14:48 -0700 (PDT)
Received: from [192.168.0.234] ([152.168.142.156])
 by smtp.gmail.com with ESMTPSA id
 t6-20020a639546000000b0057a868900a9sm1707005pgn.67.2023.09.21.13.14.46
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 21 Sep 2023 13:14:47 -0700 (PDT)
Message-ID: <a7cb720b-7124-9bbf-f220-f79d97aee7da@HIDDEN>
Date: Thu, 21 Sep 2023 17:14:43 -0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Stefan Monnier <monnier@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
 <jwvedirip8b.fsf-monnier+emacs@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <jwvedirip8b.fsf-monnier+emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 66050
Cc: haj@HIDDEN, Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>, rms@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

On 21/9/23 11:20, Stefan Monnier wrote:
 >> What would be a good way of collecting this information?
 >
 > I'd say: use `cperl-mode` and report regressions compared to what
 > `perl-mode` used to do via `M-x report-emacs-bug`.
 >

OK, I'll do that.  But Someone will have to keep track of the bug
reports that need to be handled before calling perl-mode obsolete.

 >> 2. While I'm typing the above string, I get messages about string/RE not
 >> found:
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses
 >> 1092 1874)
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses
 >> 1092 1918) [2 times]
 >> End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses
 >> 1092 1962) [2 times]
 >>
 >> That's annoying.
 >
 > Sounds like a bug, eh?

I think so.  I had some time to look into the archived bugs and found
this: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37127

I don't have time right now to read and understand the whole
conversation, but I think it's related to what I see.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 14:20:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 10:20:25 2023
Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjKXZ-0006eQ-4S
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 10:20:25 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29495)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qjKXU-0006e9-Ug
 for 66050 <at> debbugs.gnu.org; Thu, 21 Sep 2023 10:20:23 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2BC408072D;
 Thu, 21 Sep 2023 10:20:05 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695306003;
 bh=1UUGvBMsfOzUeCoY1rpoaI9kCXQDieCjUiJkcF5KEik=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=cnjcsxghgHa2uwivlDq3GhEd5RSs/atA95Q67e4NI7YVWye96GnSCzP1ml9MdWc1s
 9Wb4HvajalOWNSfmEY7zqE0JrAMSzEg5YSx873b4PnllCT4yf09x8jTg6ePebAZRvj
 L1ClW0WfGOBOmWoM9oPNuxanzu5hDxmZwBY/vHnY3KQQAWp+lnU8V7giwZ3xWR3vBe
 qEIbJragqeUxpR1V/2lniM9dcfeRQVCBnWeCHmAXqNdM9Qc66WST3boBRaxhDyvK6s
 DsCmFwEh0RmuzU6e+ZP7jw7gNLHY3BYu9pH4EmkGS2gCBjaLRPXjQAg+eS1mzFP73J
 MGgWtUzc1ki8Q==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C3EB680577;
 Thu, 21 Sep 2023 10:20:03 -0400 (EDT)
Received: from pastel (unknown [45.72.220.249])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8AB481202E2;
 Thu, 21 Sep 2023 10:20:03 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN> (Mauro Aranda's
 message of "Thu, 21 Sep 2023 11:13:51 -0300")
Message-ID: <jwvedirip8b.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
Date: Thu, 21 Sep 2023 10:20:02 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.006 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: haj@HIDDEN, Corwin Brust <corwin@HIDDEN>, 66050 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>, rms@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> What would be a good way of collecting this information?

I'd say: use `cperl-mode` and report regressions compared to what
`perl-mode` used to do via `M-x report-emacs-bug`.

> In addition to what Jens Schmidt said, I can add that:
>
> 1. If I have something like:
> my $some_code =3D "";
> $some_code.=3D q(
> my $counter =3D 0;
> );
>
> If I put point at column 0 of the line "my $counter", and hit TAB, I get
> indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
> options for making this work but I couldn't find anything.
>
> 2. While I'm typing the above string, I get messages about string/RE not
> found:
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced parentheses
> 1092 1874)
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced parentheses
> 1092 1918) [2 times]
> End of =E2=80=98q( ... )=E2=80=99 string/RE not found: (scan-error Unbala=
nced parentheses
> 1092 1962) [2 times]
>
> That's annoying.

Sounds like a bug, eh?


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 14:14:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 10:14:13 2023
Received: from localhost ([127.0.0.1]:34552 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjKRY-0006Ug-Om
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 10:14:13 -0400
Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:45157)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maurooaranda@HIDDEN>) id 1qjKRX-0006US-AM
 for 66050 <at> debbugs.gnu.org; Thu, 21 Sep 2023 10:14:12 -0400
Received: by mail-pg1-x534.google.com with SMTP id
 41be03b00d2f7-577fb90bb76so562031a12.2
 for <66050 <at> debbugs.gnu.org>; Thu, 21 Sep 2023 07:14:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695305635; x=1695910435; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=oaRKX5vDAaoztRW7w3t0q0xWsq2senS0UZ8DuKESdjw=;
 b=Q7QeTXrsM284QwOTnEJ72XGBytUxHoahU0AS61J5LamZul9plwhCxDxmurEs4vIO5K
 Z5/Q4+6zx6W+85n4/Stlrwd2pjlM85VvKaqyEidr/Jc9NdQp46iDu3pa0qhY0mc0w6rh
 zefgsUm+cn8HLQfbxAdPIZgGkMWfAocIuSqssr7Jhj1EWTMERqmXzKZ8gvpIxWZfXY2j
 YVwC2gHoilE1bGFzU/hvGc8/vSb+lskqiUqmqX3SzJGA6sBIog6UySlwd/jbuyVElQwS
 ZnsR/7BmTK4QE66h/bjkerfX5/3qNY1IKOk9TLWgwFWI+qcKEuI/3WhTcQlYWDgD+lHN
 aKsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695305635; x=1695910435;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=oaRKX5vDAaoztRW7w3t0q0xWsq2senS0UZ8DuKESdjw=;
 b=Z9yLtMI+m90VKtcZANTWzxRk0paOxYLMIcqqO9UMItR9Itw5EzVMQpddMSGctmlzgc
 vXH19N6XOryUceeQdzBbBjRZemJNXWsZrhEytrxpM+RJLkollwtMUC5MHFueyv+ksNBm
 faHPq9DiQWLQpKWm1yRnAfH+wWV1acjmYRlVs5NpzMMKRpx+yrNwsgxnjDhMq3VHqKW3
 2u380ViobZj5A0CyKIDE+xfiC15OAOGVkqI4MEsioyFV7V3HWHlZrr0O3Tf/rnKSCJKk
 hNANPDqZVR2Fj5Vl+7uSPZ56QdSyVWgs1v93HA16cocffyquCQDoQ+1JGZf37oOTFfIz
 Cgtg==
X-Gm-Message-State: AOJu0YxFy2v4N86BdgeHCised8q4hMtlYtwV2UYTDl2Wz5do1gglm2r6
 HLEZlAaacyHfbVS85pWOyfs=
X-Google-Smtp-Source: AGHT+IGkWOUSTzNH2J19Nmll3k9q7s27YDnp2H6xl4lXnNIyLohU29sZa96djhflF18evo5nmmnoxg==
X-Received: by 2002:a17:90b:60f:b0:271:9237:a07f with SMTP id
 gb15-20020a17090b060f00b002719237a07fmr5925593pjb.32.1695305635358; 
 Thu, 21 Sep 2023 07:13:55 -0700 (PDT)
Received: from [192.168.0.234] ([152.168.142.156])
 by smtp.gmail.com with ESMTPSA id
 fs16-20020a17090af29000b0026b4ca7f62csm1424993pjb.39.2023.09.21.07.13.53
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 21 Sep 2023 07:13:54 -0700 (PDT)
Message-ID: <4963b74f-7723-c473-afe3-2c3f84324217@HIDDEN>
Date: Thu, 21 Sep 2023 11:13:51 -0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Stefan Kangas <stefankangas@HIDDEN>, Corwin Brust <corwin@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 66050
Cc: haj@HIDDEN, 66050 <at> debbugs.gnu.org, rms@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

 > Corwin Brust <corwin@HIDDEN> writes:
 >
 >> On Wed, Sep 20, 2023 at 6:26 PM Stefan Kangas 
<stefankangas@HIDDEN> wrote:
 >>>
 >>> Richard Stallman <rms@HIDDEN> writes:
 >>>
 >>>> If it is feasible to put conditionals in CPerl mode to make it behave
 >>>> like Perl mode -- or close enough that almost everyone is happy with
 >>>> it -- maybe then we could obsolete the current Perl mode.
 >>>
 >>> Agreed.  Let's start with adding such options to cperl-mode.
 >>
 >> Does there already exist a list of cperl features/behaviors which
 >> perl-mode users find objectionable?
 >
 > I'm only aware of the list provided by Jens Schmidt upthread:
 >
 >      https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66050#16

What would be a good way of collecting this information?

In addition to what Jens Schmidt said, I can add that:

1. If I have something like:
my $some_code = "";
$some_code.= q(
my $counter = 0;
);

If I put point at column 0 of the line "my $counter", and hit TAB, I get
indentation in perl-mode.  I don't in cperl-mode.  I tried to look into
options for making this work but I couldn't find anything.

2. While I'm typing the above string, I get messages about string/RE not
found:
End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses 1092 1874)
End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses 1092 1918) [2 times]
End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced 
parentheses 1092 1962) [2 times]

That's annoying.


So far, my settings for getting a perl-mode experience in cperl-mode,
with emacs -Q: (taken from a custom file):
'(cperl-highlight-variables-indiscriminately t)
'(cperl-indent-level 4)
'(cperl-indent-parens-as-block t)
'(cperl-invalid-face 'default)

'(cperl-array-face ((t (:inherit cperl-hash-face))))
'(cperl-hash-face ((t (:underline t :inherit 
font-lock-variable-name-face))))
'(cperl-nonoverridable-face ((t (:inherit default))))





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 00:50:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 20:50:08 2023
Received: from localhost ([127.0.0.1]:60672 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj7tP-00046b-Pg
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:50:08 -0400
Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:54421)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qj7tM-000461-Aw
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:50:07 -0400
Received: by mail-lf1-x131.google.com with SMTP id
 2adb3069b0e04-503f39d3236so793473e87.0
 for <66050 <at> debbugs.gnu.org>; Wed, 20 Sep 2023 17:49:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695257388; x=1695862188; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=uPDN9yH+lC/vMMT2QBjGx/I5Fb3WwAjG8MP3cszS6W0=;
 b=Oc/aArkxXSUqHVJD4uSYnJ/O1PQW1Ud2g/dsRqffjg3/pDrD3U+8Rv9eGOet9Nyszy
 DUF3Zg/eqAnGrJwM2+zT8XR9uDbxpcz50OWmZY/uX9+Jbdx5y2//xvbsrJGeUTyw68SH
 m8OAuJM8T/LM0V+gmszrPa2r/6zcyXb2MhpPU6xKvEfSBnPnRTzV66/chhTHOf3jh7Lh
 OVvRaCH2KeK4GZNYDwkJBakN4QKZo9JdcoQox155vc3zqr6ed10Ls+7sVdrIPR51u9NZ
 /6pZfIODzwWYH0GqBV6rxTpaftV4wIwHPuQUz8isT7YgZRpkgZSoHXDdeDQMy5+8u4vP
 zDdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695257388; x=1695862188;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=uPDN9yH+lC/vMMT2QBjGx/I5Fb3WwAjG8MP3cszS6W0=;
 b=Y9G6tOXBrdsCwlC35XukJMR/zD49EmYmkTgDs68C+U5pK48re3TeoxWZWLcct7Uhxx
 VYPHSwdgSw9BzDUyD19Be5ebGXUPwBKUo4+rl2GOYax+EP7s9G0oI86c1ZzJUnt5k7uj
 8Z71wU9anVc4JH7pNpbN5jyqkSwyM1s0FPorHlAj1gjlmwcTj1gv1L1XvWTUXlOf8IYX
 X5Zww5Ru/5brIHxFUpq8+mg2y1ejqSLC7DyLIfDhwpHmk+RZAckMqFSDzzRUQAPYzrAh
 7gAL0aUCaA3CqsKKccwUIwsa34j4SlRnKDZQ67Op93jczHhktoWIaGtRDDMSf3h+HC9J
 tTCw==
X-Gm-Message-State: AOJu0YyAeJjF6oXc87NOE9Uj3mizZYHRfR/LTdANMZ0e1w8rODUCyUaZ
 f8X0MLfoFWgSmqEmJXeax6PclzqkZHeRTLzgB4o=
X-Google-Smtp-Source: AGHT+IFt80HiDM1LRjV+bpdA0a3S99UsAEVWjEshgK9A+Bj1hKHItb8H93PFVYKYxZyPUtLIB9jsBT2aEKysJDbc1HE=
X-Received: by 2002:ac2:5283:0:b0:502:d765:a7c9 with SMTP id
 q3-20020ac25283000000b00502d765a7c9mr3674268lfm.28.1695257388461; Wed, 20 Sep
 2023 17:49:48 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 20 Sep 2023 17:49:48 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CAJf-WoQ6BcGJ=TZNrSR=nEp4dV1ehSxPh1w=210gqpGz_1f4dA@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
 <CAJf-WoQ6BcGJ=TZNrSR=nEp4dV1ehSxPh1w=210gqpGz_1f4dA@HIDDEN>
MIME-Version: 1.0
Date: Wed, 20 Sep 2023 17:49:48 -0700
Message-ID: <CADwFkm=sia_vYV9sT9yYvXv4=gxWupK6gEEESTZGdsSz7EC2TA@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Corwin Brust <corwin@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, rms@HIDDEN, monnier@HIDDEN, haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Corwin Brust <corwin@HIDDEN> writes:

> I missed that message completely; thank you for calling my attention
> to it.  I will see if there are any of these I'm able to suggest fixes
> for.

Thank you for working on this.

> I hope my saying so will not prevent other (more experienced) folk
> from working on this, if so inclined.

Your offer to volunteer won't prevent anyone else from jumping in, so I
wouldn't worry about it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 00:38:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 20:38:16 2023
Received: from localhost ([127.0.0.1]:60667 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj7hw-0003k6-HZ
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:38:16 -0400
Received: from mail-ot1-f48.google.com ([209.85.210.48]:50602)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1qj7hu-0003jt-2c
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:38:14 -0400
Received: by mail-ot1-f48.google.com with SMTP id
 46e09a7af769-6c46b7c04c0so285226a34.1
 for <66050 <at> debbugs.gnu.org>; Wed, 20 Sep 2023 17:38:04 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695256678; x=1695861478;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=8qZP47Wm4poXi72DAnW1TmxrdHKfIbaGK6MsAeYZKk0=;
 b=atmGxedA26bmHVqPD0PccR5Xl08GyJ4MNOgbUKzwp55vyeKU68Wnwk/9RwkIpOQe7J
 BH47m9dPyllQYilQMAUPSCsl71dxlXzRqxfHin6t+ZQ7W9w0rtmbKCwqg5y7peooKn4E
 FaCaErK8grPZ/kbHroVcdYOihzOACOI9kkA2OP846M0QOMVaUZj39c9GuRbWSFFfnQx0
 FkCwMFKChJ/mltbpJHvtaazGpYYwYssid9R3y1WrRr6ZRLHq4E1TKWQkcOiH/eH9rfIb
 XvAxVgOGFmaGm18tKRVjgMujdZ0eplPzG0T2CReZAmhwZP6yrcvjdU1eE/dCvzZBByYm
 K6KA==
X-Gm-Message-State: AOJu0YxJk2hTrVNroPMaoxwZpVkoMYRpljz7n/XU/+Y6WP2lEO7YG6SK
 TbFIGjuHSb2xJf1Sz7meAky8VUNAp8q7hoi4so8=
X-Google-Smtp-Source: AGHT+IGyv1efcELra29PAk4J+q7D4SXDj9mWaH7dgvw7Ea0XdJwfLqEHmWjYpSd+/iPWJbdse8wO5AydwEJf4YfnFjM=
X-Received: by 2002:a9d:7992:0:b0:6bd:701:6928 with SMTP id
 h18-20020a9d7992000000b006bd07016928mr3575957otm.3.1695256678343; Wed, 20 Sep
 2023 17:37:58 -0700 (PDT)
MIME-Version: 1.0
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
 <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
In-Reply-To: <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Wed, 20 Sep 2023 19:37:47 -0500
Message-ID: <CAJf-WoQ6BcGJ=TZNrSR=nEp4dV1ehSxPh1w=210gqpGz_1f4dA@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Stefan Kangas <stefankangas@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, rms@HIDDEN, monnier@HIDDEN, haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Wed, Sep 20, 2023 at 7:16=E2=80=AFPM Stefan Kangas <stefankangas@HIDDEN=
om> wrote:
>
> Corwin Brust <corwin@HIDDEN> writes:
> >
> > Does there already exist a list of cperl features/behaviors which
> > perl-mode users find objectionable?
>
> I'm only aware of the list provided by Jens Schmidt upthread:
>
>     https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66050#16
>

I missed that message completely; thank you for calling my attention
to it.  I will see if there are any of these I'm able to suggest fixes
for.  I hope my saying so will not prevent other (more experienced)
folk from working on this, if so inclined.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 00:17:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 20:17:02 2023
Received: from localhost ([127.0.0.1]:60658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj7NO-0003Ct-FA
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:17:02 -0400
Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:51554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qj7NL-0003CK-IF
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:17:00 -0400
Received: by mail-lf1-x129.google.com with SMTP id
 2adb3069b0e04-50335f6b48dso722050e87.3
 for <66050 <at> debbugs.gnu.org>; Wed, 20 Sep 2023 17:16:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695255404; x=1695860204; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=s6cDJvsLcSDxIyxpVeN/CqmcoK7A3Vv9Vujz5wPRObQ=;
 b=MPiQMfFSvA6uvoq54AO6xOQ6RwmRPsGD7g1DrtwPQuPx29L7izSYve/aIExcts1UiN
 W5OT+VJcyuDczCyVueBWB6Gvd8XoIDOFsZcrWA8SxZj4wOeYjjXWO4YidywbGrOU6aby
 Rxis+mcFmueW2xddYzsWRoWMkDuKHmzfR/MM1teAKnXKHy8Y+5S+I+mWLBM8pRno1C7q
 h5Q9N082CFJr7l0DyHB4PP4aEIX0VJ3GNxYzrOhhdTX2muPyq6AKMeORb+B0b7Hoaced
 Gl9T/qAUKYThhUF5fy+jVXI9AbRzHxECTBUlutDPfPS6GpL62bE8cvG7EfvncrCfIUZu
 OlFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695255404; x=1695860204;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=s6cDJvsLcSDxIyxpVeN/CqmcoK7A3Vv9Vujz5wPRObQ=;
 b=eUlOKxiacF1GN8IFMpNVuKSNEyYC3OW6IK7+YXEWogjvU0J13kzfGiZqLQYaVHtJQP
 N+8ZyEe3HhTtKVhxZxNEIkf5k5j6FOf8WN0aqhDPFYugRx8X96xKlY9kjlex8FBf7mnK
 mmDdBTfyZqHEZsIr963UoOYKRQy3Fc77ThQKA69iVxKl/jxueGfacpXdSfCZXMWl2R4E
 Kgus1Y06Ki9ZzQyjFyKusYQKAZp3aKRx3o1ndw4NI4AhvkfDqE3cCER0EZUOqsgkXxWP
 ZyV0tCAx3wVXuTnVXEOhiGwe3zhA9LSWV0HVnLM8Z3W1snOLb7zlgWfiP//yEc3QTJsg
 kd6A==
X-Gm-Message-State: AOJu0YwpKJH6+MkGav/CVdjpKUDHB7OBioi93T7+cJyCRbKupZtUjDj7
 d622ADtnTWHwlFkRbSA6AZIcN8vpE6orv9VvI2Y=
X-Google-Smtp-Source: AGHT+IG6jbJ1SLHV5O7uMIH9YDcJi5QFSqgkGKlWrfmp3x/sxoljG1yQvyjCxUMHiVdpDsrsT66MnzuVQF1+CP3b5xQ=
X-Received: by 2002:a05:6512:2828:b0:4f8:7772:3dfd with SMTP id
 cf40-20020a056512282800b004f877723dfdmr3911342lfb.11.1695255403694; Wed, 20
 Sep 2023 17:16:43 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 20 Sep 2023 17:16:43 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
 <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
MIME-Version: 1.0
Date: Wed, 20 Sep 2023 17:16:43 -0700
Message-ID: <CADwFkmkdOyesv8hxchkj=WXaDSqjKU2PRBVVaO8fn4J1VNp5Lw@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Corwin Brust <corwin@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, rms@HIDDEN, monnier@HIDDEN, haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Corwin Brust <corwin@HIDDEN> writes:

> On Wed, Sep 20, 2023 at 6:26=E2=80=AFPM Stefan Kangas <stefankangas@gmail=
.com> wrote:
>>
>> Richard Stallman <rms@HIDDEN> writes:
>>
>> > If it is feasible to put conditionals in CPerl mode to make it behave
>> > like Perl mode -- or close enough that almost everyone is happy with
>> > it -- maybe then we could obsolete the current Perl mode.
>>
>> Agreed.  Let's start with adding such options to cperl-mode.
>
> Does there already exist a list of cperl features/behaviors which
> perl-mode users find objectionable?

I'm only aware of the list provided by Jens Schmidt upthread:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66050#16




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 00:09:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 20:09:14 2023
Received: from localhost ([127.0.0.1]:60642 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj7Fp-0002zo-QJ
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:09:14 -0400
Received: from mail-oa1-f45.google.com ([209.85.160.45]:45509)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1qj7Fn-0002zX-TD
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 20:09:12 -0400
Received: by mail-oa1-f45.google.com with SMTP id
 586e51a60fabf-1dc619817a2so213802fac.3
 for <66050 <at> debbugs.gnu.org>; Wed, 20 Sep 2023 17:09:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695254936; x=1695859736;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=lQqT/HAORNg5ZPEgbBUyzFRcw+KG8Im+pwgL78AEn00=;
 b=sa5sfjtL+I3umuvRsrOW+2tXwEWWbz5KAARGDp2iT5mtWd+F9ufSuQ/45mjXCF5ohn
 0n67ypr+Ehj2Jo6loUHMkySjTb6ycnB3a7C3YxfG7xeBoAFo6Pi8zERalewlpiOcVuHO
 2SsZdAi79qCDTh894CTB+PVWBkeTHBJpMTeKOxQdZjRtJWXkgDXXNLurKw4cN/kIRFyi
 j2NsD+hmjW4JekshHJyV1LNllxEsM4qOkhiW7HoplA0UKdWtEmjG79kW/z1rSsGd2vyD
 FxsbALFdN/fk6uD3FTgQlRKVazOHJ0wqo/x7UMreesODsRR9Qf4nH5GKtNPjY6uOnTb+
 ho2w==
X-Gm-Message-State: AOJu0YwCGj4kOhOuL3QsaoJcdXBMJ1XcIG6wL5NpL01LkOH0ZoV2B1yX
 Lng3QCNSgBHCY2FULW6qCztFklxqDTp4yzatmXo=
X-Google-Smtp-Source: AGHT+IGI0hn/4PDo0MMSPk7OCG0vK1/Ca/mF3wn+s7Id+W606J98xKiWEJOz/HJ8al2GgdzY/FP7NXXXnqVUKLwXP/U=
X-Received: by 2002:a05:6870:c207:b0:1bf:4a66:d54f with SMTP id
 z7-20020a056870c20700b001bf4a66d54fmr4013328oae.56.1695254936260; Wed, 20 Sep
 2023 17:08:56 -0700 (PDT)
MIME-Version: 1.0
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
 <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
In-Reply-To: <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Wed, 20 Sep 2023 19:08:45 -0500
Message-ID: <CAJf-WoSgjHCaeCQ0-ZgjU8JOiJmfLAvgKDxVN4GmbhvZfNnjNQ@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Stefan Kangas <stefankangas@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, rms@HIDDEN, monnier@HIDDEN, haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Wed, Sep 20, 2023 at 6:26=E2=80=AFPM Stefan Kangas <stefankangas@HIDDEN=
om> wrote:
>
> Richard Stallman <rms@HIDDEN> writes:
>
> > If it is feasible to put conditionals in CPerl mode to make it behave
> > like Perl mode -- or close enough that almost everyone is happy with
> > it -- maybe then we could obsolete the current Perl mode.
>
> Agreed.  Let's start with adding such options to cperl-mode.
>

Does there already exist a list of cperl features/behaviors which
perl-mode users find objectionable?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 20 Sep 2023 23:27:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 19:27:10 2023
Received: from localhost ([127.0.0.1]:60621 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj6b8-0001pX-5W
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 19:27:10 -0400
Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:56618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qj6b3-0001ov-DG
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 19:27:09 -0400
Received: by mail-lj1-x233.google.com with SMTP id
 38308e7fff4ca-2b95d5ee18dso5489691fa.1
 for <66050 <at> debbugs.gnu.org>; Wed, 20 Sep 2023 16:26:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1695252410; x=1695857210; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=jKIU6SLl1KQXR/R7DZev5QacdVWIdut3ELpCaim6KoE=;
 b=RrMwr0jxjAfK/A2vH+7GqKIzCkiqbJIVVJ33+VCo7QhRkAml6+UYZV+8ASwdkDPKKw
 TapJ+TXo6rDhrfH6nAxygRCbFmuXlgzCHOqR1aB0INuqPa47dhgxdSSY59PjMaarPrvr
 nUQt1YtgOjDZWZHuTbY3sQGvzK2SBIdmOPQ/ZQ4auVTBSqBm5KhkTDYXdIyUx7du74/n
 Z1kytjnxTG1eS1WoQmnLTzsE+JH+31NFn+KNwMeDjMUlC+RAAJzPZQTcn1KM9MDxmqFn
 otMlcat7Oj7DLGzgYKtVdMuOR5z8Vdw3SRE/EiFA3+1srwDRbphWMUY/VVWrbO34Mr3x
 Jtow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695252410; x=1695857210;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=jKIU6SLl1KQXR/R7DZev5QacdVWIdut3ELpCaim6KoE=;
 b=bRRZ2iTdKz0nbgZ3S2EXRlI6KUxnJZemV/obaD/oFhuRAiBfwOaAzRGJf2WXj+BOgu
 0ZDwrJN8YY1ZklySMd0jAA+qvKCKCPvag+joktuaFXD2lWssNdIU4hxxUGljb2YSz6Xs
 yCCC3toN8rX6g9mBM/REVsXlfA91e1mEIc/ucThXN39TbgwYAaK07uS65zUynWOwxn/A
 XjyVPkN87x52/caCFe63QWpU838P9bJcPk84vhw8FMc39Aowth0Vg7N+OCAz8fA1Sj1/
 /6E7iXLYyNDJifUPg+zRb2nN/AzfBzWPUo/Ub88CM0f+JgLFMpuhRdCYq8lhkv1zeoTe
 VUcg==
X-Gm-Message-State: AOJu0YzZfiNOSH1t3vLgxBymJbcyfzygP0+RcYKpB0H0rhw6Y4N8w17T
 tI2wQSzfxFdnNtnBAl7tKZEyvBSMgWJewM4cn9c=
X-Google-Smtp-Source: AGHT+IGC2iJZxDpYqWFwzRWW/eu1Ai+HVPRHm1daugJZubh5AUI2i0knTs4KxUvC2+/8hdfitm7QbDRFLb2PLgXkLtI=
X-Received: by 2002:a2e:7e0e:0:b0:2bc:d6d8:8ab5 with SMTP id
 z14-20020a2e7e0e000000b002bcd6d88ab5mr3131848ljc.24.1695252409454; Wed, 20
 Sep 2023 16:26:49 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 20 Sep 2023 16:26:48 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <E1qj22E-0001RL-SB@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 <E1qj22E-0001RL-SB@HIDDEN>
MIME-Version: 1.0
Date: Wed, 20 Sep 2023 16:26:48 -0700
Message-ID: <CADwFkmkOodWZ=w28wA3bS_2s4CE50E+oUj=tp925-1Tk=6fEyQ@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: rms@HIDDEN, Corwin Brust <corwin@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, haj@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Richard Stallman <rms@HIDDEN> writes:

> If it is feasible to put conditionals in CPerl mode to make it behave
> like Perl mode -- or close enough that almost everyone is happy with
> it -- maybe then we could obsolete the current Perl mode.

Agreed.  Let's start with adding such options to cperl-mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 20 Sep 2023 18:35:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 20 14:35:10 2023
Received: from localhost ([127.0.0.1]:60369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qj22Y-0007mw-H5
	for submit <at> debbugs.gnu.org; Wed, 20 Sep 2023 14:35:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42362)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1qj22U-0007mO-Mj
 for 66050 <at> debbugs.gnu.org; Wed, 20 Sep 2023 14:35:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rms@HIDDEN>)
 id 1qj22F-0003Yd-4H; Wed, 20 Sep 2023 14:34:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=tvCt8RdpRWk34Hj5ItpoDaMhFoVcC7GP8PCW4ljplLk=; b=UrXCgwlj+ItW
 Jn1XQAVIpAlOuVM884ybYHs42WJfzOpTmE0P6HOHQit+Fs/xOt/43Y68vXIBopWOs/T+kTiDx193Q
 PaoLBmNq8lftPv1Pc7egis4RaJvyvwmhkge+5uuHIWj06yAr8HCSS10cft+wLQo4Aa2FS6KeWcQCI
 l2ZvoCTvzX2Hj4p4Ot7ZdiLOPQv9fcVYz8r9qu2RZEXD/U9+p4YSlxoM4xzztqPHs5DWuEiJTBrBh
 SQJKHEERnTumIABWKpjr/PEE+7/QjRYoEMVyC7boYHIoqHkk4u0MWSp3/Xjrne+lB0BWel8hjGrUr
 tUFZR7HksGtefhvWHWFMYA==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1qj22E-0001RL-SB; Wed, 20 Sep 2023 14:34:50 -0400
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Corwin Brust <corwin@HIDDEN>
In-Reply-To: <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
 (message from Corwin Brust on Mon, 18 Sep 2023 09:11:55 -0500)
Subject: Re: bug#66050: Making perl-mode.el obsolete
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
Message-Id: <E1qj22E-0001RL-SB@HIDDEN>
Date: Wed, 20 Sep 2023 14:34:50 -0400
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, stefankangas@HIDDEN, monnier@HIDDEN,
 haj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Many years ago, I thought it would be an improvement on general
principles to have only one Perl mode.  I do not know Perl so I have
no opinion about either one.

Of course, I first asked what Perl users thought of this.  I found
that many preferred CPerl mode and many preferred Perl mode.  And the
ones who preferred each one were very attached to it, and did not want
to switch.

That may have changed, or maybe not.  I think we had better ask the
users now what they feel.  If there are still many users who strongly
prefer Perl mode, even if they are only 10% as many as strongly prefer
CPerl mode, we definitely should not mark Perl mode obsolete.

If it is feasible to put conditionals in CPerl mode to make it behave
like Perl mode -- or close enough that almost everyone is happy with
it -- maybe then we could obsolete the current Perl mode.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 18 Sep 2023 16:16:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 18 12:16:01 2023
Received: from localhost ([127.0.0.1]:54220 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qiGun-0004Zl-Cx
	for submit <at> debbugs.gnu.org; Mon, 18 Sep 2023 12:16:01 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22368)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qiGul-0004ZN-7M
 for 66050 <at> debbugs.gnu.org; Mon, 18 Sep 2023 12:16:00 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2F6854428C5;
 Mon, 18 Sep 2023 12:15:45 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1695053743;
 bh=I2gonQZe6c0+Ddl24VE/7o0SfHSOH1JQuzQMVm0qjg0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=dqXbylvdUGSOOnteInz7xmd1B/wdnwmuKV8hPYa6AogCXM48D+nnUTKUKZU/qDw3Y
 WUhqHLyPI5s2BhY3IKCaCWRFJitNy6AHt/hCgBXAEuCsMAEOwdhzXcPjoeJoE+J75W
 B3GK3ZZbI6HtXnypjgIclESEp8fLHS7y2GpV1rVrNZ9xxm7YEqeFtv+c74xIwNJLMh
 BIrjWPsShm2LILvDLMNmF1RZAh/2BXI1quHIxJ+LwYJ1oV0W8xvSYuTbv3Kj0VcM2Y
 n56a1/U6oo70caKMbg22HqRXBm2clRQwgibpnb+4XqkftkVxE1zOy+QAg4puHU95Mu
 01+sMWxPF7ZdA==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B37214428BE;
 Mon, 18 Sep 2023 12:15:43 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A22AC12007D;
 Mon, 18 Sep 2023 12:15:43 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
In-Reply-To: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 (Stefan Kangas's message of "Sun, 17 Sep 2023 05:47:49 -0700")
Message-ID: <jwvil87fos2.fsf-monnier+emacs@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
Date: Mon, 18 Sep 2023 12:14:28 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.116 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Harald =?windows-1252?Q?J=F6rg?= <haj@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> I don't think it makes sense for us to spend our meager resources
> maintaining two major modes for Perl.  I would like to gauge what people
> think about obsoleting perl-mode.el.

I think I sadly agree.

I've been a supporter of `perl-mode` because when I had to edit Perl
files, I always found `cperl-mode` not to be to my taste (too different
from other Emacs major modes).  So I've worked to improve `perl-mode`
based on my own needs, which were rather limited.

I considered improving `cperl-mode` instead, but found the code of
`perl-mode` easier to deal with (especially at the beginning, where
I found collaborating with Ilya was sometimes difficult).

Luckily I haven't needed to edit Perl files for the last several years.

I think the best option is to obsolete `perl-mode` and to encourage
people to report bugs against `cperl-mode` when they find it doesn't
work as well as their beloved `perl-mode` :-)


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 18 Sep 2023 14:12:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 18 10:12:26 2023
Received: from localhost ([127.0.0.1]:53950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qiEzB-00062N-Uz
	for submit <at> debbugs.gnu.org; Mon, 18 Sep 2023 10:12:26 -0400
Received: from mail-ot1-f51.google.com ([209.85.210.51]:60544)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mplscorwin@HIDDEN>) id 1qiEz7-00061w-FX
 for 66050 <at> debbugs.gnu.org; Mon, 18 Sep 2023 10:12:25 -0400
Received: by mail-ot1-f51.google.com with SMTP id
 46e09a7af769-6c0a3a2cc20so2913254a34.0
 for <66050 <at> debbugs.gnu.org>; Mon, 18 Sep 2023 07:12:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695046327; x=1695651127;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=k/gY9jeQDb/KqPegDHHaARtN+qjzLd6pyRq9Vejsuug=;
 b=DmUyyxl11bz5ClTO7Tp9NTOlgIBeTfxCDh7PoihVKCIlJSK+ViD9xhuHzndKAzSEzY
 FEeuTMzhC8BnDuxulbXEAH9YlBvY3m4RisexGPj7OcYWGJER+Bbn8KV9tKVFmWmZ9S6C
 NI+Vl7enLtvbtLmfSBx1e4gRyQicL9YY04CJ2mOki2p/jhRRS4mzxp7ipRM5JrQ7U+XR
 +k2FjGKFQHwQw/HNpYDG226gOK4bAfH64MeYxdrg2hW6xkZ3MB4j4j9BxquixgRre3UZ
 0LSurpylx4rwiasL/Q0sgrjAps7fsHtinXxUEgMYWDbm4edyghMfRHLdLrTZuK50SQvE
 8rEQ==
X-Gm-Message-State: AOJu0YxvpVISntqZJgqiIqNUS1RAHtokKDaTEHt1AxeWNSLKTJlEmV2o
 ov9SQzUvqxE+rD66GQl1J05jy9hwZLjokmV/4FQ=
X-Google-Smtp-Source: AGHT+IEBBblx8phXfBRVRvujNIoIaYThlQmfeiGW//K1A8Y2pthTG2DBXCimmLREftM/ehlb6gmwRf1J3ao/qPK3wvs=
X-Received: by 2002:a05:6830:1219:b0:6bd:bba9:2d6a with SMTP id
 r25-20020a056830121900b006bdbba92d6amr11433214otp.24.1695046327210; Mon, 18
 Sep 2023 07:12:07 -0700 (PDT)
MIME-Version: 1.0
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
In-Reply-To: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
From: Corwin Brust <corwin@HIDDEN>
Date: Mon, 18 Sep 2023 09:11:55 -0500
Message-ID: <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Stefan Kangas <stefankangas@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, =?UTF-8?B?SGFyYWxkIErDtnJn?= <haj@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Sun, Sep 17, 2023 at 7:47=E2=80=AFAM Stefan Kangas <stefankangas@HIDDEN=
om> wrote:
>
> Severity: wishist
>
> I don't think it makes sense for us to spend our meager resources
> maintaining two major modes for Perl.  I would like to gauge what people
> think about obsoleting perl-mode.el.
>

+1

I've been aliasing perl-mode to cperl-mode for well over a decade.
Every few years I try removing this but I haven't been very happy with
"vanilla" perl-mode: it just isn't as pretty, and I press more keys to
do the same things.  (Probably not enough specificity here to be very
helpful, alas.)

Before I knew any elisp I'd memorized these lines use when creating a
new .emacs file to Emacs on new system:

(defalias 'perl-mode 'cperl-mode "Prefer cperl-mode.")
(setq cperl-hairy t)
(setq cperl-indent-level 2)
(require 'cperl-mode)

IMO, given I already need to (and, in fact, do) configure Emacs to
turn on all the bells and whistles, it would make sense to add
configuration to (probably by default) turn off whatever is needed to
make cperl-mode less intrusive/off putting to those preferring
perl-mode now.  As a route to removing the need for two perl major
modes in core, I think it makes more sense than trying to making
perl-mode do what cperl-mode can while retaining it's more "bland"
defaults: that seems futile.


>
> - Instead of maintaining perl-mode.el, I'd rather see that people worked
>   on a new perl-ts-mode.el.  From a web search, more than one treesitter
>   grammar exist; I have no idea which one is the most promising or how
>   mature any of them are.
>

I believe this project from Paul Evans (author of Corrina, the new OO
system added in Perl 5.38) is the better TS grammar for perl:

https://github.com/tree-sitter-perl/tree-sitter-perl

A fairly current DLL for Windows uses should usually be available from here=
:

https://corwin.bru.st/emacs-tree-sitter/




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 17 Sep 2023 21:00:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 17 17:00:01 2023
Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qhys4-000464-Rc
	for submit <at> debbugs.gnu.org; Sun, 17 Sep 2023 17:00:01 -0400
Received: from mr5.vodafonemail.de ([145.253.228.165]:51846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jschmidt4gnu@HIDDEN>) id 1qhyry-00045m-SU
 for 66050 <at> debbugs.gnu.org; Sun, 17 Sep 2023 16:59:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de;
 s=vfde-mb-mr2-21dec; t=1694984380;
 bh=Fdps6Xl/WITbyPaNVk0vp5z5LarweJR0DXw5c2qsHn4=;
 h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent:
 Content-Type:From;
 b=JAgT3Vb2nNrD6ZtEXcUHwJp9QS2/NoitqdzV1nMqSPDRaNAVtuPD6sA5SV3++WS/G
 N8j6YmwQDR9ey507n/FICoOvuTfYCjTiZ3udo/1jlG2CyjKPrjmFBAFjrabB+399gs
 muTRK9RRES3nwNW03uz8x7co6kHIzFbPs8/gb0bg=
Received: from smtp.vodafone.de (unknown [10.0.0.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by mr5.vodafonemail.de (Postfix) with ESMTPS id 4RpgKS3203z1yBc;
 Sun, 17 Sep 2023 20:59:40 +0000 (UTC)
Received: from sappc2 (port-92-194-41-223.dynamic.as20676.net [92.194.41.223])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits)
 server-digest SHA256) (No client certificate requested)
 by smtp.vodafone.de (Postfix) with ESMTPSA id 4RpgK73lMYz9rxg;
 Sun, 17 Sep 2023 20:59:20 +0000 (UTC)
From: Jens Schmidt <jschmidt4gnu@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
 <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
Date: Sun, 17 Sep 2023 22:59:19 +0200
In-Reply-To: <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
 (Stefan Kangas's message of "Sun, 17 Sep 2023 11:20:28 -0700")
Message-ID: <87fs3cv7mg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-purgate-type: clean
X-purgate: clean
X-purgate-size: 3262
X-purgate-ID: 155817::1694984376-94FF4E22-42E3D9DA/0/0
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Harald =?utf-8?Q?J=C3=B6rg?= <haj@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Jens Schmidt <jschmidt4gnu@HIDDEN> writes:
>
>> cperl-mode already has some big-config-sweep-knobs, like it seems
>> (`cperl-hairy').  It would certainly be nice to also have some
>> "make-things-work-like-in-perl-mode-but-sans-its-bugs" knob if it came
>> to obsoleting perl-mode.  For me, the most important things to cover
>> here would be a nearly-identical look-and-feel for indentation and
>> syntax highlighting.
>
> Which features would be covered by `like-perl-mode-sans-bugs', that are
> not already covered by `cperl-hairy'?

Just to avoid misunderstandings: I have tried so far everything with
`cperl-hairy' unchanged from default nil.  I guess that non-nil makes
cperl-mode even more electric, etc., which is actually the opposite
direction of what I'm heading for.

> Is it just a matter of setting some already existing options or is
> "more work" needed?

That's more a question for Harald, I think, since I'm not very well
acquainted with cperl-mode.

I can state only what I have noticed this afternoon, after some very
cursory comparison and review.  Hoping this is the right place for such
a wish list:

1. All scalar references should be hightlighted with
   font-lock-variable-name-face.

Seems that `cperl-highlight-variables-indiscriminately' provides that.

2. Arrays and hashes should be highlighted just like scalars, in
   font-lock-variable-name-face.

3. Variable sigils ("$", "%", "@") should not be highlighted at all.

4. Builtins ("shift", "ref", "defined") should not be highlighted at
   all.

5. Package names should be highlighted as font-lock-constant-face rather
   than font-lock-function-face.

6. Unquoted hash keys before "=>" should not be highlighted at all.

7. Regexps should be highlighted as font-lock-string-face.

When I switch on cperl-mode, there is little left which is *not*
highlighted ...

8. Re-indentation of blocks should not merge else/elsif keywords with
   preceeding curlies.

9. Re-indenting a region should not adjust positions of after-code
   comments.

Ah, cperl-style "PBP" covers 8. and 9. above!

10. Some parts of cperl-mode look, well, over-engineered.  Function
    `cperl-find-pods-heres' is a stunning 1000+ lines long and obviously
    features regexps with more than 20 subres.

    BTW, on Image/ExifTool.pm as of version 12.16 I get errors in "emacs
    -Q" when switching on cperl-mode, I think because of that function.

11. Last not least, these pseudo-variables on the page labeled "Short
    extra-docs."  always bug me.  Packing arbitrary documentation in
    variables seems rather strange and rather non-standard.

While that does not sound much:

- I have the impression that, despite so many options in cperl-mode
  being available, just the right ones to "turn cperl-mode into
  perl-mode" are missing.  But that could also be because I haven't
  found them yet ...

- There's probably more to it than that.  Having some
  `like-perl-mode-sans-bugs' umbrella would be not only helpful to make
  this more easily customizable, but also to have something to "attach"
  future development to.  Not sure how to express that better.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 17 Sep 2023 18:20:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 17 14:20:46 2023
Received: from localhost ([127.0.0.1]:51410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qhwNy-0007y2-Gf
	for submit <at> debbugs.gnu.org; Sun, 17 Sep 2023 14:20:46 -0400
Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:55340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qhwNv-0007xk-Eq
 for 66050 <at> debbugs.gnu.org; Sun, 17 Sep 2023 14:20:45 -0400
Received: by mail-lf1-x12c.google.com with SMTP id
 2adb3069b0e04-502934c88b7so6234419e87.2
 for <66050 <at> debbugs.gnu.org>; Sun, 17 Sep 2023 11:20:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1694974829; x=1695579629; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=76hFD8HwcCnHxW8sdJnG3rlRghlDWJipLxGBHXy8rJk=;
 b=hWH5Tyqmpn1Ds3EKGJyEB89s6jtlVCwn6OvtTLhT7ZO1GlOFmpP5aeEbt5oJuOU/OW
 bi6a8JKR/kA8a9VVblD2hzY4F1eQ5unXYWVcB84r45FEkC0rJKl1eHJcAs/UZfVGKIiP
 3tPrRHdbTK+/NlovP4/wRRGvGlF/P3JsNwt3eSS4aX/T4yFDwd8/+f8Ita51MqDRMiel
 9hZaJuqILdydnils4WBAwNK7NeyFoPe9HHUBRKEt+LnzltQSN7WEyPNs+G54eqeV6RLh
 UsEaRU1++5mZEQdA7th5mdrP980bWSgJnaWFKye51HEG+CgzHYCThQMZL+wY1fEFsL7O
 bzvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1694974829; x=1695579629;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=76hFD8HwcCnHxW8sdJnG3rlRghlDWJipLxGBHXy8rJk=;
 b=dLwWoCIznvsnuub9Eh6Em+7UVREGH+euySegHIlfvBr1/N4tCuVhnZPNOSitAtOlLa
 SqhVkryTFuYqXcBQXLukXwwWmayBlI6lvsY89PckrgoXlZb4+FXRAKfUiqO54Lbcu9V0
 rxUl56WkciX7lACp97jfZndGoL3GSeGAFZx4CkJYCNyL92MdjTv6KqsL1FKRqDd2aURC
 sQlx1P9FEUJTTGtRsg4Oc6CKA0GuRoMtYRrGNbaA4g+z67q/LA2sVd6KlWVwWl9ufJza
 lIMuuA6pvUeUzacGg9rpRgYFyTB/cUpOsCS5y8qwF+R3RaV9by48Qb9VQoDuzmhUJeyP
 dxjw==
X-Gm-Message-State: AOJu0Yy2+7v5aluUvU7TRKk/ztlfjbgshON6Il47XlNdpWGgrr+PyUtR
 lYroGsaik8DJDD0nViCCwYb2j+zS9SygYxeVci0=
X-Google-Smtp-Source: AGHT+IHp1q84urvRRUTPzeytTFjbJYlMqUd+QewKbSLaNiNaeXkSOM4O8ZxOF69kEtNHOhVPkE93TNj/VcVrgKInQTo=
X-Received: by 2002:a2e:8ed7:0:b0:2b9:d7b7:36d4 with SMTP id
 e23-20020a2e8ed7000000b002b9d7b736d4mr5718729ljl.16.1694974829270; Sun, 17
 Sep 2023 11:20:29 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 17 Sep 2023 11:20:28 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87il88vjvd.fsf@HIDDEN>
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 <87il88vjvd.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sun, 17 Sep 2023 11:20:28 -0700
Message-ID: <CADwFkmkdkMoaDT4io=8e64_g88TxF-qk24Hz90rtzADAtE0WWQ@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
To: Jens Schmidt <jschmidt4gnu@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, =?UTF-8?B?SGFyYWxkIErDtnJn?= <haj@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jens Schmidt <jschmidt4gnu@HIDDEN> writes:

> cperl-mode already has some big-config-sweep-knobs, like it seems
> (`cperl-hairy').  It would certainly be nice to also have some
> "make-things-work-like-in-perl-mode-but-sans-its-bugs" knob if it came
> to obsoleting perl-mode.  For me, the most important things to cover
> here would be a nearly-identical look-and-feel for indentation and
> syntax highlighting.

Which features would be covered by `like-perl-mode-sans-bugs', that are
not already covered by `cperl-hairy'?  Is it just a matter of setting
some already existing options or is "more work" needed?

> One could even imagine to flip that knob automatically when `cperl-mode'
> gets started as `perl-mode'.

Maybe, but then again some users might want to continue using the
original perl-mode even if it's obsolete.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.

Message received at 66050 <at> debbugs.gnu.org:


Received: (at 66050) by debbugs.gnu.org; 17 Sep 2023 16:35:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 17 12:35:23 2023
Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qhujz-0005FT-0z
	for submit <at> debbugs.gnu.org; Sun, 17 Sep 2023 12:35:23 -0400
Received: from mr3.vodafonemail.de ([145.253.228.163]:55692)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jschmidt4gnu@HIDDEN>) id 1qhuju-0005FA-TF
 for 66050 <at> debbugs.gnu.org; Sun, 17 Sep 2023 12:35:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de;
 s=vfde-mb-mr2-21dec; t=1694968504;
 bh=9dQTgqYuDtS/Egwv5RXRAZKHX+Uyl+mnnsvDT6Rrm3Y=;
 h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent:
 Content-Type:From;
 b=qmMBg7R5T+12/9VwWl2WEICP45MnND7SEWjehbq+GpX3VhvPOH1C2rYPwCKWL4kw9
 G2jJiMsnul7YvZYKEKSqhXLTNZmbuzhI/19cMcrzKA3iGdOppuKq9jgW4xUrSLsiLV
 fhhFVCcUEcxQyRNDReWiZy9s6VrBxUmT5/u31LUc=
Received: from smtp.vodafone.de (unknown [10.0.0.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by mr3.vodafonemail.de (Postfix) with ESMTPS id 4RpYS835Kqz1ynS;
 Sun, 17 Sep 2023 16:35:04 +0000 (UTC)
Received: from sappc2 (port-92-194-41-223.dynamic.as20676.net [92.194.41.223])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits)
 server-digest SHA256) (No client certificate requested)
 by smtp.vodafone.de (Postfix) with ESMTPSA id 4RpYRt594Rz9sPN;
 Sun, 17 Sep 2023 16:34:47 +0000 (UTC)
From: Jens Schmidt <jschmidt4gnu@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#66050: Making perl-mode.el obsolete
References: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
Date: Sun, 17 Sep 2023 18:34:46 +0200
In-Reply-To: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
 (Stefan Kangas's message of "Sun, 17 Sep 2023 05:47:49 -0700")
Message-ID: <87il88vjvd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-purgate-type: clean
X-purgate: clean
X-purgate-size: 1436
X-purgate-ID: 155817::1694968500-157FBE22-3B449CF2/0/0
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 66050
Cc: 66050 <at> debbugs.gnu.org, Harald =?utf-8?Q?J=C3=B6rg?= <haj@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> I don't think it makes sense for us to spend our meager resources
> maintaining two major modes for Perl.  I would like to gauge what people
> think about obsoleting perl-mode.el.

There has been a thread on emacs-devel recently on that:

  https://yhetil.org/emacs-devel/16da6ae7-66d8-fc43-cb84-6d104d3a2ef8@HIDDEN/

plus my opinion:

  https://yhetil.org/emacs-devel/4d18a051-07d5-fba7-1c36-ae2eb72bf71c@HIDDEN/

which still holds.

But I can see your points, of course.

cperl-mode already has some big-config-sweep-knobs, like it seems
(`cperl-hairy').  It would certainly be nice to also have some
"make-things-work-like-in-perl-mode-but-sans-its-bugs" knob if it came
to obsoleting perl-mode.  For me, the most important things to cover
here would be a nearly-identical look-and-feel for indentation and
syntax highlighting.

One could even imagine to flip that knob automatically when `cperl-mode'
gets started as `perl-mode'.

> - Instead of maintaining perl-mode.el, I'd rather see that people worked
>   on a new perl-ts-mode.el.  From a web search, more than one treesitter
>   grammar exist; I have no idea which one is the most promising or how
>   mature any of them are.

+1, with the same restrictions on indentation and syntax highlighting.
After 25+ years of using one mode you just get so used to its
look-and-feel.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Sep 2023 12:48:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 17 08:48:12 2023
Received: from localhost ([127.0.0.1]:49342 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qhrC8-0007Yn-IM
	for submit <at> debbugs.gnu.org; Sun, 17 Sep 2023 08:48:12 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qhrC3-0007Xi-Jf
 for submit <at> debbugs.gnu.org; Sun, 17 Sep 2023 08:48:11 -0400
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 <stefankangas@HIDDEN>)
 id 1qhrBq-0002aA-JP
 for bug-gnu-emacs@HIDDEN; Sun, 17 Sep 2023 08:47:54 -0400
Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1qhrBo-00041D-Sr
 for bug-gnu-emacs@HIDDEN; Sun, 17 Sep 2023 08:47:54 -0400
Received: by mail-lj1-x230.google.com with SMTP id
 38308e7fff4ca-2c00c0f11b2so1348691fa.1
 for <bug-gnu-emacs@HIDDEN>; Sun, 17 Sep 2023 05:47:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1694954870; x=1695559670; darn=gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=XtGlEIbJuIuVfeolvIWzkWl7Yys5eA/zQYe9TI55EI4=;
 b=UJXaDEn3anqywF4LW1yNw/7IPrUlbiUzX0gPlH+CHmwRZPfcPyU2TmQnkyARauzPvB
 YAcW353AAZ0QBiR4LBduC0vPiOxAmeXap+ApSNfG9uDyP0UwvEil6X1FT+WHZKMbpptr
 anqv4CR2SCJsZbgYyXzkxB58tBHO82G+fZJWUVRrup3ZlcR59MFgcaaWhNJqQ9/kzcwR
 9b+gMHShUS5N1A5xvWqL4TiyWTfdvxiqk2uAFmn7TOYG0vlAi0kZfYy81D1Tsvu4RQPX
 IH6/oErq+Bg/XwmiNpJjJBlmhPRmGTLpJVk+/4tUyALJ/7NR2GTFkIV1kTjQnY1/XTI1
 Xvlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1694954870; x=1695559670;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=XtGlEIbJuIuVfeolvIWzkWl7Yys5eA/zQYe9TI55EI4=;
 b=RXdIZ3chi+2scEnU7Ecx6cosuG3QVPczg8X1nROigwj3OE9Z4265a81g1IoD8J3YPM
 SyRQ2ivdaORXgKCr5vWIzXP+tXz2TJL+B0d17uwCh9+wRnVIp+yy/LXk77gY0YD6Uton
 +XtWHUswcazTemrZElW7vz2wDJxuht1GopiAboDLR420zSfDMoIpupTJi5OOkvpgercR
 egVYx3sjxnoubqDbjW4FICWDVAVamdfibxxqhhHoNLUWwxNkCuJ8T3+IOtUiNGFQir+Q
 SwnndhKd6YBB0faC4tx36JKEoQVf6IE6G+ExtUwa6dU94fxQfw6/3l+elu3elFyEJaSq
 zN3g==
X-Gm-Message-State: AOJu0YwtAVeOJAxSJOmE7RFIbvGrZw9enYNBsV/qh871AAqGe/Tcj8Tz
 zBWzPnmrOsiuwZMssCkcoZNGVJ3/nEp5Kr8k8bqopIGF
X-Google-Smtp-Source: AGHT+IEi2vqYSk5Zyy81/OkNUZJEJ9/hRoF+qqNkeXYBEx1HYqSCgHToJQ8L+h6ArsE3ZvdWAGzVAAIdy1emF1KrXeE=
X-Received: by 2002:a2e:99cc:0:b0:2b9:55c9:c228 with SMTP id
 l12-20020a2e99cc000000b002b955c9c228mr5768482ljj.27.1694954870197; Sun, 17
 Sep 2023 05:47:50 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 17 Sep 2023 05:47:49 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
X-Debbugs-CC: =?UTF-8?Q?Harald_J=C3=B6rg_=3Chaj=40posteo=2Ede=3E=2C_Stefan_Monnier_=3Cm?=
 =?UTF-8?Q?onnier=40iro=2Eumontreal=2Eca=3E?=
MIME-Version: 1.0
Date: Sun, 17 Sep 2023 05:47:49 -0700
Message-ID: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@HIDDEN>
Subject: Making perl-mode.el obsolete
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::230;
 envelope-from=stefankangas@HIDDEN; helo=mail-lj1-x230.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Severity: wishist

I don't think it makes sense for us to spend our meager resources
maintaining two major modes for Perl.  I would like to gauge what people
think about obsoleting perl-mode.el.

Harald J=C3=B6rg wrote previously on emacs-devel:

> Finally, perl-mode comes with its own list of ancient open bugs, many of
> those don't occur in cperl-mode.  I wonder whether the authors of these
> bugs would accept "use cperl-mode instead" as a workaround?
>
> At some time, it might make sense to merge those two modes into one.
> Perl continues to evolve, and upgrading two modes to support that
> doesn't seem to be an economic use of time.

    https://lists.gnu.org/r/emacs-devel/2020-10/msg01492.html

Here are some additional observations:

- cperl-mode.el sees more maintenance than perl-mode.el, in large part
  thanks to the efforts of Harald J=C3=B6rg.

- The Perl community tends to favor cperl-mode over perl-mode.
  perl-mode is seen as lacking in features compared to cperl-mode, and
  no significant development has taken place to bridge the gap.

- cperl-mode.el used to be maintained outside of Emacs, but this is no
  longer the case.  All relevant development has been merged into and
  takes place in emacs.git.

- Perl, while historically important to hacker culture and still widely
  used in some quarters (e.g. Debian), is seeing much less use today
  than it used to.  This will negatively affect the amount of help we
  can expect with maintaining these modes from others.

- Instead of maintaining perl-mode.el, I'd rather see that people worked
  on a new perl-ts-mode.el.  From a web search, more than one treesitter
  grammar exist; I have no idea which one is the most promising or how
  mature any of them are.




Acknowledgement sent to Stefan Kangas <stefankangas@HIDDEN>:
New bug report received and forwarded. Copy sent to haj@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN.

Your message specified a Severity: in the pseudo-header, but the severity value wishist was not recognised. The default severity normal is being used instead. The recognised values are: critical, grave, serious, important, normal, minor, wishlist.

Full text available.


Report forwarded to haj@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#66050; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Sep 2023 09:30:02 UTC

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