From: Yuan Fu Date: Fri, 3 Mar 2023 21:59:54 +0000 (-0800) Subject: Revert previous change in go-ts-mode.el X-Git-Tag: emacs-29.0.90~258 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da8e4b6fe43c0cb3c1ca08ac53f2957fe48291f1;p=emacs.git 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. --- 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)