From: Eli Zaretskii Date: Sun, 1 Sep 2024 17:57:03 +0000 (+0300) Subject: ; Fix recent changes in documentation X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51fbc90139b43c46dcdbb27a61f77114811248bd;p=emacs.git ; Fix recent changes in documentation * doc/lispref/positions.texi (List Motion): Fix indexing. * doc/emacs/mini.texi (Completion Options): Fix wording. (cherry picked from commit 8c044bd97266b42973abb3343eeb4ea48d0949a0) --- diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 7c340c2a9d6..271cce79c58 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi @@ -784,6 +784,14 @@ other kinds, such as words and string constants. ---------- Buffer: foo ---------- @end group @end example + +@vindex forward-sexp-function +@code{forward-sexp} calls the function that is the value of the variable +@code{forward-sexp-function}, if that is non-@code{nil}, to do the +actual work, passing it the same arguments as those with which the +command was called. Major modes can define their own functions for +moving over balanced expressions as appropriate for the mode, and set +this variable to that function. @end deffn @deffn Command backward-sexp &optional arg @@ -880,7 +888,6 @@ Sentences,,, emacs, The extensible self-documenting text editor}). @findex treesit-forward-sexp @findex forward-sexp@r{, and tree-sitter} @findex backward-sexp@r{, and tree-sitter} -@vindex forward-sexp-function If Emacs is compiled with tree-sitter, it can use the tree-sitter parser information to move across syntax constructs. Since what exactly is considered a sexp varies between languages, a major mode