]> git.eshelyaron.com Git - emacs.git/commit
Fix the use of adaptive-fill-regexp in treesit indent preset
authorYuan Fu <casouri@gmail.com>
Sun, 22 Oct 2023 04:08:44 +0000 (21:08 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 22 Oct 2023 04:12:59 +0000 (21:12 -0700)
commit893c344b4e4787949f65c842536e0a5597e537c8
treed06fa3a2639c58a5392b54e622b120cec0f58330
parent1098c114b74a3a4289550412795ff1c8533b45f7
Fix the use of adaptive-fill-regexp in treesit indent preset

* lisp/treesit.el (treesit-simple-indent-presets):
adaptive-fill-regexp don't have a capture group (the group in the
default value is supposed to be a non-capture group), so don't use the
group. Also, in the second diff hunk, replace looking-at with
looking-at-p so it doesn't override match data that we use later.
lisp/treesit.el