From: Yuan Fu Date: Sat, 29 Oct 2022 20:05:52 +0000 (-0700) Subject: Fix parent-bol preset for tree-sitter indent X-Git-Tag: emacs-29.0.90~1753 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3a784d1321487be4031555d19ace635598bba21c;p=emacs.git Fix parent-bol preset for tree-sitter indent * lisp/treesit.el (treesit-simple-indent-presets): Return point rather than column. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 90e5d09693f..6176fb57ef6 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -783,7 +783,8 @@ See `treesit-simple-indent-presets'.") (lambda (_n parent &rest _) (save-excursion (goto-char (treesit-node-start parent)) - (current-indentation))))) + (back-to-indentation) + (point))))) (prev-sibling . ,(byte-compile (lambda (node &rest _) (treesit-node-start