]> git.eshelyaron.com Git - emacs.git/commit
Make sure treesit-parse-string gc its temp buffer (bug#71012)
authorYuan Fu <casouri@gmail.com>
Sat, 24 Aug 2024 21:54:57 +0000 (14:54 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:29 +0000 (09:51 +0200)
commit74a83584706df3e92fe54370dcc689242eb7208a
tree7f5d9ce103a7d784be1a57ccdfcb575613f86e13
parenta1f29d9fac44f87e693dc743da0b5b798a7e9ffa
Make sure treesit-parse-string gc its temp buffer (bug#71012)

* doc/lispref/parsing.texi (Using Parser): Add notice.
* lisp/treesit.el (treesit-parse-string): Remove function.
* src/treesit.c (make_treesit_parser): Init the new filed.
(treesit_delete_parser): Collect the temp buffer.
(Ftreesit_parse_string): New function.
* src/treesit.h (Lisp_TS_Parser): New field.

(cherry picked from commit 4339e70a942770ce4e17d16a9708e4bdf5630514)
doc/lispref/parsing.texi
lisp/treesit.el
src/treesit.c
src/treesit.h