From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 4efe3b99a5d 2/2: Document tree-sitter things feature (bug#70016) (bug#68824) Date: Sat, 13 Apr 2024 12:12:40 +0300 Message-ID: <861q79r5h3.fsf@gnu.org> References: <171255755397.7956.2465854118422015894@vcs2.savannah.gnu.org> <20240408062554.D8DBCC12C36@vcs2.savannah.gnu.org> <8734rw48jy.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 13 11:13:32 2024 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 1rvZRz-0000P4-Ou for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Apr 2024 11:13:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvZRF-0002OL-KB; Sat, 13 Apr 2024 05:12:45 -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 1rvZRD-0002Nv-UA for emacs-devel@gnu.org; Sat, 13 Apr 2024 05:12:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvZRD-0003kV-Gx; Sat, 13 Apr 2024 05:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JWF4Ie3gyHQsubewJQfbbZUq86y7s6VCniuofJijCB4=; b=X0dttf+372C/ OZ3xSbzAy3vvZoY1w6F1Vj39H7awqerfYFRGmYXl1ZbVTOVwSV3mv0TJ1GSIJLzGxMPb9X81xfTBv 1IwLj9iroavcKPBKzM1yleBULJNkVNAu3P9dUR73eXCNxvGzvKqNpmS6sPFDEeE2ARoaZXS9zP2g6 l+/Rkqvw0pGO+aywRu9Wk0zGH8skWG5kfWGcBfsqTEWkPZWippikthOMEALTk2wkgpT0vGf28XB3S qRbdD45Kry5La39Klf15WzvPdxTGpKuE7IKBULE/8gYGnta2mXISH0gGPk2A1yo7kOr6JeZd25fbL iDxZJ0sR36iFgzXIhC8K2w==; In-Reply-To: <8734rw48jy.fsf@gmx.de> (message from Michael Albinus on Mon, 08 Apr 2024 09:28:49 +0200) 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:317703 Archived-At: > From: Michael Albinus > Cc: Yuan Fu > Date: Mon, 08 Apr 2024 09:28:49 +0200 > > Yuan Fu writes: > > Hi, > > > diff --git a/etc/NEWS b/etc/NEWS > > index d4bba66e4aa..b2543ae77d9 100644 > > --- a/etc/NEWS > > +++ b/etc/NEWS > > @@ -2380,6 +2380,35 @@ objects is still necessary. > > ** The JSON encoder and decoder now accept arbitarily large integers. > > Previously, they were limited to the range of signed 64-bit integers. > > > > +** New tree-sitter functions and variables for defining and using "things" > > + > > ++++ > > +*** New variable 'treesit-thing-settings'. > > + > > +New variable that allows users to define "things" like 'defun', 'text', > > +'sexp', for navigation commands and tree-traversal functions. > > + > > ++++ > > +*** New navigation functions 'treesit-thing-prev', 'treesit-thing-next', 'treesit-navigate-thing', 'treesit-beginning-of-thing', 'treesit-end-of-thing'. > > + > > ++++ > > +*** New functions 'treesit-thing-at', 'treesit-thing-at-point'. > > + > > ++++ > > +*** Tree-tarversing functions 'treesit-search-subtree', 'treesit-search-forward', 'treesit-search-forward-goto', 'treesit-induce-sparse-tree' now accepts more kinds of predicates. > > + > > +Now users can use thing symbols (defined in 'treesit-thing-settings'), > > +and any thing definitions for the predicate argument. > > + > > +** Other tree-sitter function and variable changes > > + > > ++++ > > +*** 'treesit-parser-list' now takes additional optional arguments, LANGUAGE and TAG. > > + > > +If LANGUAGE is given, only return parsers for that language. If TAG is > > +given, only return parsers with that tag. Note that passing nil as tag > > +doesn't mean return all parsers, but rather "all parsers with no tags". > > + > > > > * Changes in Emacs 30.1 on Non-Free Operating Systems > > > > Could you please adjust this to the etc/NEWS convention max line length 80? I believe I did that today.