[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 2f243fb91d6 4/4: ; Minor doc fix in treesit.el
From: |
Yuan Fu |
Subject: |
emacs-30 2f243fb91d6 4/4: ; Minor doc fix in treesit.el |
Date: |
Sat, 14 Sep 2024 03:28:34 -0400 (EDT) |
branch: emacs-30
commit 2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Minor doc fix in treesit.el
* lisp/treesit.el (treesit-outline-search): Mention parameters.
(treesit-major-mode-setup): Mention outline setup.
---
lisp/treesit.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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.")
(defun treesit-outline-search (&optional bound move backward looking-at)
"Search for the next outline heading in the syntax tree.
-See the descriptions of arguments in `outline-search-function'."
+For BOUND, MOVE, BACKWARD, LOOKING-AT, see the descriptions in
+`outline-search-function'."
(if looking-at
(when-let* ((node (or (treesit-thing-at (pos-eol)
treesit-outline-predicate)
(treesit-thing-at (pos-bol)
treesit-outline-predicate)))
@@ -3058,6 +3059,10 @@ If `treesit-defun-name-function' is non-nil, set up
If `treesit-simple-imenu-settings' is non-nil, set up Imenu.
+If `treesit-outline-predicate' or `treesit-simple-imenu-settings', and
+Outline minor mode settings don't alreay exist, setup Outline minor
+mode.
+
If `sexp', `sentence' are defined in `treesit-thing-settings',
enable tree-sitter navigation commands for them.