diff options
| author | Yuan Fu | 2024-09-14 00:19:47 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-09-14 00:28:23 -0700 |
| commit | 2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732 (patch) | |
| tree | 526b27c03c2b10a4c8e3edf09a4a03646ceca631 | |
| parent | 6a6d7925c9ddbf558f70932661ee943262aea4ca (diff) | |
| download | emacs-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.el | 7 |
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. |
| 2952 | See the descriptions of arguments in `outline-search-function'." | 2952 | For 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 | ||
| 3059 | If `treesit-simple-imenu-settings' is non-nil, set up Imenu. | 3060 | If `treesit-simple-imenu-settings' is non-nil, set up Imenu. |
| 3060 | 3061 | ||
| 3062 | If `treesit-outline-predicate' or `treesit-simple-imenu-settings', and | ||
| 3063 | Outline minor mode settings don't alreay exist, setup Outline minor | ||
| 3064 | mode. | ||
| 3065 | |||
| 3061 | If `sexp', `sentence' are defined in `treesit-thing-settings', | 3066 | If `sexp', `sentence' are defined in `treesit-thing-settings', |
| 3062 | enable tree-sitter navigation commands for them. | 3067 | enable tree-sitter navigation commands for them. |
| 3063 | 3068 | ||