From da8e4b6fe43c0cb3c1ca08ac53f2957fe48291f1 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Fri, 3 Mar 2023 13:59:54 -0800 Subject: [PATCH] Revert previous change in go-ts-mode.el 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index fbe085a2c6c..e8f93d14744 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -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) -- 2.39.2