(defun treesit-beginning-of-thing (thing &optional arg tactic)
"Like `beginning-of-defun', but generalized into things.
-THING can be a thing defined in `treesit-thing-settings', or a
-predicate, which see. ARG is the same as in `beginning-of-defun'.
+THING can be a thing defined in `treesit-thing-settings', which see,
+or a predicate. ARG is the same as in `beginning-of-defun'.
TACTIC determines how does this function move between things. It
can be `nested', `top-level', `restricted', or nil. `nested'
(defun treesit-end-of-thing (thing &optional arg tactic)
"Like `end-of-defun', but generalized into things.
-THING can be a thing defined in `treesit-thing-settings', or a
-predicate, which see. ARG is the same as in `end-of-defun'.
+THING can be a thing defined in `treesit-thing-settings', which
+see, or a predicate. ARG is the same as in `end-of-defun'.
TACTIC determines how does this function move between things. It
can be `nested', `top-level', `restricted', or nil. `nested'
parent thing surrounding POS. All of three could be nil if no
sound things exists.
-THING should be a thing defined in `treesit-thing-settings', it
-can also be a predicate, which see."
+THING should be a thing defined in `treesit-thing-settings',
+which see; it can also be a predicate."
(let* ((node (treesit-node-at pos))
(result (list nil nil nil)))
;; 1. Find previous and next sibling defuns.
recusion levels: we place a arbitrary 100 level limit on recursive
predicates. RECURSION_LEVEL is the current recursion level (that
starts at 0), if it goes over 99, return false and set SIGNAL_DATA.
- LANGUAGE is a LANGUAGE symbol. See `Ftreesit_node_match_p' for
- ignore_missing. */
+ LANGUAGE is a LANGUAGE symbol. IGNORE_MISSING is as in
+ `treesit-node-match-p' below. */
static bool
treesit_traverse_validate_predicate (Lisp_Object pred,
Lisp_Object language,
Traverse the subtree of NODE, and match PREDICATE with each node along
the way. PREDICATE can be a regexp string that matches against each
node's type, a predicate function, and more. See
-`treesit-thing-settings' for all possible predicates. PREDICATE can
+`treesit-thing-settings' for the possible predicates. PREDICATE can
also be a thing defined in `treesit-thing-settings'.
By default, only traverse named nodes, but if ALL is non-nil, traverse
Start traversing the tree from node START, and match PREDICATE with
each node (except START itself) along the way. PREDICATE can be a
regexp string that matches against each node's type, a predicate
-function, and more. See `treesit-thing-settings' for all possible
+function, and more. See `treesit-thing-settings' for the possible
predicates. PREDICATE can also be a thing defined in
`treesit-thing-settings'.
match PREDICATE are left, like picking out grapes on the vine.
PREDICATE can be a regexp string that matches against each node's
type, a predicate function, and more. See `treesit-thing-settings'
-for all possible predicates. PREDICATE can also be a thing defined in
+for the possible predicates. PREDICATE can also be a thing defined in
`treesit-thing-settings'.
For a subtree on the left that consist of both numbers and letters, if
doc: /* Check whether NODE matches PREDICATE.
PREDICATE can be a symbol representing a thing in
-`treesit-thing-settings', or an predicate, like regexp matching node
-type, etc. See `treesit-thing-settings' for detail.
+`treesit-thing-settings', or a predicate, like regexp matching node
+type, etc. See `treesit-thing-settings' for more details.
-Return non-nil if NODE matches PRED, nil otherwise.
+Return non-nil if NODE matches PREDICATE, nil otherwise.
Signals `treesit-invalid-predicate' if there's no definition of THING
-in `treesit-thing-settings', or the predicate is malformed. If
-IGNORE-MISSING is non-nil, don't signal for missing THING definition,
-but still signal for malformed predicate. */)
+in `treesit-thing-settings', or if PREDICATE is malformed. If
+IGNORE-MISSING is non-nil, don't signal an error for missing THING
+definition, but still signal for malformed PREDICATE. */)
(Lisp_Object node, Lisp_Object predicate, Lisp_Object ignore_missing)
{
CHECK_TS_NODE (node);