aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-06-06 10:00:20 +0300
committerEli Zaretskii2025-06-06 10:00:20 +0300
commit8fdb2d19b495e392f47046513e05c8992fee2b4c (patch)
tree4ac686d1d2c0a93113f9b6879105317628c1a46b
parent41f8dc18dfdb003dbcd27f619960f2533a02fde2 (diff)
downloademacs-8fdb2d19b495e392f47046513e05c8992fee2b4c.tar.gz
emacs-8fdb2d19b495e392f47046513e05c8992fee2b4c.zip
; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).
-rw-r--r--lisp/treesit.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 2b5989fcaee..512e82375f1 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2479,7 +2479,10 @@ This is a tree-sitter equivalent of `beginning-of-defun'.
2479Behavior of this function depends on `treesit-defun-type-regexp' 2479Behavior of this function depends on `treesit-defun-type-regexp'
2480and `treesit-defun-skipper'. If `treesit-defun-type-regexp' is 2480and `treesit-defun-skipper'. If `treesit-defun-type-regexp' is
2481not set, Emacs also looks for definition of defun in 2481not set, Emacs also looks for definition of defun in
2482`treesit-thing-settings'." 2482`treesit-thing-settings'.
2483
2484Whether this goes to the innermost nested defun or a top-level
2485one is determined by the value of `treesit-defun-tactic'."
2483 (interactive "^p") 2486 (interactive "^p")
2484 (or (not (eq this-command 'treesit-beginning-of-defun)) 2487 (or (not (eq this-command 'treesit-beginning-of-defun))
2485 (eq last-command 'treesit-beginning-of-defun) 2488 (eq last-command 'treesit-beginning-of-defun)