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: Update on tree-sitter structure navigation Date: Mon, 11 Sep 2023 17:36:39 -0700 Message-ID: <677E7FF9-1166-4FC5-BF8F-987C12FA423D@gmail.com> References: <5E7F2A94-4377-45C0-8541-7F59F3B54BA1@gmail.com> <8a5b3b3e-f091-3f38-09d4-c4e26bec97f9@yandex.ru> <83h6o5xj4f.fsf@gnu.org> <83sf7nvov3.fsf@gnu.org> <580010af-7328-768d-b1c2-d80d7099a290@yandex.ru> <83a5tvvaoo.fsf@gnu.org> <83edj7tfwc.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="10591"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , emacs-devel , Danny Freeman , Theodor Thornhill , =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= , Randy Taylor , Wilhelm Kirschbaum , pedz@easesoftware.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 12 02:37:27 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 1qfrPC-0002YN-SG for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Sep 2023 02:37:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfrOn-0004kO-IK; Mon, 11 Sep 2023 20:37:01 -0400 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 1qfrOk-0004jz-6e for emacs-devel@gnu.org; Mon, 11 Sep 2023 20:37:00 -0400 Original-Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfrOh-00056n-4c; Mon, 11 Sep 2023 20:36:57 -0400 Original-Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so3895829a12.1; Mon, 11 Sep 2023 17:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694479012; x=1695083812; darn=gnu.org; 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=XonwmLE5q2q6Jcsc5VR0OW/T+/tSIRQs1nfcAgBU4Bo=; b=bH15d6dD0bHXWwQx+EJD7YphVrzruDTrA9TZhgeO1H814nbMZU3hgtg6L+XjH3qQ3L aDw04O+pTWE504h9h6pbtk3+BNCc0yJt2NNNkKuHxpjS15jXQJqcb2xm2DBmbQEsoPSm tJY2y68PK9jOzX1kK7NdjoyDQnMb03cVkdH2qtGPWYhyH8zJO+u+Gpt9aFo+7WLXlsdM q1GEEhK5fI9c5CqoNbVIick+pwJ1YD9IXClBBMP8aoQyAFYeTkyf/zclUxfiQ2gFRFry J07DtVhhTUEaT8gIyzn7dcnN1Gh8Nl+A9mT829YXMD9fZpOU4WgHuJS0/fQNdDFIEgQ/ gVWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694479012; x=1695083812; 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=XonwmLE5q2q6Jcsc5VR0OW/T+/tSIRQs1nfcAgBU4Bo=; b=brawCuPqGGLOEDtXXk1/6+jq+rIOoWfTexGEOa2UeurgTpOVk1TyKtxVoDCcp3mA4y LWd1Q6PzUykUO3KWAQ7UDOnsKobFVhaWteTyCvpgLKg8eSmh7iqj5nF4UWq0AmHJWSCI RKKo4vA7EjV67rW5V5LM/L+Yq0Zsve3CvXCz6WhTCcVafjpbEw1cffJnVPCcmjyzhwb2 Qi4/Wc2EpmKDtFAmwAVBIn0u+NN3ng2JzKvy1WLHuvj85D/fQ8BlMRRHm/sZoib3wuXJ e8Q7/IVdIWVCm9hYHKd3NBbe0yYzRw1YLCrNTV6jQrhSsmILJITVtgAaMI+0RqNj9xZb dX9w== X-Gm-Message-State: AOJu0YyzAYgellYu4LlsbK7wwA6WWjTreqUbadVsJyOIYmDjBEgYu4xf xPpJXYSCLhGTkwx6pYnOgobZChv9WLU= X-Google-Smtp-Source: AGHT+IFY8ngg22emzploSVA90ADFJ3HZ/WbH9VO1t1mXgg3Fy4dlSPs8iUbElh4Lv3hSh+8RdHV80Q== X-Received: by 2002:a05:6a21:18b:b0:13e:1945:8873 with SMTP id le11-20020a056a21018b00b0013e19458873mr16456740pzb.37.1694479012036; Mon, 11 Sep 2023 17:36:52 -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 fm21-20020a056a002f9500b006877ec47f82sm6113514pfb.66.2023.09.11.17.36.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Sep 2023 17:36:51 -0700 (PDT) In-Reply-To: <83edj7tfwc.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310494 Archived-At: > On Sep 9, 2023, at 10:28 AM, Eli Zaretskii wrote: >=20 >> Date: Sat, 9 Sep 2023 20:04:07 +0300 >> Cc: casouri@gmail.com, emacs-devel@gnu.org, danny@dfreeman.email, >> theo@thornhill.no, jostein@secure.kjonigsen.net, dev@rjt.dev, >> wkirschbaum@gmail.com, pedz@easesoftware.com >> From: Dmitry Gutov >>=20 >>> How is it useful to ask users to use, say, 2-year old versions of >>> grammar libraries, especially for languages where either the = language >>> or the library (or both) change quickly? >>=20 >> It would be better to use a 2-year-old grammar which works with our = mode=20 >> than a new grammar which breaks our mode anyway. >=20 > But worse than using a 6-month-old grammar that doesn't break the mode > and has a lot of improvements. >=20 >>> How is it friendlier to downgrade to an older version (which would >>> require fetching it, building it with a C compiler, and installing = it) >>> than to patch a single Lisp file? Actually, people don't even need = to >>> patch their Emacs installations, they could instead have a fixed >>> version of the Lisp file in their home directories or in site-lisp. >>=20 >> So we'll suggest they manually copy the latest version of = xxx-js-mode.el=20 >> from master over to their site-lisp? That will be our recommendation = in=20 >> case a grammar breaks? >=20 > Something like that, yes. Or applying the diffs from the fix. >=20 >> I suppose we could publish all ts grammars in "core ELPA". >=20 > Yes, that could be a good solution, if nothing better comes up. Does =E2=80=9Cpublish all ts grammars=E2=80=9D mean the binary = libraries? Yuan