aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Fu2024-09-14 00:19:47 -0700
committerYuan Fu2024-09-14 00:28:23 -0700
commit2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732 (patch)
tree526b27c03c2b10a4c8e3edf09a4a03646ceca631
parent6a6d7925c9ddbf558f70932661ee943262aea4ca (diff)
downloademacs-2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732.tar.gz
emacs-2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732.zip
; Minor doc fix in treesit.el
* lisp/treesit.el (treesit-outline-search): Mention parameters. (treesit-major-mode-setup): Mention outline setup.
-rw-r--r--lisp/treesit.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index e0bcbe965c6..27019742777 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2949,7 +2949,8 @@ when a major mode sets it.")
2949 2949
2950(defun treesit-outline-search (&optional bound move backward looking-at) 2950(defun treesit-outline-search (&optional bound move backward looking-at)
2951 "Search for the next outline heading in the syntax tree. 2951 "Search for the next outline heading in the syntax tree.
2952See the descriptions of arguments in `outline-search-function'." 2952For BOUND, MOVE, BACKWARD, LOOKING-AT, see the descriptions in
2953`outline-search-function'."
2953 (if looking-at 2954 (if looking-at
2954 (when-let* ((node (or (treesit-thing-at (pos-eol) treesit-outline-predicate) 2955 (when-let* ((node (or (treesit-thing-at (pos-eol) treesit-outline-predicate)
2955 (treesit-thing-at (pos-bol) treesit-outline-predicate))) 2956 (treesit-thing-at (pos-bol) treesit-outline-predicate)))
@@ -3058,6 +3059,10 @@ If `treesit-defun-name-function' is non-nil, set up
3058 3059
3059If `treesit-simple-imenu-settings' is non-nil, set up Imenu. 3060If `treesit-simple-imenu-settings' is non-nil, set up Imenu.
3060 3061
3062If `treesit-outline-predicate' or `treesit-simple-imenu-settings', and
3063Outline minor mode settings don't alreay exist, setup Outline minor
3064mode.
3065
3061If `sexp', `sentence' are defined in `treesit-thing-settings', 3066If `sexp', `sentence' are defined in `treesit-thing-settings',
3062enable tree-sitter navigation commands for them. 3067enable tree-sitter navigation commands for them.
3063 3068