Function: treesit-forward-list

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

Signature

(treesit-forward-list &optional ARG)

Documentation

Move forward across a list.

What constitutes a list is determined by list in treesit-thing-settings that usually defines parentheses-like expressions.

Unlike forward-sexp, this command moves only across a list, but not across atoms (such as symbols or words) inside the list.

It uses forward-list-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-list-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-list (&optional arg)
  "Move forward across a list.
What constitutes a list is determined by `list' in
`treesit-thing-settings' that usually defines
parentheses-like expressions.

Unlike `forward-sexp', this command moves only across a list,
but not across atoms (such as symbols or words) inside the list.

It uses `forward-list-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-list-function'."
  (interactive "^p")
  (treesit--forward-list-with-default arg 'forward-list-default-function))