]> git.eshelyaron.com Git - emacs.git/commit
Refine handling of node at point in treesit-indent
authorYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 16:43:50 +0000 (09:43 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 16:43:50 +0000 (09:43 -0700)
commitce5ae0117e3ea009ccdd8d8f4c1365301d24f90b
treee871797a6419107980a39d441a8593c7e21ecc28
parentbde8e87cb7b3be0e0bc9e72c3634f108570cac3e
Refine handling of node at point in treesit-indent

* doc/lispref/modes.texi (Parser-based Indentation): Document the
semantic clearly.
* lisp/treesit.el (treesit-simple-indent-presets): Replace with
current-indentation.
(treesit--indent-1): Now NODE always starts at BOL, and parent is
always the smallest node above NODE that spans BOL.
(treesit-indent): Don't use save-excurtion, no one else does.
doc/lispref/modes.texi
lisp/treesit.el