Function: treesit-forward-sexp-list

treesit-forward-sexp-list is an interactive and byte-compiled function defined in treesit.el.gz.

Signature

(treesit-forward-sexp-list &optional ARG)

Documentation

Alternative tree-sitter implementation for forward-sexp-function.

Whereas treesit-forward-sexp moves across both lists and atoms using sexp in treesit-thing-settings, this function uses list in treesit-thing-settings to move only across lists. But to move across atoms (such as symbols or words) inside the list it uses forward-sexp-default-function as long as it doesn't go outside of the boundaries of the current list.

ARG is described in the docstring of forward-sexp-function.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defun treesit-forward-sexp-list (&optional arg)
  "Alternative tree-sitter implementation for `forward-sexp-function'.

Whereas `treesit-forward-sexp' moves across both lists and atoms
using `sexp' in `treesit-thing-settings', this function uses
`list' in `treesit-thing-settings' to move only across lists.
But to move across atoms (such as symbols or words) inside the list
it uses `forward-sexp-default-function' as long as it doesn't go
outside of the boundaries of the current list.

ARG is described in the docstring of `forward-sexp-function'."
  (interactive "^p")
  (treesit--forward-list-with-default arg 'forward-sexp-default-function))