summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2025-03-29 13:36:02 +0300
committerEli Zaretskii <eliz@gnu.org>2025-03-29 13:36:02 +0300
commit26873d5028ed8aa0e2fc56c7d6ed3b43ff976d3c (patch)
treedf0aedbb9d5132e5902b5f922f5893085ed02674
parenta702f29a00b0362b6060bbf4c83edcdc61b5fe32 (diff)
downloademacs-26873d5028ed8aa0e2fc56c7d6ed3b43ff976d3c.tar.gz
emacs-26873d5028ed8aa0e2fc56c7d6ed3b43ff976d3c.tar.bz2
emacs-26873d5028ed8aa0e2fc56c7d6ed3b43ff976d3c.zip
Avoid warning when loading 'go-ts-mode'
* lisp/progmodes/go-ts-mode.el (treesit-ready-p): Silence the warning if the gomod language library is not installed. (Bug#77213)
-rw-r--r--lisp/progmodes/go-ts-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index eb5b93008eb..c233a7222fc 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -476,7 +476,7 @@ what the parent of the node would be if it were a node."
(derived-mode-add-parents 'go-mod-ts-mode '(go-mod-mode))
-(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)