]> git.eshelyaron.com Git - emacs.git/commit
Fix byte-compile warning in treesit.el
authorYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 21:50:25 +0000 (14:50 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 21:50:52 +0000 (14:50 -0700)
commitf6483526cd4b4b9ed7d830599add82ecb45009e6
treefe1b3a590100b9a4cfd316bbbee17eaa72d42818
parentf6e3de3f63616d7bd52c1390f9dea70fa33e49c2
Fix byte-compile warning in treesit.el

Originally treesit-simple-indent-presets was

'((parent-is . (lambda (type)
                 `(lambda (n p b)
                    (equal (treesit-node-type p)
                           ,type)))))

Then I changed it to

`((parent-is . ,(byte-compile
                 (lambda (type)
                   (lambda (n p b)
                     (equal (treesit-node-type p)
                            type))))))

but that generates "function already compiled" warning when
byte-compiling treesit.el.  The latest form shouldn't have any problem
anymore.

* lisp/treesit.el (treesit-simple-indent-presets): Change byte-compile
to plain evaluation.
lisp/treesit.el