From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Call for volunteers: add tree-sitter support to major modes Date: Mon, 10 Oct 2022 22:14:36 -0700 Message-ID: <8D3026E9-D8A4-46EC-816B-1F7A3458DC02@gmail.com> References: <83czb1jrm3.fsf@gnu.org> <878rlo7on0.fsf@thornhill.no> <83o7uki5ol.fsf@gnu.org> <87tu4c5g9j.fsf@thornhill.no> <87k057j7gn.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29925"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Theodor Thornhill , Eli Zaretskii , Alan Mackenzie , emacs-devel , jostein@kjonigsen.net To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 07:18:00 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi7eR-0007Vu-Uj for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 07:17:59 +0200 Original-Received: from localhost ([::1]:56696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi7eQ-0000LW-N5 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 01:17:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi7bJ-0006zu-5F for emacs-devel@gnu.org; Tue, 11 Oct 2022 01:14:46 -0400 Original-Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:36619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi7bH-0005AY-B4; Tue, 11 Oct 2022 01:14:44 -0400 Original-Received: by mail-pg1-x529.google.com with SMTP id s206so11952478pgs.3; Mon, 10 Oct 2022 22:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9sHN2v7MrYQMFoeQycXRYZaIkpykIgPil10NRYHlF+U=; b=AE+7a0pFzFgs3nsZrH2aXIdd+O5rigEar+02NaMPd9OIFgVAVNC0NFuUa1nqla41ha 3V7rNnuUSnDPZLVsAIIv+ZxNQq6yZkuo0DMLiH14ZMxasg5oHSken3ZirD8jybUselSM MsmwkDgzuoW+/yeI/RTIK6w2K6DbnAddiTv9r6X539imsHo1YKGNi1QwyOx7BAiZpjPS duQGWSdvbw2Fin4BetK/hytk4rWUlFzsAPJVvNCfUtdq0X1aqHPJrYXuqdp3HTdfIz++ TTDcny2Gx7J9ggmQtaupE07lVfkq09oJXRrkbCY3LhbW7eZoKELsvTsqitqSx417W22r lk4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9sHN2v7MrYQMFoeQycXRYZaIkpykIgPil10NRYHlF+U=; b=Sr5tCPxA3Le8IHFxKviRnre0+NTiL17zvhtyd1SROeqHXTkr9sgQqpZLTkKQlrjXwk WaF3eoJ7d1pSXNVQxA6Joh6afAluxtyHDAfcg96iZr7VIgVTfO6Eg3657wvshBAEEZJM cEvbzDyFki8TKmV9Po8ZINkO4o1cpLISpQvfWGThBuJCSv/S1rwAf6UbBzr6j6q0875o LJoxF8q8ydpr0O6elzTPk6soCf8Wrg5SLxtKn9lwtuTQrtDZkNA955SZdOeY5Fx5ubl5 LC1PnNWUzzVi401fmbPjrJmgKqksddbVJ9BQ0uOJetQGrDjd6umDoXtw/eLJOiga3Rh7 /hzg== X-Gm-Message-State: ACrzQf0Laxf2CkwUoaB3DcTADTlGKDoXsBdNWDid5jRusbSzw+CFzOcK vsth8vX7F17KOpEzuEVtyhQ= X-Google-Smtp-Source: AMsMyM5EH/WdnuWu3GLexodT75c8vCzY4Cc86atFLgsfceb2lq6/NZqymd25+jkJaQie6vIGDemUEg== X-Received: by 2002:a63:1608:0:b0:45a:355a:9420 with SMTP id w8-20020a631608000000b0045a355a9420mr19765509pgl.354.1665465280972; Mon, 10 Oct 2022 22:14:40 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id ix21-20020a170902f81500b001807922f43bsm6318788plb.158.2022.10.10.22.14.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Oct 2022 22:14:40 -0700 (PDT) In-Reply-To: <87k057j7gn.fsf@yahoo.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=casouri@gmail.com; helo=mail-pg1-x529.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297418 Archived-At: > On Oct 10, 2022, at 9:43 PM, Po Lu wrote: >=20 > Theodor Thornhill writes: >=20 >> My suggestion is to add the tree-sitter variant in these cases, and = let >> the other modes die a slow, deprecated death down the line. >=20 > In that case, will any of you object if someone writes a parser > generator in C and an implementation of the tree-sitter runtime = library > that can be included with Emacs itself (namely, with the copyright > assigned to the FSF?) >=20 > They will be able to use any existing tree-sitter grammar, of course. Tree-sitter library and the =E2=80=9Cofficial=E2=80=9D language = definitions are all MIT licensed. So nothing prevents us from including = it copyright-wise. >=20 > My opinion is that Emacs should not degrade its text editing > capabilities so drastically if a non-system library (i.e. not ncurses = or > Xlib) is not present. Considering that Emacs currently doesn=E2=80=99t have C# and typescript = support in core at all, I wouldn=E2=80=99t call it a downgrade. But I = agree the idea that a major mode requiring external dependency to = function is not very comfortable. Yuan=