all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Corwin Brust <corwin@bru.st>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 66050@debbugs.gnu.org, "Harald Jörg" <haj@posteo.de>,
	"Stefan Monnier" <monnier@iro.umontreal.ca>
Subject: bug#66050: Making perl-mode.el obsolete
Date: Mon, 18 Sep 2023 09:11:55 -0500	[thread overview]
Message-ID: <CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=2QseuH91ZBP0tCiitHYy_cVjWJCm6KLDnib_+anSkDg@mail.gmail.com>

On Sun, Sep 17, 2023 at 7:47 AM Stefan Kangas <stefankangas@gmail.com> 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/





  parent reply	other threads:[~2023-09-18 14:11 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-17 12:47 bug#66050: Making perl-mode.el obsolete Stefan Kangas
2023-09-17 16:34 ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-17 18:20   ` Stefan Kangas
2023-09-17 20:59     ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-22  7:39       ` Stefan Kangas
2023-09-24  0:02       ` Harald Jörg
2023-09-24 15:58         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24 21:29           ` Harald Jörg
2023-09-24 22:12             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-25  9:18               ` Harald Jörg
2023-09-25 10:09                 ` Mauro Aranda
2023-09-25 10:34                   ` Harald Jörg
2023-09-18 14:11 ` Corwin Brust [this message]
2023-09-20 18:34   ` Richard Stallman
2023-09-20 23:26     ` Stefan Kangas
2023-09-21  0:08       ` Corwin Brust
2023-09-21  0:16         ` Stefan Kangas
2023-09-21  0:37           ` Corwin Brust
2023-09-21  0:49             ` Stefan Kangas
2023-09-21 14:13           ` Mauro Aranda
2023-09-21 14:20             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-21 20:14               ` Mauro Aranda
2023-09-24  5:30                 ` Stefan Kangas
2023-09-24 22:21             ` Harald Jörg
2023-09-24 22:40               ` Mauro Aranda
2023-09-25  8:33                 ` Harald Jörg
2023-09-25 13:04                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24 22:54               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-25  8:40                 ` Harald Jörg
2023-09-18 16:14 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24  0:44   ` Harald Jörg
2023-09-24  7:31     ` Stefan Kangas
2023-09-24 16:01       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-26  9:02       ` Richard Stallman
2023-09-23 22:13 ` Harald Jörg
2023-09-24 10:41   ` Stefan Kangas

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=CAJf-WoT7rsB_eKufYG5KRG97x5LXwdhDHX_1GjbUJ9--3zt_4w@mail.gmail.com \
    --to=corwin@bru.st \
    --cc=66050@debbugs.gnu.org \
    --cc=haj@posteo.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=stefankangas@gmail.com \
    /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.