projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06d551
)
Don’t signal warning when loading go-ts-mode.el without grammar
author
Yuan Fu
<casouri@gmail.com>
Wed, 1 Mar 2023 22:34:56 +0000
(14:34 -0800)
committer
Yuan Fu
<casouri@gmail.com>
Wed, 1 Mar 2023 22:34:56 +0000
(14:34 -0800)
* 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.
lisp/progmodes/go-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/go-ts-mode.el
b/lisp/progmodes/go-ts-mode.el
index e8f93d147448f67f7e616dbe6ddd44e2ae82d5e4..6043c86ac932b9792631316073e13ac95d5f7b89 100644
(file)
--- 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)