From: "Harald Jörg" <haj@posteo.de>
To: Corwin Brust <corwin@bru.st>
Cc: emacs-devel@gnu.org
Subject: Enhancing cperl-mode (was: Re: Does Emacs need two Perl modes?)
Date: Mon, 19 Jun 2023 14:34:39 +0000 [thread overview]
Message-ID: <878rcfbjwg.fsf_-_@oook.m.uunet.de> (raw)
In-Reply-To: <CAJf-WoTP9br_ezSD3qZQkGJa_cNWJt=PqUHA8T-1QEdWsS_z9g@mail.gmail.com> (Corwin Brust's message of "Mon, 19 Jun 2023 08:01:59 -0500")
Corwin Brust <corwin@bru.st> writes:
> I was thinking about this just yesterday while whipping up this rather
> naive patch for cperl (adding class/method/ADJUST and async/await):
> https://bpa.st/VPAW4
Nice!
Are you going to commit this? I'm working on adapting cperl-mode to
Perl 5.38 as well, and unsurprisingly my patch looks very similar (but
isn't committed yet either).
> [...]
> My sense has been that perl-mode is wired up by default specifically
> because it's the less frills choice, and thus more likely to perform
> well on older and underpowered systems.
The performance was indeed a point of criticism when I started using
cperl-mode. But that was in another century - I doubt that it is a
serious issue today.
But yes, perl-mode is less ambitious (e.g. it doesn't look into regular
expressions and doesn't offer code reformatting). Its code is cleaner,
and it uses the "Simple Minded Indentation Engine", which in many cases
gets it right.
I guess that in some areas both Perl modes will converge (for example,
they are using the same test suite). Once the tree-sitter grammar for
Perl is reasonably complete (it isn't today), both modes might want to
use that. Also, I've been dreaming of adding support for Perl's syntax
extensions as minor modes which can be activated on top of perl-mode and
cperl-mode.
--
Cheers,
haj
next prev parent reply other threads:[~2023-06-19 14:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 10:14 Does Emacs need two Perl modes? Peter Oliver
2023-06-18 12:15 ` Po Lu
2023-06-18 12:56 ` Jens Schmidt
2023-06-19 13:01 ` Corwin Brust
2023-06-19 14:34 ` Harald Jörg [this message]
2023-06-19 14:58 ` Enhancing cperl-mode (was: Re: Does Emacs need two Perl modes?) Corwin Brust
2023-06-19 16:41 ` Enhancing cperl-mode Harald Jörg
2023-06-19 21:49 ` Corwin Brust
2023-06-20 2:57 ` Does Emacs need two Perl modes? Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rcfbjwg.fsf_-_@oook.m.uunet.de \
--to=haj@posteo.de \
--cc=corwin@bru.st \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.