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: Thu, 7 Sep 2023 17:59:36 -0700 Message-ID: References: <5E7F2A94-4377-45C0-8541-7F59F3B54BA1@gmail.com> <87h6odhxs6.fsf@localhost> <87h6oddkm1.fsf@hugot.nl> <87pm2vsfbt.fsf@localhost> 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="15858"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hugo Thunnissen , emacs-devel , Danny Freeman , Theodor Thornhill , =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= , Randy Taylor , Wilhelm Kirschbaum , Perry Smith , Dmitry Gutov To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 03:00:51 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 1qePrf-0003xC-Mo for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 03:00:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qePqj-0002HA-Rg; Thu, 07 Sep 2023 20:59:53 -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 1qePqi-0002Gx-Bp for emacs-devel@gnu.org; Thu, 07 Sep 2023 20:59:52 -0400 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qePqg-0004bM-32 for emacs-devel@gnu.org; Thu, 07 Sep 2023 20:59:52 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-27398378997so1192359a91.3 for ; Thu, 07 Sep 2023 17:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694134788; x=1694739588; 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=g1prSWM5JXUYFI4n1VzhvGx1QbcPX47HVjw2YQF1Ke0=; b=mZVHpeaijh/uyndSUaToe5Gu9B2ZjHkZbGDGnCnTBgZEAD/VjaR0fvqiPZV+Jr3D75 wT3Vuxzj42kX7R7Usk24toNVh4/UV5vRwZD68kCElbGR3kctXeszeccn6TnawysPSK2G LkdDBoMil8o4gcL4pGh8fG8wEScEg3p2MH7XHOATIUUWhl8aDSG/dH2z6tSwYVt3B7+W w8U5JG+70Hhk5tZSId1/kgDXUHhm64MXBjA1/+5LZOFMCbqSnWUEVWrUpkwuhPRIfu10 +o2aUcUf5aZIMMH8oN6qxtacmNmV3AfyjCDrIW7eoWo4Nd+saW3yab9jYOXhn1RhkswC D0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694134788; x=1694739588; 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=g1prSWM5JXUYFI4n1VzhvGx1QbcPX47HVjw2YQF1Ke0=; b=BE8fKaljozrpR0/Q/n9YxfS8BIDj06xTBgZQSJMlIhI2tSuKOAKbl3Q1w/1cNOihqk KxG2DPOThT9NtUXRuT+iUe0LMG8xRW/AGlvMbyPEerZ40+s5+G28z4bOGRQPmZZ2wEDp keNtXOsu++LRrghvoFUZED1Ilzfs/LSFSLrbFHqhkPLvy4DaM90EHxUl51zRz6oem7Jb HB41uBIAQ/386hSSzhmilVDXPC6HaUaS8syGtMzbzQ1DeIjTFlP7ftfBgH8FzBhXmS5q i1xF50Sm4HAXSV5mt9ilP691BDopUGLXspfJdHcyuTSbBjZsVzS074RaOX+ftBUrwRux 7SZw== X-Gm-Message-State: AOJu0YwIsZD8f77UIMOxe4T8QONYY4ePcRdX0nDVoy8dnSzY6LozV3GN Ql4zT25knZIi57mzJC3zlt0= X-Google-Smtp-Source: AGHT+IGQnihyVEi+zLTuAvnAviYP2W0lVIhaDoMZMbDvygM18TqTEp0Cs8VYWIjvx6X7jPkNjN4oUA== X-Received: by 2002:a17:90a:fe89:b0:271:7a79:ecbb with SMTP id co9-20020a17090afe8900b002717a79ecbbmr1391307pjb.28.1694134788147; Thu, 07 Sep 2023 17:59:48 -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 22-20020a17090a019600b002633fa95ac2sm2150993pjc.13.2023.09.07.17.59.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2023 17:59:47 -0700 (PDT) In-Reply-To: <87pm2vsfbt.fsf@localhost> X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=casouri@gmail.com; helo=mail-pj1-x1036.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:310299 Archived-At: > On Sep 6, 2023, at 4:37 AM, Ihor Radchenko = wrote: >=20 > Yuan Fu writes: >=20 >> I don=E2=80=99t know which level of standardization you are thinking = about, but aren=E2=80=99t they already standardized? >> ... >> - fontification: font-lock-defaults >=20 > AFAIU, tree-sitter-specific font-lock is configured separately from = the > rest of the font-lock-keywords. The standard interfacing I=E2=80=99m referring to is what tree-sitter = uses, rather than what tree-sitter provides. Ie, = font-lock-fontify-region-function, etc. >=20 >> - thing-at-point: thing-at-point function >=20 > Adding new "things" is not well-documented though. That=E2=80=99s true. I didn=E2=80=99t investigate myself, either. Yuan=