Subject: [PATCH] Crasher in treesit_traverse_get_predicate
From: Dominique Quatravaux <[email-masked]>
To: [email-masked]
Date: Tue, 6 Feb 2024 18:08:18 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Because nothing guarantees or enforces that either Vtreesit_thing_settings,
or the cdrs of its elements, are cons cells, it is easy to construct values
for `treesit-thing-settings' that make Emacs crash (e.g., when calling
`prog-fill-reindent-defun' from any tree-sitter enabled mode).

The attached patch fixes that.

--
 Dominique Quatravaux
 [email-masked]