]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix recently-added documentation
authorEli Zaretskii <eliz@gnu.org>
Thu, 10 Apr 2025 06:26:32 +0000 (09:26 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 11 Apr 2025 11:32:21 +0000 (13:32 +0200)
* etc/NEWS:
* lisp/treesit.el (treesit-toggle-sexp-mode): Fix wording of
recently-added documentation.

(cherry picked from commit b205d7b59d8bc97507fb6ffa766eedfcf13f8877)

lisp/treesit.el

index bd6221322c29e3a34cde08648c2ad0fc9c5ef577..cbecaf096350a7503f87f8d42e3b86eda25d9269 100644 (file)
@@ -3182,16 +3182,18 @@ ARG is described in the docstring of `up-list'."
 
 (defun treesit-toggle-sexp-mode ()
   "Toggle the mode of navigation for sexp and list commands.
-This mode toggle affects such navigation commands as
+This mode toggle affects navigation commands such as
 `treesit-forward-sexp', `treesit-forward-list', `treesit-down-list',
 `treesit-up-list'.
 
-The list mode uses the `list' thing defined in `treesit-thing-settings'.
-In this mode commands use syntax definition to navigate symbols and
-treesit definition to navigate lists.
+The mode can be `list' (the default) or `sexp'.
 
-The sexp mode uses the `sexp' thing defined in `treesit-thing-settings'.
-In this mode commands use the treesit definition only
+The `list' mode uses the `list' thing defined in `treesit-thing-settings'.
+See `treesit-thing-at-point'.  In this mode commands use syntax tables to
+navigate symbols and treesit definition to navigate lists.
+
+The `sexp' mode uses the `sexp' thing defined in `treesit-thing-settings'.
+In this mode commands use only the treesit definition of parser nodes,
 without distinction between symbols and lists."
   (interactive)
   (if (not (treesit-thing-defined-p 'list (treesit-language-at (point))))