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: Tree-sitter api Date: Mon, 13 Dec 2021 23:19:06 -0800 Message-ID: References: <83r1f7hydn.fsf@gnu.org> <83lf3zdh4z.fsf@gnu.org> <8965C4A0-79D3-4D77-A6BA-D07A6C93F7FE@gmail.com> <83ilz3cs4k.fsf@gnu.org> <04D19C1A-CD64-4156-B932-1C9FEEE4EC7B@gmail.com> <83zgsebc0r.fsf@gnu.org> <1F752923-F357-4A18-B6E2-0120F1B9BD37@gmail.com> <83fsu5bzem.fsf@gnu.org> <83zgsdad5j.fsf@gnu.org> <83sfy391ni.fsf@gnu.org> <03386E3C-A975-4ECD-BF89-6AC62F751725@gmail.com> <83ilyz8xdl.fsf@gnu.org> <86czp6ukpj.fsf@stephe-leake.org> <1AEED8A5-BF5E-45E5-AE22-9B405A710F9B@gmail.com> <83czp313tf.fsf@gnu.org> <7447C582-70CB-4599-BC76-AD5687D64250@gmail.com> <784947A6-6164-4158-993B-01E881690ADF@gmail.com> <83zgrxji7q.fsf@gnu.org> <8E8D28F9-258E-490B-BF48-7EF8D6CA0817@gmail.com> <838rzgk6ll.fsf@gnu.org> <83k0g8mznc.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) 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="17914"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= , Theodor Thornhill , =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , Emacs developers , Stefan Monnier , Stephen Leake , john@yates-sheets.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 14 08:20:01 2021 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 1mx26R-0004PA-VL for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Dec 2021 08:19:59 +0100 Original-Received: from localhost ([::1]:59652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mx26Q-0007hL-44 for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Dec 2021 02:19:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx25h-00072u-Fu for emacs-devel@gnu.org; Tue, 14 Dec 2021 02:19:13 -0500 Original-Received: from [2607:f8b0:4864:20::82a] (port=44758 helo=mail-qt1-x82a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mx25f-0002WH-J8; Tue, 14 Dec 2021 02:19:13 -0500 Original-Received: by mail-qt1-x82a.google.com with SMTP id a2so17577756qtx.11; Mon, 13 Dec 2021 23:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=o2svH86utmg2VgLHql9lW9mchOqpn+MPNQxIDfsXDVo=; b=gjopf5z4cjXoGaXntEv9SctIWYpAq35Irhj5jWLU4kRI976p0n+HaI9Ud/0yhhJgko KSD8VRjPT3Md4AVdbJDN5g7yj5fBFQbmxogPEFN5JqRuQ3FBhV5u2rFRuRuU85RQQdM8 dWWwkYSAMrrTS5IeJjxJ02EDHXBQtSaLqQmb/hV1m59Vn6Iw0OpGilfxxAYGAOZ3LzIW 0DwEhJ0Eo/ZHR8/6SEhGc3jnmYXumqP6XazPsgPRVucE/CAAex7StKmAIlkw2iFM/6rK 8GTrQhe9r5yGMOCwJW4E9yesEeEV8ttf2QE7HXu9ku1aSJFFmVHcTbEZsJeH5eqXHM/u mrzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=o2svH86utmg2VgLHql9lW9mchOqpn+MPNQxIDfsXDVo=; b=ORUQN8zkA15OxlyQMvQ1qsthO/7QQwaNyBldRZ/Z6LfiZFRpIMBYNMH1Jg1pA1g5zS F4/VDk7x6qw6GUK+s5PU9+RJi/ZsdxEEpQHdCJIYyvPN+hBnKaiIYGd9AXj+DB3KKPTJ ugj1OHC9fQKJarYD0nHd8bpGce3PR4/t+G7IcZoVV5+cb4/BfMe21BFBb5ox2TXSuZnm TmB7cjCdQKtpdpf56ZejXwFVhiqx3JlYNYFlHQpxnTyC+qehdeNMWjDRBK9O+JnCI1dz Gq347Tg3mm7bBiDZflkOEnGsxI574hEvyNx8857Fx9pwevzWdB0SASD9tSZHHXjsJDUe 07rw== X-Gm-Message-State: AOAM530XIYkLlAMgUmNHS0QiLg5q8e4cR6CeJd639FjChfwsFh5DsPhX HE0k4OsqESeLgaz+Ez0ljngbm0+0R/Y= X-Google-Smtp-Source: ABdhPJyPZ9B6HZy5/e6+3mRdVENv6TRqCsuvZ26K2y34RQY260TvmoBLugk6DGcgRGi69ct4OIhNkw== X-Received: by 2002:ac8:4e8c:: with SMTP id 12mr4141952qtp.45.1639466349423; Mon, 13 Dec 2021 23:19:09 -0800 (PST) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:a569:9d81:d71b:3e7c]) by smtp.gmail.com with ESMTPSA id v12sm11534552qtx.80.2021.12.13.23.19.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Dec 2021 23:19:08 -0800 (PST) In-Reply-To: <83k0g8mznc.fsf@gnu.org> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::82a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=casouri@gmail.com; helo=mail-qt1-x82a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:281877 Archived-At: >>=20 >> It=E2=80=99s been a while and no one provided further comments on the = indent and font-lock integration of tree-sitter, so I finished the = manuals for indent and font-lock integration. They are under 24.6 Font = Lock Mode and 24.7 Automatic Indentation of code. Once the author of = tree-sitter allow tree-sitter to change malloc implementation at = runtime, tree-sitter integration will be ready. (Though I suspect that = won=E2=80=99t come soon. The author is still actively developing = tree-sitter but he didn=E2=80=99t reply to my request.) >=20 > Would you please ping the authors and tell them that this single issue > prevents us from integrating TS into Emacs? Maybe that would change > their priorities. I cannot imagine that the feature we are asking is > hard to implement. Done. >> As before, the code is at https://github.com/casouri/emacs on ts = branch. >=20 > Thanks. Perhaps people could try testing the branch and providing > feedback? Yes. Now that the manual is complete, people are welcome to try it out = and see what they like and don=E2=80=99t like. It would be even better = if someone wants to implement some major modes with the new tree-sitter = features. Yuan=