From 5a199d804bad7bdd7d4e4f00b6bf0cc67e2af6ca Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 6 Jun 2025 10:00:20 +0300 Subject: [PATCH] ; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703). (cherry picked from commit 8fdb2d19b495e392f47046513e05c8992fee2b4c) --- lisp/treesit.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index b03cbe8a8e9..9526a075296 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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) -- 2.39.5