diff options
author | Juri Linkov <juri@linkov.net> | 2024-12-29 19:51:18 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2024-12-29 19:51:18 +0200 |
commit | 3c50edb2b500c6ac18696e99c3f8df597dea54d4 (patch) | |
tree | 5491ac17bd715d8b8bf4f8d0a5d7a2fa7e373ce8 /test/lisp/emacs-lisp/bytecomp-resources/warn-format.el | |
parent | 3db984c72b8609c84f06a0fd62e59b4823ea0876 (diff) | |
download | emacs-3c50edb2b500c6ac18696e99c3f8df597dea54d4.tar.gz emacs-3c50edb2b500c6ac18696e99c3f8df597dea54d4.tar.bz2 emacs-3c50edb2b500c6ac18696e99c3f8df597dea54d4.zip |
Add new variable 'down-list-function' for 'treesit-down-list'
* lisp/emacs-lisp/lisp.el (down-list-default-function): New function.
(down-list-function): New variable (bug#73404).
(down-list): Move meat to 'down-list-default-function',
and call 'down-list-function' when non-nil. Don't raise an error
in strings or comments when 'down-list-function' is non-nil.
* lisp/treesit.el (treesit--scan-error): New internal function.
(treesit-forward-sexp, treesit-forward-list): Use 'treesit--scan-error'.
(treesit-down-list): New function.
(treesit-major-mode-setup): Set 'down-list-function' to
'treesit-down-list'.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-format.el')
0 files changed, 0 insertions, 0 deletions