all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Tuấn-Anh Nguyễn" <ubolonton@gmail.com>
To: Yuan Fu <casouri@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: [NonGNU ELPA] New packages proposal: tree-sitter
Date: Sat, 28 Aug 2021 23:52:37 +0700	[thread overview]
Message-ID: <CAOGL6j5eQPH6YSZ+wqcvGKhsuhXNgBxZND2PcLYk28Vg=_56mw@mail.gmail.com> (raw)
In-Reply-To: <3FB80347-178E-46A4-9B15-A054578FBD0C@gmail.com>

> I'd be much happier if you could coordinate with Yuan Fu
> <casouri@gmail.com>, who works on integrating TS into the Emacs core.

That's a good idea. I'll start by reviewing that work when I have time.

> This stuff should IMO be in core, not in 3rd-party packages, let alone
> on nonGNU ELPA.

As I've already said before, I don't see this as an "either or" situation. I
want tree-sitter to be integrated into Emacs core too, eventually. Seems like we
are still a long way from there, though. These packages already work, and are
used by many people.

> I guess I should have reached out sooner, communicating that I’m about to do it, but on the other hand I don’t want to just come in and talk about what I’m going to do and such and such, before I actually did anything. And my general understanding is that there aren’t much interest in integrating tree-sitter into the C core. So...

Great initiative! To clarify, again: I wanted tree-sitter to be integrated into
Emacs core, and proposed the dynamic-module-based approach as an interim
solution that would better facilitate experimentation while we work towards
that end goal. That has worked out reasonably well. When Emacs core has
tree-sitter integrated, these packages can hopefully be deprecated.

> > Can you tell which functionality is missing from Yuan Fu's work that
> > is supported by those 3 packages?  Can that functionality be added to
> > Yuan Fu's code?
>
> The code is at https://github.com/casouri/emacs, in the “ts” branch. The main things to look at are src/tree-sitter.c, lisp/tree-sitter.el, and doc/lispref/parsing.texi.
>
> There is an on-going discussion about tree-sitter API in Emacs, starting at https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00246.html

Thanks, I'll check it out. In the meantime, please feel free to study the
packages, borrow the code/ideas/design decisions, and ask questions about them,
or about tree-sitter in general.

Thanks,
--
Tuấn-Anh Nguyễn
Software Engineer



      reply	other threads:[~2021-08-28 16:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 10:48 [NonGNU ELPA] New packages proposal: tree-sitter Tuấn-Anh Nguyễn
2021-08-27 11:46 ` Eli Zaretskii
2021-08-28  7:00   ` Yuan Fu
2021-08-28 16:52     ` Tuấn-Anh Nguyễn [this message]

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='CAOGL6j5eQPH6YSZ+wqcvGKhsuhXNgBxZND2PcLYk28Vg=_56mw@mail.gmail.com' \
    --to=ubolonton@gmail.com \
    --cc=casouri@gmail.com \
    --cc=eliz@gnu.org \
    --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.