Fix treesit-thing-definition
* lisp/treesit.el (treesit-thing-definition): Don't modify treesit-thing-settings itself.
This commit is contained in:
parent
9f6cf89fb1
commit
b1bcd396ed
1 changed files with 3 additions and 1 deletions
|
@ -2064,7 +2064,9 @@ If LANGUAGE is nil, return the first definition for THING in
|
|||
(if language
|
||||
(car (alist-get thing (alist-get language
|
||||
treesit-thing-settings)))
|
||||
(car (alist-get thing (mapcan #'cdr treesit-thing-settings)))))
|
||||
(car (alist-get thing (mapcan (lambda (entry)
|
||||
(copy-tree (cdr entry)))
|
||||
treesit-thing-settings)))))
|
||||
|
||||
(defalias 'treesit-thing-defined-p 'treesit-thing-definition
|
||||
"Return non-nil if THING is defined.")
|
||||
|
|
Loading…
Add table
Reference in a new issue