]> git.eshelyaron.com Git - emacs.git/commit
Add new variable 'up-list-function' for 'treesit-up-list'
authorJuri Linkov <juri@linkov.net>
Sun, 29 Dec 2024 17:57:28 +0000 (19:57 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:25:07 +0000 (21:25 +0100)
commit3ed31f16f41b2c9d1b96eaaaf002cfeb1ddafecb
treecfe976ff3f62fd92544e4331b13ed245f96e362b
parent17493fe6bfbf29dd200ec5a63114d49c4d20bfb5
Add new variable 'up-list-function' for 'treesit-up-list'

* lisp/emacs-lisp/lisp.el (up-list-function): New variable (bug#73404).
(up-list-default-function): New function.
(up-list): Split part to 'up-list-default-function'.

* lisp/treesit.el (treesit-up-list): New function.
(treesit-major-mode-setup): Set 'up-list-function' to
'treesit-up-list'.

(cherry picked from commit ec8dd27f008bca810209354a189d241479fe4d32)
etc/NEWS
lisp/emacs-lisp/lisp.el
lisp/treesit.el