]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert previous change in go-ts-mode.el
authorYuan Fu <casouri@gmail.com>
Fri, 3 Mar 2023 21:59:54 +0000 (13:59 -0800)
committerYuan Fu <casouri@gmail.com>
Fri, 3 Mar 2023 22:01:05 +0000 (14:01 -0800)
Reverts 59365f928565f1be551b1697b9246b00cb87a9b7 and
56cd810b9d1a4d537bee5a2fd954d6e0d346631a.

Reverting because the use of treesit-ready-p is very much intentional.

* lisp/progmodes/go-ts-mode.el (treesit-ready-p): Revert change.

lisp/progmodes/go-ts-mode.el

index fbe085a2c6cdb9003623644f816e7b02ea7764b6..e8f93d147448f67f7e616dbe6ddd44e2ae82d5e4 100644 (file)
@@ -393,7 +393,7 @@ what the parent of the node would be if it were a node."
 
     (treesit-major-mode-setup)))
 
-(if (treesit-language-available-p 'gomod)
+(if (treesit-ready-p 'gomod)
     (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
 
 (provide 'go-ts-mode)