]> git.eshelyaron.com Git - emacs.git/commit
Add 'forward-sexp-default-function' to be used by 'treesit-forward-sexp'
authorJuri Linkov <juri@linkov.net>
Sun, 14 Apr 2024 16:18:31 +0000 (19:18 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:12:25 +0000 (19:12 +0200)
commit64e8c4452ce852db0819f53653e2f1735385dd4a
tree9def2258341f186a4dfb93d14e9c2a043cf32928
parent1c3bf0ad58f8202f8028aa59102d56386f3229c8
Add 'forward-sexp-default-function' to be used by 'treesit-forward-sexp'

* lisp/emacs-lisp/lisp.el (forward-sexp-default-function):
New function with body from 'forward-sexp' (bug#68993).
(forward-sexp-function): Change the default value from nil to
'forward-sexp-default-function'.
(forward-sexp): Use either 'forward-sexp-function' or
'forward-sexp-default-function'.

* lisp/treesit.el (treesit-forward-sexp): In nodes of type 'text'
fall back to 'forward-sexp-default-function'.  Improve docstring.

* doc/lispref/positions.texi (List Motion): Fix pxref.

(cherry picked from commit 568c1741352a4932508fbbd474b9fd9ebe90ddfb)
doc/lispref/positions.texi
etc/NEWS
lisp/emacs-lisp/lisp.el
lisp/treesit.el