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: Sat, 11 Sep 2021 12:02:24 -0700 Message-ID: References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@gmail.com> <4E876354-10D1-46B3-8124-CAE916261F08@gmail.com> <0A3F5464-B90D-4D47-BBDD-CCA26D877F43@gmail.com> <83tuiys1y4.fsf@gnu.org> <835yvcpdip.fsf@gnu.org> <7B1F90DE-A992-4F51-B391-0A4E5A598780@gmail.com> <3E8CA8E4-E623-4051-A76D-508C6CF94B6A@gmail.com> <837dfpj5yf.fsf@gnu.org> <2A8BD2EC-7420-4FD7-BF63-A5E6715B51AA@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="9450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Cl=C3=A9ment_Pit-Claudel?= , Theodor Thornhill , emacs-devel , Stefan Monnier , Eli Zaretskii , Stephen Leake To: =?utf-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 11 21:03:25 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 1mP8Hb-0002D3-DK for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Sep 2021 21:03:23 +0200 Original-Received: from localhost ([::1]:52646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP8Ha-0000gC-45 for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Sep 2021 15:03:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP8Gn-0007lZ-63 for emacs-devel@gnu.org; Sat, 11 Sep 2021 15:02:34 -0400 Original-Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:36366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP8Gh-0003Zb-MM; Sat, 11 Sep 2021 15:02:31 -0400 Original-Received: by mail-qv1-xf2f.google.com with SMTP id 4so3515467qvp.3; Sat, 11 Sep 2021 12:02:26 -0700 (PDT) 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=hfFaq26C9Rsdugvkg3m2wMaxw0VgNyU/LJeAOz2Fx+I=; b=mdLb95HYRgtC9Bpix6Rn6XpL8+pdyM3LSr+7mooRo+IvzJOeZE+l2sAEPobVdDIwKe 61QXcoqKtcZILSkQDAUI1/cPFFzDMZWIsxKs8f/iD4INKfrJEjDQXEeGGR2JnO4mNHbO tRX1kPG0hU5CJxbXl/yDxcOLjq8DBBzlcDUWXb6kPladm9VtrYa3/QOv6ZCecaJRuopu d0OQ3e2PTxzbAMBiUDrCxf4Db1igXKGt9f7QK36MfOOH33OtEwX5x/u9DOYclec8g3Fq 7i2Z2ehql+Ef3VGc0RIDfqCMQvyN+DSc+jEEqpN3SPjpOlhUYY4lNex4rx1S/2xZWwsm uwjw== 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=hfFaq26C9Rsdugvkg3m2wMaxw0VgNyU/LJeAOz2Fx+I=; b=kTlH8PbuSxA+JfP0oa04DMcot7UTHKAuq0vauEWVvxVzQfbUUFVv4JOEjIlw2KAUdI Sd2cPgnzoYvfJ9AQP9+MkBAhsfi6mkdieOXbivNK+tF9QbdtysMETrwc4Xu/Vh0TVUeC qfOnYgrJMTXig1EUmmzeFIfgPYHRfcZlF1q0CZtAd77z/j4HOWoFcw977GYYlG0SR1Ie NJBi9CkhKTh4sjMxo5GTUAMNKOvKweFoq/PkiuwXvvoX6e7PnvpFo1aA10NuDdrNvPC8 LOdxxmdSDQTmBGOk528wYnjq/+m6cq9bg1mlR0UteKIIHNuAgY8qLVrBTrvJ0kGh6m5N Eu4g== X-Gm-Message-State: AOAM531fNLOtYNI7fLBUDqdn0AbyPv5XsuCqj3MuZfjaxF6Z0alYhZti 7OQQVn/wW7J3EXaG4mujTbM= X-Google-Smtp-Source: ABdhPJw5G90ND69o4SZQ4+AJS9VhSbDYkGGZ9g7M9hn0FSxFFD6SLZjTRqAAdOIDllG3fDhskmNXBA== X-Received: by 2002:a0c:e910:: with SMTP id a16mr3507270qvo.37.1631386945876; Sat, 11 Sep 2021 12:02:25 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:a158:bbab:fca1:1f4e]) by smtp.gmail.com with ESMTPSA id bl36sm1594323qkb.37.2021.09.11.12.02.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Sep 2021 12:02:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=casouri@gmail.com; helo=mail-qv1-xf2f.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.23 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:274562 Archived-At: > On Sep 11, 2021, at 12:23 AM, Tu=E1=BA=A5n-Anh Nguy=E1=BB=85n = wrote: >=20 >> I think you have it backwards. IIUC the reason why every Emacs = dynamic module declares =E2=80=9Cplugin_is_GPL_compatible=E2=80=9D is = that every shared library that links with Emacs must be GPL compatible, = and an Emacs dynamic module is a shared library. But that=E2=80=99s just = my understanding, of course. I=E2=80=99m happy to be corrected. >=20 > That understanding is wrong. To help you understand better: every = Emacs dynamic > module is a shared library, but the opposite is not true. If you are = still > confused, read the relevant parts in `emacs-module.c`. On another = note, shared > libraries in general don't "link" with Emacs. "Linking" has very = specific and > precise technical meanings in this context. Please read up on that, = starting > from "dynamic linking vs. dynamic loading.=E2=80=9D I see, thanks for the explanation. Anyway, I=E2=80=99m glad there = isn=E2=80=99t an issue.=20 Yuan