]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).
authorEli Zaretskii <eliz@gnu.org>
Fri, 6 Jun 2025 07:00:20 +0000 (10:00 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:01:32 +0000 (22:01 +0200)
(cherry picked from commit 8fdb2d19b495e392f47046513e05c8992fee2b4c)

lisp/treesit.el

index b03cbe8a8e923fe6df80aab83d8c2b87e40fec69..9526a075296bd4a1b3d88170d5eff586b786863a 100644 (file)
@@ -3424,7 +3424,10 @@ This is a tree-sitter equivalent of `beginning-of-defun'.
 Behavior of this function depends on `treesit-defun-type-regexp'
 and `treesit-defun-skipper'.  If `treesit-defun-type-regexp' is
 not set, Emacs also looks for definition of defun in
-`treesit-thing-settings'."
+`treesit-thing-settings'.
+
+Whether this goes to the innermost nested defun or a top-level
+one is determined by the value of `treesit-defun-tactic'."
   (interactive "^p")
   (or (not (eq this-command 'treesit-beginning-of-defun))
       (eq last-command 'treesit-beginning-of-defun)