summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-12-01 17:25:28 +0200
committerEli Zaretskii <eliz@gnu.org>2022-12-01 17:25:28 +0200
commita86ccb5f9dd4a5fe8e6af974d7f577e7b5d0a8d4 (patch)
tree78bf36304c8699b329cc0936f74f11aa39e99828 /lisp
parent2d5cf7329e9af753651508cd13e03185a05f3f6a (diff)
downloademacs-a86ccb5f9dd4a5fe8e6af974d7f577e7b5d0a8d4.tar.gz
emacs-a86ccb5f9dd4a5fe8e6af974d7f577e7b5d0a8d4.tar.bz2
emacs-a86ccb5f9dd4a5fe8e6af974d7f577e7b5d0a8d4.zip
; Fix recently added treesit documentation
* lisp/treesit.el (treesit-defun-prefer-top-level): * doc/lispref/positions.texi (List Motion): Fix wording.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/treesit.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/treesit.el b/lisp/treesit.el
index dd7895683ff..0de0e283c3b 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1561,11 +1561,11 @@ Normally Emacs stops at the first defun it encounters. If this
variable's value is t, Emacs tries to find the top-level defun,
and ignores nested ones.
-This variable can also be a list of cons cells of the form (FROM
-. TO), where FROM and TO are tree-sitter node type regexps. When
-Emacs finds a defun node whose type matches any of the FROM
-regexp in the list, Emacs then tries to find the top-level node
-matching the corresponding TO regexp.")
+This variable can also be a list of cons cells of the
+form (FROM . TO), where FROM and TO are tree-sitter node type
+regexps. When Emacs finds a defun node whose type matches any of
+the FROM regexps in the list, it then tries to find a
+higher-level node matching the corresponding TO regexp.")
(defun treesit--defun-maybe-top-level (node)
"Maybe return the top-level equivalent of NODE.