From: Yuan Fu Date: Wed, 1 Mar 2023 22:38:22 +0000 (-0800) Subject: * lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p. X-Git-Tag: emacs-29.0.90~273 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59365f928565f1be551b1697b9246b00cb87a9b7;p=emacs.git * lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p. treesit-ready-p does more checks than language grammar availability. --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 6043c86ac93..fbe085a2c6c 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-ready-p 'gomod t) +(if (treesit-language-available-p 'gomod) (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode))) (provide 'go-ts-mode)