]> git.eshelyaron.com Git - emacs.git/commitdiff
; * etc/NEWS: Improve recently added entries for tree-sitter.
authorEli Zaretskii <eliz@gnu.org>
Sun, 29 Dec 2024 19:54:59 +0000 (21:54 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:25:17 +0000 (21:25 +0100)
(cherry picked from commit ce74534ef8cc46fd9fbdc9363da5994b1ae1cf58)

etc/NEWS

index 913284ec3f7eaa38c6d27f078321d8367a2f60e3..cc65d7bc1659e16bcd19cd1af4740c3a68468e58 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -810,7 +810,7 @@ authorize the invoked D-Bus method (for example via polkit).
 ** The customization group 'wp' has been removed.
 It has been obsolete since Emacs 26.1.  Use the group 'text' instead.
 
-** Tree-sitter changes
+** Changes in tree-sitter modes.
 
 +++
 *** Indirect buffers can have their own parser list.
@@ -840,22 +840,15 @@ Unlike the existing thing 'sexp' that defines both lists and atoms,
 'sexp-list' defines only lists to be navigated by 'forward-sexp'.
 The new function 'treesit-forward-sexp-list' uses 'sexp-list'
 to move across lists.  But to move across atoms inside the list
-it uses `forward-sexp-default-function'.
-
-*** New function 'treesit-forward-list'.
-Tree-sitter conditionally sets 'forward-list-function' for major modes
-that have defined 'sexp-list' in 'treesit-thing-settings' to enable
-the 'forward-list' motion command.
-
-*** New function 'treesit-down-list'.
-Tree-sitter conditionally sets 'down-list-function' for major modes
-that have defined 'sexp-list' in 'treesit-thing-settings' to enable
-the 'down-list' motion command.
-
-*** New function 'treesit-up-list'.
-Tree-sitter conditionally sets 'up-list-function' for major modes
-that have defined 'sexp-list' in 'treesit-thing-settings' to enable
-the 'up-list' motion command.
+it uses 'forward-sexp-default-function'.
+
+*** New tree-sitter based functions for moving by sexp-lists.
+If a major mode defines 'sexp-list' in 'treesit-thing-settings',
+tree-sitter setup for these modes sets 'forward-list-function' to
+'treesit-forward-list', 'up-list-function' to 'treesit-up-list', and
+'down-list-function' to 'treesit-down-list'.  This enables the
+'forward-list', 'up-list', and 'down-list' motion commands for those
+modes.
 
 *** Tree-sitter enabled modes now properly support 'show-paren-mode'.
 They do that by letting 'show-paren-mode' use the results of parsing by