aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2022-10-29 09:04:35 -0700
committerYuan Fu2022-10-29 09:09:09 -0700
commitbde8e87cb7b3be0e0bc9e72c3634f108570cac3e (patch)
tree76b52c4dacc6fa49106c37535e4b0f7a9c42515f /lisp/progmodes/python.el
parent4552b01d8c8052f607dca2fcddcf7b2e270f1db6 (diff)
downloademacs-bde8e87cb7b3be0e0bc9e72c3634f108570cac3e.tar.gz
emacs-bde8e87cb7b3be0e0bc9e72c3634f108570cac3e.zip
Fix treesit-indent-region
* lisp/treesit.el (treesit-simple-indent-presets): Remove extra comma. (treesit--indent-1): Return (ANCHOR . OFFSET) instead of column. (treesit-indent): Accept (ANCHOR . OFFSET) from treesit--indent-1. (treesit--indent-region-batch-size): Reduce to 400. (treesit-indent-region): Put a marker on each line's ANCHOR and compute the indentation with ANCHOR + OFFSET. Precomputing column gives wrong indentation when the ANHOR line doesn't have correct indent yet.
Diffstat (limited to 'lisp/progmodes/python.el')
0 files changed, 0 insertions, 0 deletions