An unguarded (add-to-list 'auto-mode-alist ...) introduces a bug in 'auto-mode-alist e.g. the following entry
This miserably fails at every file visitation, because
(set-auto-mode) would eventually do
(assoc-default filename auto-mode-alist #'string-match) wherein
(string-match nil filename) raises the following error:
(wrong-type-argument stringp nil)
PS: In treesit-auto.el:
(add-to-list 'auto-mode-alist
(cons (treesit-auto-recipe-ext r) (treesit-auto-recipe-ts-mode r)))
An unguarded
(add-to-list 'auto-mode-alist ...)introduces a bug in'auto-mode-aliste.g. the following entryThis miserably fails at every file visitation, because
(set-auto-mode)would eventually do(assoc-default filename auto-mode-alist #'string-match)wherein(string-match nil filename)raises the following error:PS: In
treesit-auto.el: