From: Yuan Fu Date: Wed, 1 Mar 2023 22:34:56 +0000 (-0800) Subject: Don’t signal warning when loading go-ts-mode.el without grammar X-Git-Tag: emacs-29.0.90~274 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56cd810b9d1a4d537bee5a2fd954d6e0d346631a;p=emacs.git Don’t signal warning when loading go-ts-mode.el without grammar * lisp/progmodes/go-ts-mode.el: Add a QUIET flag to the call of treesit-ready-p, so that it doesn't signal a warning if go-mod (tree-sitter grammar) is not available. --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index e8f93d14744..6043c86ac93 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) +(if (treesit-ready-p 'gomod t) (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode))) (provide 'go-ts-mode)