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 introduction documentation Date: Sun, 1 Jan 2023 16:31:30 -0800 Message-ID: References: <83edszjslp.fsf@gnu.org> <87tu1vxs3a.fsf@ledu-giraud.fr> <831qozjob7.fsf@gnu.org> <87cz8jxoat.fsf@ledu-giraud.fr> <83wn6ri7pn.fsf@gnu.org> <5e0a3185-de82-b339-0fa2-956779e63d6f@cornell.edu> <868rj6vfep.fsf@gmail.com> <4895891b-e5ea-9c37-f51b-df2e479ee758@yandex.ru> <83y1qt11xq.fsf@gnu.org> <9eb013da-d0fc-8e17-c6e3-1e8f913aebfa@yandex.ru> <83pmc50xxc.fsf@gnu.org> <71cfe4e8-3bb8-b0a6-9be5-8c0a6d92cfab@yandex.ru> <83h6xg29z3.fsf@gnu.org> <87wn6cyey5.fsf@posteo.net> <787B1EB4-1925-4679-8747-449DCD685432@gmail.com> <83y1qo6h7a.fsf@gnu.org> <837cy64v2f.fsf@gnu.org> 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="12463"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Philip Kaludercic , Dmitry Gutov , theophilusx@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 02 01:32:00 2023 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 1pC8kB-00030J-O2 for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Jan 2023 01:31:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC8jp-0007c5-40; Sun, 01 Jan 2023 19:31:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pC8jn-0007bv-NJ for emacs-devel@gnu.org; Sun, 01 Jan 2023 19:31:35 -0500 Original-Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pC8jm-00019Q-AY; Sun, 01 Jan 2023 19:31:35 -0500 Original-Received: by mail-qt1-x82a.google.com with SMTP id g7so21486541qts.1; Sun, 01 Jan 2023 16:31:33 -0800 (PST) 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=Oy+3AzPxTD25VIvZelq7CvsmBK4NvyfxcQNqUBR6Yy8=; b=jZdAUNftG+LC58iD1Hr+2svmpW9yHDrEXKWEY5J5l2dLE+eB8ucMYsRFJB+ThRt/Ra XewBOYqND/c6V8vxPzqPaROTPM99M6xDeDs+XLnPphVCclKIv/VehnyGqN699ZMI/1IY PI9mJLIa4yJx7/c8Lx/doWkrzLVCCTyCmhTmyO+62ipVR4upMRY2nWFd9vjjyT9bdkke Qex9i6TOJIt7tMexRE3sni8QIltnuX64G13EXJrfiacayY9SPPN0HjLHfLE8x36+y4mG LFQl6hhttgHjVXCDhAYBqOx/4PDujDDBF+n3tLVZOLwm7wyWQKWpf3GqEC3joskI/5y6 EeFQ== 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=Oy+3AzPxTD25VIvZelq7CvsmBK4NvyfxcQNqUBR6Yy8=; b=yRHYMAhKZiwb091zzSco+5+TM1QTciK7R2Vgz4oj7huWgSG/Yi17IgOz8yhYTv31Ek TQXLpJXhGgI7u1tKGDINXSzrf1LkMzv59cia0qL8lskR60hhBY245Vr0g6Y40by0L6Qk k+xtFd2lNP1v7t3GCwX3yBzaAkGLKCGd31DeFV6aJY4vhVpq1357MZfUT8rh+iS/9r0v +LNqugh5FkqZvL3c/Io8w2Bkja3azMzSiQWicUzBzZBh6eB+r3Kr9usoqgY0PiKgyYYr QylA8f15CT/vR8cRe94xMdGM9lC3buXobmaUFDq75B3S4Kz7Nckp88EYoC72Ra4Su2As 1vWw== X-Gm-Message-State: AFqh2kqg6KboDLmgGaUylxBbqv1h00CNMDHHruduxhZS2kGk54NQTIr7 AXnUjJqH8WAE7H8Q6+zLwCU0jhInybFo5w== X-Google-Smtp-Source: AMrXdXtfT5QQ8RkX5ttokca9W6eM6zIxXuxU+dv3B+NRTvAMeutYP6gNMU5234ZwL5gmx8PGL6uRuQ== X-Received: by 2002:a05:622a:5c85:b0:3a5:43b0:bf0 with SMTP id ge5-20020a05622a5c8500b003a543b00bf0mr53176720qtb.8.1672619492852; Sun, 01 Jan 2023 16:31:32 -0800 (PST) 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 h4-20020ac846c4000000b003a7fc70d59csm16894624qto.41.2023.01.01.16.31.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jan 2023 16:31:32 -0800 (PST) In-Reply-To: <837cy64v2f.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) 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: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302186 Archived-At: > On Dec 31, 2022, at 10:39 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sat, 31 Dec 2022 17:16:11 -0800 >> Cc: Eli Zaretskii , >> Philip Kaludercic , >> dgutov@yandex.ru, >> theophilusx@gmail.com, >> emacs-devel@gnu.org >>=20 >>>=20 >>>> I wanted to keep it simple, synchronous, and quiet, and didn=E2=80=99= t thought >>>> much about it. >>>=20 >>> I think we should default to asynchonous operations as much as = possible. >>=20 >> If you are talking about the whole command, maybe. Does call-process = automatically yield when ran in a make-thread? >=20 > No, it doesn't. And it's threads that yield, not Emacs primitives. A > thread will yield when it calls some API that invokes pselect. Thanks. I guess what I=E2=80=99m asking is that if I run the command in = make-thread, will the thread yield when it=E2=80=99s waiting for the = subprocess? I tried it and it still blocks Emacs so I guess the answer = is no. But maybe I=E2=80=99m doing it wrong. Yuan=